
Preliminary W741C20X
- 24 -
IEF.0 = 1 Interrupt 0 is accepted by overflow from the Divider 0.
IEF.1 = 1 Interrupt 1 is accepted by underflow from the Timer 0.
IEF.2 = 1 Interrupt 2 is accepted by a signal change at port RC.
IEF.3 is reserved.
IEF.4 = 1 Interrupt 4 is accepted by a falling edge signal at the
INT
pin.
IEF.5 = 1 Interrupt 5 is accepted by the serial port received completely.
IEF.6 = 1 Interrupt 6 is accepted by the serial port transmitted completely.
IEF.7 = 1 Interrupt 7 is accepted by underflow from Timer 1.
External INT
The external interrupt
INT
pin contains a pull-up resistor. When the HEF.4 or IEF.4 flag is set, the
falling edge of the
INT
pin will execute the hold mode release or interrupt subroutine. A low level on
the
INT
pin will release the stop mode.
Stop Mode Operation
In stop mode, all operations of the
μ
C cease (including the operation of the oscillator). The
μ
C enters
stop mode when the STOP instruction is executed and exits stop mode when an external trigger is
activated (by a low level on the
INT
pin or a falling signal on the RC port). When the designated
signal is accepted, the
μ
C awakens and warms up, and then executes the next instruction.
Stop Mode Wake-up Enable Flag for Ports RC (SEF)
The stop mode wake-up flag for ports RC is organized as a 4-bit binary register (SEF.0 to SEF.3).
Before port RC may be used to make the device exit the stop mode, the content of the SEF must be
set first. The SEF is controlled by the MOV SEF, #I instruction. The bit descriptions are as follows:
SEF
w
w
w
0
1
2
w
3
Note: W means write only.
SEF 0 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.0
SEF 1 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.1
SEF 2 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.2
SEF 3 = 1 Device will exit stop mode when falling edge signal is applied to pin RC.3
Hold Mode Operation
In hold mode, all operations of the
μ
C cease, except for the operation of the oscillator and timer. The
μ
C enters hold mode when the HOLD instruction is executed. The hold mode can be released in one
of five ways: by the action of timer 0, timer 1, the divider, the
INT
pin, the RC port. Before the device
enters the hold mode, the HEF, PEF, and IEF flags must be set to define the hold mode release
conditions. For more details, refer to the instruction-set table and the following flow chart.