EEPROM in pic16f887 and using macros

Status
Not open for further replies.

charu2539211

Junior Member level 3
Joined
Jul 22, 2013
Messages
31
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
200
HI

can i define the program writing in EEPROM as a Macro and use it in my main program?? if so can u tell me the steps to do so??

I am using MPLAB IDE, PIC16f887 processor.
 

you can write.. but you have to remember that the macro functions will expand each time when you calling the function....

better option is writing the function as a function and defining the particular offset (desired starting location) as macro....
 

ya i know!! but i will be using it many times.. so i thought using macros will be a better option. and i dont have problem if the size of the program increases.

- - - Updated - - -

can u suggest some tutorials links???
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…