Figure 10.17 Cascaded Operation Setting Procedure; Figure 10.18 Example Of Cascaded Operation (1) - Renesas H8S/2368 Series Hardware Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

Example of Cascaded Operation Setting Procedure: Figure 10.17 shows an example of the
setting procedure for cascaded operation.
Cascaded operation
<Cascaded operation>
Examples of Cascaded Operation: Figure 10.18 illustrates the operation when counting upon
TCNT_2 overflow/underflow has been set for TCNT_1, TGRA_1 and TGRA_2 have been
designated as input capture registers, and the TIOC pin rising edge has been selected.
When a rising edge is input to the TIOCA1 and TIOCA2 pins simultaneously, the upper 16 bits of
the 32-bit data are transferred to TGRA_1, and the lower 16 bits to TGRA_2.
TCNT_1
clock
TCNT_1
H'03A1
TCNT_2
clock
TCNT_2
H'FFFF
TIOCA1,
TIOCA2
TGRA_1
TGRA_2
Figure 10.19 illustrates the operation when counting upon TCNT_2 overflow/underflow has been
set for TCNT_1, and phase counting mode has been designated for channel 2.
TCNT_1 is incremented by TCNT_2 overflow and decremented by TCNT_2 underflow.
[1]
Set cascading
Start count
[2]

Figure 10.17 Cascaded Operation Setting Procedure

Figure 10.18 Example of Cascaded Operation (1)

[1]
Set bits TPSC2 to TPSC0 in the channel 1
(channel 4) TCR to B'1111 to select TCNT_2
(TCNT_5) overflow/underflow counting.
[2]
Set the CST bit in TSTR for the upper and lower
channel to 1 to start the count operation.
H'03A2
H'0000
H'03A2
H'0000
H'0001
Rev. 2.00, 05/03, page 423 of 820

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s seriesH8s/2300 series

Table of Contents