View Single Post
  #7   Spotlight this post!  
Unread 16-10-2003, 13:32
InnovationFirst's Avatar
InnovationFirst InnovationFirst is offline
Official FIRST Supplier
no team
 
Join Date: Nov 2002
Location: Greenville, Tx
Posts: 28
InnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond reputeInnovationFirst has a reputation beyond repute
EEPROM Usage

Quote:
Originally posted by skyman9000
Hmm...So I guess we cant use the EEPROM since IFI said not to touch EECON1 or 2 (ifi_picdefs.h).

Any only one pointer (FSR0)!! Well I guess that doesnt matter unless your using assembly.

Maybe I'm missing something. Back to the code...
In response to skyman9000's comments:

The user can use the EEPROM and we have modified the comments in the ifi_picdefs.h file to reflect this (Default Code Dated 10-16-2003). We apologize for the confusion.

FSR0 is the only safe register to use for indirect addressing in Assembly. If you wish to use FSR1 and FSR2, it is possible to do so, but it is highly recommended AGAINST. The C compiler uses these registers and if you fail to save their contents and restore them you will see very undesirable results.