tmp88cs38ng TOSHIBA Semiconductor CORPORATION, tmp88cs38ng Datasheet - Page 32

no-image

tmp88cs38ng

Manufacturer Part Number
tmp88cs38ng
Description
Cmos 8-bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
(00037H)
EINTCR
Example: When change TC1 pin inputs edge in external trigger timer mode from rising edge falling edge.
Note 1: fc: High-frequency clock [Hz], *: Don’t care
Note 2: Edge detection during switching edge selection is invalid.
Note 3: Do not change EINTCR only when IMF = 1. After changing EINTCR, interrupt latches of external interrupt
Note 4: In order to change of external interrupt input by rewriting the contents of INT2ES and INT4ES during
Note 5: In order to change an edge of timer counter input by rewritng the contents of INT2ES during NORMAL
INT0EN
INT4ES
INT2ES
“0”
7
inputs must be cleared to “0” using load instruction.
NORMAL mode, clear interrupt latches of external interrupt inputs (INT2 and INT4) after 8 machine cycles
from the time of rewriting.
mode, rewrite the contents after timer counter is stopped (TC*s = 0) , that is, terrupt disable state.
Then, clear a interrupt latch of external interrupt input (INT2) after 8 machine cycles from the time of
rewriting to change to interrupt enable state. Finally, start timer counter.
8-machine
INT0
EN
P50/
INT4 and INT2 edge select
6
cycles
INT0
Figure 1.5.5 External Interrupt Control Register
5
pin configuration
LD (TC1CR) , 01001000B
DI
LD (EINTCR) , 00000100B
NOP
to
NOP
LD (ILL) , 01111111B
EI
LD (TC1CR) , 01111000B
INT4
ES
4
3
88CS38-32
0: P50 input/output port
1:
0: Rising edge
1: Falling edge
INT2
INT0
ES
2
pin (Port P50 should be set to an input mode)
;
;
;
;
;
;
“0”
1
TC1S ← 00 (Stops TC1)
IL7 ← 0 (Clears interrupt latch)
IMF ← 1 (Enable interrupt service)
TC1S ← 11 (Starts TC1)
IMF ← 0 (Disables interrupt service)
INT2ES ← 1 (Change edge selection)
0
TMP88CS38/CM38A/CP38A
(Initial value: 00*0 *00*)
2007-09-12
Write
only

Related parts for tmp88cs38ng