DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

EM78P156E Ver la hoja de datos (PDF) - ELAN Microelectronics

Número de pieza
componentes Descripción
Fabricante
EM78P156E Datasheet PDF : 28 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
EM78P156E
Table 2 Usage of Port 6 input changed wake-up/interrupt function
Usage of Port 6 Input Status Changed Wake-up/Interrupt
(I) Wake-up from Port 6 input status changed
(II) Port 6 input status changed Interrupt
(a) Before SLEEP
1. Disable WDT1 (using very carefully)
1. Read I/O Port 6 (MOV R6,R6)
2. Execute "ENI"
2. Read I/O Port 6 (MOV R6,R6)
3. Enable interrupt (Set IOCF.1)
3. Execute "ENI" or "DISI"
4. Enable interrupt (Set IOCF.1)
5. Execute “SLEP” instruction
4. If Port 6 changed (interrupt)
Interrupt vector (008H)
(b) After wake-up
1. If "ENI" Interrupt vector (008H)
2. If "DISI" Next instruction
1 Note : Software disables WDT (watchdog timer) but hardware must be enabled before using port6 changed
wake-up function. (CODE Option Register, bit 11 (ENWDTB-) set to "1").
VCC
ROC
PCRD
Weekly
Pull-up
Q
P
R
D
CLK
Q
C
L
PCWR
PORT
Rex *
Q
P
R
D
IOD
CLK
PDWR
Q
C
L
0M
1U
X
PDRD
* The Rex is 430K ohm external resistor.
Fig. 8 The circuit of I/O port with R-option (P50,P51)
VI.5 RESET and Wake-up
1. RESET
The RESET can be caused by
(1) Power-on reset
(2) /RESET pin input "low", or
(3) WDT time-out (if enabled).
Note that only power-on reset, or only voltage detector in Case (1) is enabled in the system by CODE option bit.
Refer to Fig. 9. The device will be kept in a RESET condition for a period of approx. 18ms (one-oscillator start-
up timer period) after the reset is detected. Once the RESET occurs, the following functions
are performed.
• The oscillator is running, or will be started.
• The Program Counter (R2) is set to all "0".
• All I/O port pins are configured as input mode (high-impedance state).
* This specification is subject to be changed without notice. 8.11.1999
B3-12

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]