EM78P312N
8-Bit Microcontroller
of the TC3 pin input, the contents of the counter are loaded into TCR3A, counter is
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
TCR3DA
K
n
FF (Overflow)
Overflow
m
FE
TCR3DB
Capture
Capture
TC3 Interrupt
Reading TCR3DA
Fig. 5-23 Timing Chart of Capture Mode
5.11 Timer/Counter 4
Registers for Timer 4 Circuit
R_BANK Address Name Bit 7
Bit 6
TC4FF1 TC4FF0
Bit 5
TC4S
R/W
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
TC4M0
R/W
TC4CK2 TC4CK1 TC4CK0 TC4M1
Bank 0
Bank 0
Bank 0
SFR
0X0B
0X0C
0x0E
0x0E
TC4CR
TC4D
ISFR1
IMR1
R/W
TC4D7
R/W
R/W
TC4D6
R/W
R/W
R/W
TC4D3
R/W
R/W
TC4D2
R/W
R/W
TC4D1
R/W
TC4D5
R/W
TC4D4
TC4D0
R/W
R/W
0
EXIF5 TCIF2
ADIF
R/W
EXIF3 TCIF4
SPIF
R/W
TCIF3
R/W
R/W
EXIE5
R/W
R/W
TCIE2
R/W
--
R/W
EXIE3
R/W
R/W
TCIE4
R/W
ADIE
R/W
0
SPIE
R/W
TCIE3
R/W
--
Product Specification (V1.0) 10.03.2006
(This specification is subject to change without further notice)
• 39