Keil Logo

µVISION DEBUGGER: IDLE MODE ON THE ATMEL AT89C1051


Information in this article applies to:

  • C51 Version 6.02
  • µVision Version 2.04

QUESTION

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?

ANSWER

Yes. This problem is corrected in C51 V6.10a and µVision V2.10. You may download the latest updates from the following URL:

http://www.keil.com/update/

Last Reviewed: Monday, June 28, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.