Hi All, I am Ravikumar.N, using C8051F130 microcontroller for my application.
I am using SDCC compiler.
My code is as follows.
void main() { char SFRPAGE_SAVE, RESTORE_SFRPAGE;
SFRPAGE_SAVE = SFRPAGE; SFRPAGE = CONFIG_PAGE; ; Do some task
RESTORE_SFRPAGE = SFRPAGE; SFRPAGE = TMR3_PAGE; ; Do something SFRPAGE = RESTORE_SFRPAGE; }
Here the moment I access the SFRPAGE of TIMER3, program starts misbehaving.
If I dont access the SFRPAGE of TIMER3, program works fine.
what could be reason for this. If anybody know the the solution for this plese let me know.
Regards, Ravikumar.N