We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
As a part of an "In application programming" I am using the following assembler code:
#pragma asm MOV R0,#14 //OSC frec MOV R1,#02H //PROGRAM DATA BYTE #pragma endasm
I don't know if you can define SFRs below 0x80, however you could: unsigned char data *ptr=0; ptr[0]=0xa5; ptr[1]=0x5a; etc but be warned that this is highly dodgy as the compiler may well be using those registers. You would need to look carefully at the generated code. You would be much better sticking with assembler for this IAP stuff. What derivative are you using?
Thanks for you reply Stefan. Yes I think I will keep using assembler for IAP. About the derivative, I am using the P89C51RD2. I rather be using Atmel (AT89C51RD2) but it is out of stock in most of the distributors. The reason I prefer Atmel over Philips is that API calls are more flexible in Atmel. Again, thanks. Juan Baez