Author Topic: UsingFSRandINDF  (Read 1801 times)

0 Members and 1 Guest are viewing this topic.

Offline mpuvddTopic starter

  • Jr. Member
  • **
  • Posts: 19
  • Helpful? 0
UsingFSRandINDF
« on: March 26, 2008, 12:00:23 PM »
Hello everyone,
I read that to quickly change the values of TRISA in a PIC16F684, you can load the FSR with the address of TRISA, then simply write to the register pointed to by the FSR. What exactly is the FSR and INDF, and how does doing this result in a faster write to TRISA? I've read some about this but don't fully understand it.
Thanks a lot,
mpuvdd
Any man who reads too much and uses his own brain too little falls into lazy habits of thinking-Einstein

paulstreats

  • Guest
Re: UsingFSRandINDF
« Reply #1 on: March 26, 2008, 07:58:11 PM »
the FSR is the "file select register"
i dont know what INDF is. But INCF is "increment f"
also the SFR is the "special function register"

These are assembly commands rather than c commands.

I think that once you have an address loaded into the fsr register, then you can make changes to what you are doing with just 2 assembly commands rather than the 4 that are usually used for changing TRIS registers.

 


Get Your Ad Here

data_list