EM78156EAS EMC [ELAN Microelectronics Corp], EM78156EAS Datasheet - Page 21

no-image

EM78156EAS

Manufacturer Part Number
EM78156EAS
Description
8-Bit Microcontroller with MASK ROM
Manufacturer
EMC [ELAN Microelectronics Corp]
Datasheet
Product Specification (V1.3) 07.29.2004
(This specification is subject to change without further notice)
Address
N/A
N/A
N/A
Name
IOC5
IOC6
CONT
[b] if WDT is enabled before SLEP, Port 6 Input Status Change Interrupt must be
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
CLR R1
MOV A, @xxxx1110b
CONTW
WDTC
MOV A, @0xxxxxxxb
IOW RE
MOV R6, R6
MOV A, @00000x1xb
IOW RF
ENI (or DISI)
SLEP
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
disabled. Hence, the EM78156E can be awakened only by Case 1 or 2. Refer to
the section on Interrupt.
Bit Name
Power-On
/RESET and WDT
Wake-Up from Pin
Change
Bit Name
Power-On
/RESET and WDT
Wake-Up from Pin
Change
Bit Name
Power-On
/RESET and WDT
Reset Type
Bit 7
C67
; Clear TCC and prescaler
; Clear WDT and prescaler
; Read Port 6
U
U
U
; Select internal TCC clock
; Select WDT prescaler
; Disable WDT
; Enable Port 6 input change interrupt
; Enable (or disable) global interrupt
; Sleep
X
1
1
P
X
1
1
Bit 6
C66
/INT
U
U
U
P
X
1
1
0
0
Bit 5
C65
TS
8-Bit Microcontroller with MASK ROM
X
U
U
U
P
1
1
1
1
Bit 4
C64
TE
X
U
U
U
P
1
1
1
1
Bit 3
C53
C63
PAB
P
P
1
1
1
1
1
1
PSR2 PSR1 PSR0
Bit 2
C52
C62
P
P
1
1
1
1
1
1
EM78156E
Bit 1
C51
C61
P
P
1
1
1
1
1
1
Bit 0
C50
C60
P
P
1
1
1
1
1
1
• 17

Related parts for EM78156EAS