|
UPD17016 Datasheet, PDF (124/324 Pages) NEC – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE | |||
|
◁ |
µPD17016, 17017
Caution
When executing the HALT instruction which is to be released if the interrupt request flag (IRQÃÃÃ)
for which the interrupt permission flag (IPÃÃÃ) is set 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 IRQxxx 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 IRQxxx is not reflected on HALT instruction
; (but on instruction next to HALT)
; HALT instruction is ignored (HALT mode is not set)
124
|
▷ |