em78p164n ELAN Microelectronics Corp, em78p164n Datasheet - Page 30

no-image

em78p164n

Manufacturer Part Number
em78p164n
Description
8-bit Microcontroller With Otp Rom
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78P164N
8-Bit Microcontroller with OTP ROM
24 •
MOV
CONTW
WDTC
MOV
IOW
MOV
MOV
IOW
ENI (or DISI)
SLEP
Only one of Cases 2 and 3 can be enabled before entering sleep mode. That is,
[a] if Port 6 input status changed interrupt is enabled before SLEP, WDT must be
If Port 6 Input Status Changed Interrupt is used to wake-up the EM78P164N (Case [a]
above), the following instructions must be executed before SLEP:
[b] if WDT is enabled before SLEP, Port 6 Input Status Change Interrupt must be
1. After waking up from sleep mode, the WDT is automatically enabled. The WDT
2. To avoid a reset from occurring when the Port 6 Input Status Changed Interrupt
disabled by software. However, the WDT bit in the option register remains
enabled. Hence, the EM78P164N can be awakened only by Case 1 or 3.
disabled. Hence, the EM78P164N can be awakened only by Case 1 or 2. Refer to
the section on Interrupt.
enable/disable operation after waking up from sleep mode should be properly
defined in the software.
enters into an interrupt vector or is used to wake-up the MCU, the WDT prescaler
must be set above the 1:1 ratio.
A, @xxxx1110b
A, @0xxxxxxxb
RE
R6, R6
A, @00000x1xb
RF
(This specification is subject to change without further notice)
NOTE
; Select WDT prescaler,
; the prescaler
; 1:1
; Clear WDT and prescaler
; Disable WDT
; Read Port 6
; Enable Port 6 input change
; interrupt
; Enable (or disable) global
; interrupt
; Sleep
Product Specification (V1.4) 05.28.2010
must be set over

Related parts for em78p164n