EM78P809N
8-Bit Microcontroller
cleared and interrupt is generated again. If an overflow before the edge is detected,
the FFH is loaded into TCR3DA and an overflow interrupt is generated. During
interrupt processing, it can be determined whether or not there is an overflow by
checking whether the TCR3DA value is FFH. After an interrupt (capture to TCR3DA or
overflow detection) is generated, capture and overflow detection are halted until
TCR3DA is read out.
Source Clock
Up-counter
0
K-1 K
m-1
m
m+1
n-1 n
0
K-2
1
1
2
3
FE FF0
1
2
3
TC3 Pin Input
K
n
FF (Overflow)
Overflow
TCR3DA
TCR3DB
m
FE
Capture
Capture
TC3 Interrupt
Reading TCR3DA
Fig. 24.Timing Chart of Capture Mode
4.11 Timer/Counter 4
Registers for Timer 4 Circuit
R_BANK Address NAME Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
BANK 0
BANK 0
BANK 0
SFR
0X0B
0X0C
0x0E
0x0E
TC4CR TC4FF1 TC4FF0 TC4S TC4CK2 TC4CK1 TC4CK0 TC4M1 TC4M0
R/W R/W R/W R/W R/W R/W R/W R/W
TC4D7 TC4D6 TC4D5 TC4D4 TC4D3 TC4D2 TC4D1 TC4D0
R/W R/W R/W R/W
TC4D
R/W
R/W
R/W
R/W
0
ISFR1 EXIF5 TCIF2 ADIF
EXIF3 TCIF4 SPIF TCIF3
R/W
EXIE5
R/W
R/W
TCIE2
R/W
R/W
ADIE
R/W
--
R/W
EXIE3
R/W
R/W
TCIE4
R/W
R/W
SPIE
R/W
R/W
TCIE3
R/W
IMR1
0
--
44 •
Product Specification (V1.0) 07.26.2005
(This specification is subject to change without further notice)