Datasheet

Table Of Contents
Section 13 Serial Communication Interface
Page 410 of 846 REJ09B0140-0900 Rev. 9.00
Sep 16, 2010
H8S/2215 Group
9.6 MHz
8.832 MHz
Example for TPU clock generation for 552 kbps average transfer rate when φ = 24 MHz (TCS2 to TCS0 = B'011)
(1) 9.6-MHz base clock provided by TPU_0 is multiplied by 23/25 by TPU_1 and TPU_2 to generate 8.832-MHz base clock
(2) By making 1 bit = 16 base clocks, the average transfer will be 8.832 MHz/16 = 552 kbps
TPU and SCI settings
TIOCA0 output
= 4.8 MHz
TIOCC0 output
= 4.8 MHz
SCK0
Base clock
= 9.6 MHz × 23/25
= 8.832 MHz (Average)
1 bit = Base clock × 16*
Average transfer rate = 8.832 MHz/16 = 552 kbps
Note: * The length of one bit varies according to the base clock synchronization.
12 563
Base clock
(TIOCA0 + TIOCC0) output
= 9.6 MHz
TIOCA1 output
4781112910 1314 171815 16 19 20 23 2421 22 25 1 4 52 3 6 7 10 118 9 12 13 16 1714 15 18
12 5634 78 1112910 1314 161715 18 19 22 2320 21 4 5213 6 101187 9 12 13 16 1714 15
12 5634 78 1112910 1314 16115 2 3 6 745 11129810 13 121514 16 3 4 7 856
TIOCA2 output
Clock enable
(TIOCA1×TIOCA2) output
TCR_0 = H'20 [TCNT_0 cleared by TGRA_0 compare match, TCNT_0 incremented at rising edge of φ/1]
TCR_1 = H'2D [TCNT_1 cleared by TGRA_1 compare match, TCNT_1 incremented at falling edge of TCLKB]
TCR_2 = H'2D [TCNT_2 cleared by TGRA_2 compare match, TCNT_2 incremented at falling edge of TCLKB
TMDR_0 = TMDR_1 = TMDR_2 = H'C2 [PWM mode 1]
TIORH_0 = H'21 [0 as TIOCA0 initial output, 0 output on TGRA_0 compare match, 1 output on TGRB_0 compare match]
TIORL_0 = H'21 [0 as TIOCC0 initial output, 0 output on TGRC_0 compare match, 1 output on TGRD_0 compare match]
TIOR_1 = H'21 [0 as TIOCA1 initial output, 0 output on TGRA_1 compare match, 1 output on TGRB_1 compare match]
TIOR_2 = H'21 [0 as TIOCA2 initial output, 0 output on TGRA_2 compare match, 1 output on TGRB_2 compare match]
TCNT_0 = TCNT_1 = H'0000, TCNT_2 = H'000C
TGRA_0 = H'0004, TGRB_0 = H'0002, TGRC_0 = H'0001, TGRD_0 = H'0000
TGRA_1 = H'0018, TGRB_1 = H'0000
TGRA_2 = H'0018, TGRB_2 = H'0000
SCR_0 = H'03 (external clock)
SEMRA_0 = H'34 (TCS2 to TCS0 = B'011, ABCS = 0, ACS2 to ACS0 = B'100)
SEMRB_0 = H'00 (ACS3 = 0)
TPU
TIOCA2
Clock enable
Base clock
φ
TIOCA1
TIOCC0
TIOCA0
TCLKA
TCLKB
SCI_0
SCK0
D
>CK
Q
Figure 13.5 Example of Average Transfer Rate Setting when TPU Clock Is Input (4)