Aug 5, 2013 #1 C 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.
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.
Aug 5, 2013 #2 Venkadesh_M Advanced Member level 4 Joined Jun 26, 2013 Messages 1,374 Helped 258 Reputation 516 Reaction score 254 Trophy points 1,363 Location Coimbatore, India Activity points 8,019 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....
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....
Aug 5, 2013 #3 C charu2539211 Junior Member level 3 Joined Jul 22, 2013 Messages 31 Helped 1 Reputation 2 Reaction score 1 Trophy points 8 Activity points 200 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???
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???
Aug 5, 2013 #4 Venkadesh_M Advanced Member level 4 Joined Jun 26, 2013 Messages 1,374 Helped 258 Reputation 516 Reaction score 254 Trophy points 1,363 Location Coimbatore, India Activity points 8,019 for how to write a macro or accessing EEPROM ?
Aug 5, 2013 #5 C charu2539211 Junior Member level 3 Joined Jul 22, 2013 Messages 31 Helped 1 Reputation 2 Reaction score 1 Trophy points 8 Activity points 200 for how to write a macro.
Aug 5, 2013 #6 bigdogguru Administrator Joined Mar 12, 2010 Messages 9,821 Helped 2,350 Reputation 4,694 Reaction score 2,272 Trophy points 1,413 Location Southwest, USA Activity points 62,383 Are you using Assembly or C Language to write your main code? Examples in C: PIC C - Use of the PIC16F84 EEPROM Read and write operations in Internal EEPROM of PIC16F877A Examples in Assembly: EEProm Routines (EEProm.inc) PIC16F Internal EEPROM BigDog
Are you using Assembly or C Language to write your main code? Examples in C: PIC C - Use of the PIC16F84 EEPROM Read and write operations in Internal EEPROM of PIC16F877A Examples in Assembly: EEProm Routines (EEProm.inc) PIC16F Internal EEPROM BigDog