EM78156E
8-Bit Microcontroller with MASK ROM
[b] if WDT is enabled before SLEP, Port 6 Input Status Change Interrupt must be
disabled. Hence, the EM78156E can be awakened only by Case 1 or 2. Refer to
the section on Interrupt.
If Port 6 Input Status Change Interrupt is used to wake-up the EM78156E (Case [a]
above), the following instructions must be executed before SLEP:
MOV A, @xx000110b
CONTW
; Select internal TCC clock
CLR R1
; Clear TCC and prescaler
; Select WDT prescaler
MOV A, @xxxx1110b
CONTW
WDTC
; Clear WDT and prescaler
; Disable WDT
MOV A, @0xxxxxxxb
IOW RE
MOV R6, R6
MOV A, @00000x1xb
IOW RF
; Read Port 6
; Enable Port 6 input change interrupt
ENI (or DISI)
SLEP
; Enable (or disable) global interrupt
; Sleep
NOP
One problem user should be aware of, is that after waking up from the sleep mode,
WDT would enable automatically. The WDT operation (being enabled or disabled)
should be handled appropriately by software after waking up from the sleep mode.
Table 5 The Summary of the Initialized Values for Registers
Address
Name
Reset Type
Bit Name
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
X
U
U
X
U
U
X
U
U
X
U
U
C53
1
C52
1
C51
1
C50
1
Power-On
N/A
IOC5
/RESET and WDT
1
1
1
1
Wake-Up from Pin
Change
U
U
U
U
P
P
P
P
Bit Name
C67
1
C66
1
C65
1
C64
1
C63
1
C62
1
C61
1
C60
1
Power-On
N/A
N/A
IOC6
/RESET and WDT
1
1
1
1
1
1
1
1
Wake-Up from Pin
Change
P
P
P
P
P
P
P
P
CONT
Bit Name
X
1
1
/INT
0
TS
1
TE
1
PAB PSR2 PSR1 PSR0
Power-On
1
1
1
1
1
1
1
1
/RESET and WDT
0
1
1
Product Specification (V1.3) 07.29.2004
• 17
(This specification is subject to change without further notice)