Table 13-4-2 Bit Rates (1) (When Ioclk = 15 Mhz) - Panasonic MN103001G/F01K User Manual

Panax series microcomputer
Table of Contents

Advertisement

Serial Interface
Division ratio 1 = INT (IOCLK frequency / bit rate/127) + 1
Division ratio 2 = INT (IOCLK frequency / bit rate/division ratio 1 + 0.5)
Subtract 1 from the value for division ratio 2 that was derived through the above equations, and write the result in
SC3TIM.
If the value of division ratio 1 is 2 or higher, timer 2 or timer 8 must be used to divide the clock. Set SC3CK1 and
0 in the serial 3 control register SC3CTR to "01", and then set the control registers of timer 2 so that the clock is
divided by the value of division ratio 1. (Otherwise, set SC3CK1 and 0 in the serial 3 control register SC3CTR to
"11", and then set the control registers of timer 8 so that the clock is divided by the value of division ratio 1.)
If the value of division ratio 1 is 1, set SC3CK1 and 0 in the serial 3 control register SC3CTR to "00" and select
IOCLK.
The error versus the actual bit rate is calculated as follows:
Bit rate error = ABS (division ratio 1 x division ratio 2 x bit rate / IOCLK frequency – 1)
For example, when a 15 MHz IOCLK signal is used and transfer is conducted at a rate of 38.4 kbit/s, the timer
function is used to divide the clock signal. According to the equations shown above, division ratio 1 is 4 and
division ratio 2 is 98.
Set TM2BR = 3 in the timer 2 base register and SC3TIM = 97 in the serial 3 timer register, and set SC3CK1 and 0
to "01".
According to the equation shown above, the bit rate error is 0.35 %.
Tables 13-4-2 through 13-4-4 show typical examples.
Bit rate (bit/s)
230 400
115 200
56 000
38 400
19 200
9 600
4 800
2 400
1 200
600
300
150
Note: When using a timer to divide the clock signal, subtract 1 from the value of division ratio 1 as derived from
the equations on the top of this page, and write the result in the timer base register. For details, refer to the
chapter on the 8-bit timers.
13-46

Table 13-4-2 Bit Rates (1) (When IOCLK = 15 MHz)

Division ratio 1
1
2
3
4
7
13
25
50
99
197
394
788
Division ratio 2
65
65
89
98
112
120
125
125
126
127
127
127
Bit rate error
0.16 %
0.16 %
0.32 %
0.35 %
0.35 %
0.16 %
0.00 %
0.00 %
0.21 %
0.08 %
0.08 %
0.08 %

Advertisement

Table of Contents
loading

Table of Contents