|ARM Technical Support Knowledge Articles|
Applies to: uVision Debugger
Information in this article applies to:
I am having trouble simulating the IDLE mode for the Atmel AT89C1051. In the code below, when IDLE mode is set, the simulator executes the SJMP LOOP instruction and it shouldn't.
; TEST ASSEMBLY PROGRAM ORG 0000H SJMP START ORG 0003H IE0_ISR: RETI ORG 000BH TR0_ISR: CPL P3.1 ;toggle to show activity in ISR RETI START: mov ie, #82h ;enable ints, enable et0 mov ip, #02h ;set timer0 to hi priority mov tmod, #02h ;set timer0 to 8-bit, autoreload setb tcon.4 ;set the timer run bit LOOP: CPL P3.0 ;toggle to show activity orl pcon, #01h ;go into idle SJMP LOOP END
Is there an update that solves this problem?
Yes. This problem is corrected in C51 V6.10a and uVision V2.10. You may download the latest updates from the following URL:
Article last edited on: 2004-06-28 10:30:25
Did you find this article helpful? Yes No
How can we improve this article?