Datasheet

Table Of Contents
Section 14 16-Bit Timer Pulse Unit (TPU)
Rev. 2.00 Jul. 04, 2007 Page 285 of 692
REJ09B0309-0200
Bit Bit Name
Initial
value
R/W Description
0 TGFA 0 R/(W)* Input Capture/Output Compare Flag A
Status flag that indicates the occurrence of TGRA input
capture or compare match.
[Setting conditions]
TCNT = TGRA and TGRA is functioning as output
compare register
The TCNT value is transferred to TGRA by input
capture signal and TGRA is functioning as input
capture register
[Clearing condition]
Writing of 0 to bit TGFA after reading TGFA = 1
Note: * Only 0 can be written to clear the flag.
14.3.6 Timer Counter (TCNT)
TCNT is a 16-bit readable/writable counter. The TPU has a total of two TCNT counters, one for
each channel.
TCNT is initialized to H'0000 by a reset or in standby mode.
TCNT cannot be accessed in 8-bit units; it must always be accessed in 16-bit units.
14.3.7 Timer General Register (TGR)
TGR is a 16-bit readable/writable register, functioning as either output compare or input capture
register. The TPU has a total of four TGR registers, two for each channel. TGR is initialized to
H'FFFF by a reset. TGR cannot be accessed in 8-bit units; it must always be accessed in 16-bit
units.