Anybody has an idea of how can I reserver a specific location of the on-chip program memory?
Does CCS has a built-in function for reading/writing the on-chip program memory?
Any comments and suggestions?
Thank you.
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Posted: Thu Mar 18, 2004 5:49 pm
To reserve location you can use #org. Quoting from the manual: Follow the ORG with a {} to only reserve the area with nothing inserted by the compiler. You may want to take a look at #ROM too.
To read/write the on-chip program memory you can use the read_program_eeprom()/write_program_eeprom () functions.
Guest
Posted: Thu Mar 18, 2004 10:31 pm
Haplo wrote:
To reserve location you can use #org. Quoting from the manual: Follow the ORG with a {} to only reserve the area with nothing inserted by the compiler. You may want to take a look at #ROM too.
To read/write the on-chip program memory you can use the read_program_eeprom()/write_program_eeprom () functions.
How many clock cycles does it takes for a read_program_eeprom() and write_program_eeprom()?
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Posted: Fri Mar 19, 2004 12:10 am
Judging by the code generated in the .LST file, on a PIC16F87x read_program_eeprom() takes around 20 instruction cycles and write_program_eeprom() takes around 40 instruction cycles to finish.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum