Datasheet

Table Of Contents
Section 14 16-Bit Timer Pulse Unit (TPU)
Rev. 2.00 Jul. 04, 2007 Page 298 of 692
REJ09B0309-0200
14.5.3 Operation with Cascaded Connection
Operation as a 32-bit counter can be performed by cascading two 16-bit counter channels.
This function is enabled when the TPSC2 to TPSC0 bits in TCR are set to count on TCNT2
overflow for the channel 1 counter clock.
Table 14.11 shows the counter combination used in operation with the cascaded connection.
Table 14.11 Counter Combination in Operation with Cascaded Connection
Combination Upper 16 bits Lower 16 bits
Channel 1 and channel 2 TCNT1 TCNT2
(1) Setting Procedure for Operation with Cascaded Connection
Figure 14.15 shows the setting procedure for cascaded connection operation.
Operation with cascaded
connection
[1]
[1] Set bits TPSC2 to TPSC0 in TCR in
channel 1 to B'111 to select to count
on TCNT2 overflow.
[2] Set 1 to the CST bit in TSTR corresponding
the upper and lower channels to start
counting.
[2]
<Operation with cascaded connection>
Set operation with cascaded
connection
Start count
Figure 14.15 Setting Procedure for Operation with Cascaded Operation