|
PD17012_15 Datasheet, PDF (262/320 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE | |||
|
◁ |
µPD17012, 17P012
Caution
When executing the HALT instruction that will set the release condition where by the halt status
is released by the setting of the interrupt request flag (IRQÃÃÃ) when the interrupt enable flag
(IPÃÃÃ) is set, describe a NOP instruction immediately before the HALT instruction.
If a NOP instruction is described immediately before the HALT instruction, a time of one
instruction is generated in between the IRQÃÃÃ manipulation instruction and HALT instruction.
In the case of the CLR1 IRQÃÃÃ instruction, for example, clearing IRQÃÃÃ is correctly reflected
on the HALT instruction (refer to Example 1 below). If a NOP instruction is not described
immediately before the HALT instruction, the CLR1 IRQÃÃÃ instruction is not correctly reflected
on the HALT instruction, and the HALT mode is not set (refer to Example 2 below).
Example 1. Program that correctly executes HALT instruction
CLR1
NOP
IRQÃÃÃ
HALT
1000B
; Sets IRQÃÃÃ
; Describes NOP instruction immediately before
; HALT instruction
; (clearing IRQÃÃÃ is correctly reflected on HALT
; instruction)
; Correctly executes HALT instruction
; (HALT mode is set)
2. Program that does not set HALT mode
CLR1
HALT
IRQÃÃÃ
1000B
; Sets IQRÃÃÃ
; Clearing IRQÃÃÃ is not reflected on HALT instruction
; (but on instruction next to HALT)
; HALT instruction is ignored (HALT mode is not set)
260
Data Sheet U10101EJ4V0DS
|
▷ |