It is givving an error saying that " *** error 65: access violation at D15:0x96 : no 'write' permission" it is not updating the page regester to change pages.
It is givving an error And what would that "It" be, pray tell? it is not updating the page regester to change pages. And how do you know that "it" does not do that?
When we know the controller that you are using, it would help a lot.
we r using Cygnal processor(of silicon labs) ... C120..
I have checked this with the current version 8.02. The following code works just fine in the simulator:
SFRPAGE = 0x0F; SFRPGCN = 1;
When we know the controller that you are using, it would help a lot. this is not an answer we r (resist) using Cygnal processor(of silicon labs) ... C120 the question was NOT which processor you did not use, it was which do you use. Erik
Keil shows the error for this part of code compilation. And the Timers (3 and 4) in peripheirals are not updated in simulation mode .. SFRPAGE = TMR3_PAGE; TMR3CN = 0x07 ; SFRPAGE = TMR4_PAGE; TMR4CN = 0x07 ; we are using Keil 8.00v (eval). But the code worked properly in 7.50a ver (full) ..but the problem there was that the peripherials window was not active i.e., The peripherals where not availabe( No timers etc.) to use except -- Reset CPU. The code is for Silicon labs ..C8051F120