
No.M16C-25-9905
( 2 / 2 )
_______
3.2 When using only hardware reset or NMI interrupt to cancel the STOP or WAIT
modes, use the following algorithm to enter the STOP or WAIT modes.
; Disable interrupt
WAIT instruction or all clock stop control bit set
; Disable maskable interrupt
Set the interrupt enable flag (I flag) to “0”
Change all interrupt priority levels to 0
Insert 4 NOP instructions
; NOP instructions are required because M16C instruction queue reads forward 4
bytes from wait or stop instruction when program is stopped.
; Set the bit 0 of protect register to “1” before set the all clock stop control bit to “1” .
Komentáře k této Příručce