ARM Technical Support Knowledge Articles

IDLE MODE ON THE ATMEL AT89C1051

Applies to: uVision Debugger

Answer


Information in this article applies to:


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 uVision V2.10. You may download the latest updates from the following URL:

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

Article last edited on: 2004-06-28 10:30:25

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential