Datasheet

Table Of Contents
Section 10 16-Bit Timer Pulse Unit (TPU)
REJ09B0140-0900 Rev. 9.00 Page 329 of 846
Sep 16, 2010
H8S/2215 Group
Examples of Phase Counting Mode Operation: In phase counting mode, TCNT counts up or
down according to the phase difference between two external clocks. There are four modes,
according to the count conditions.
1. Phase counting mode 1
Figure 10.26 shows an example of phase counting mode 1 operation, and table 10.20
summarizes the TCNT up/down-count conditions.
TCNT value
Time
Down-count
Up-count
TCLKA (channel 1)
TCLKC (channel 2)
TCLKB (channel 1)
TCLKD (channel 2)
Figure 10.26 Example of Phase Counting Mode 1 Operation
Table 10.20 Up/Down-Count Conditions in Phase Counting Mode 1
TCLKA (Channel 1)
TCLKC (Channel 2)
TCLKB (Channel 1)
TCLKD (Channel 2) Operation
High level
Low level
Low level
High level
Up-count
High level
Low level
High level
Down-count
Low level
Legend:
: Rising edge
: Falling edge