English
Language : 

TMP89FW24ADFG Datasheet, PDF (335/548 Pages) Toshiba Semiconductor – 8 Bit Microcontroller TLCS-870/C1 Series
19.4 Functions
TMP89FW24A
19.4.1 Transfer format
The transfer format can be set to either MSB or LSB first by using SIO0CR<SIODIR>. Setting SIO0CR<SIO-
DIR> to "0" selects LSB first as the transfer format. In this case, the serial data is transferred in sequence
from the least significant bit.
Setting SIO0CR<SIODIR> to "1" selects MSB first as the transfer format. In this case, the serial data is trans-
ferred in sequence from the most significant bit.
19.4.2 Serial clock
The serial clock can be selected by using SIO0CR<SIOCKS>.
Setting SIO0CR<SIOCKS> to "000" to "110" selects the internal clock as the serial clock. In this case, the
serial clock is output from the SCLK0 pin. The serial data is transferred in synchronization with the edge of
the SCLK0 pin output.
Setting SIO0CR<SIOCKS> to "111" selects an external clock as the serial clock. In this case, an external se-
rial clock must be input to the SCLK0 pin. The serial data is transferred in synchronization with the edge of
the external clock.
The serial data transfer edge can be selected for both the external and internal clocks. For details, refer to
"19.4.3 Transfer edge selection".
Table 19-3 Transfer Baud Rate
SIO0CR
<SIOCKS>
000
001
010
011
100
101
110
Serial clock [Hz]
NORMAL1/2 or SLOW1/2 or
IDLE1/2 mode SLEEP1 mode
fcgck/29
-
fcgck/26
-
fcgck/25
-
fcgck/24
-
fcgck/23
-
fcgck/22
-
fcgck/2
fs/23
fcgck=4MHz
1-bit time Baud rate
(μs)
(bps)
128
7.813k
16
62.5k
8
125k
4
250k
2
500k
1
1M
0.5
2M
fcgck=8MHz
1-bit time Baud rate
(μs)
(bps)
64
15.625k
8
125k
4
250k
2
500k
1
1M
0.5
2M
0.25
4M
fcgck=10MHz
1-bit time Baud rate
(μs)
(bps)
51.2
19.531k
6.4
156.25k
3.2
312.5k
1.6
625k
0.8
1.25M
0.4
2.5M
0.2
5M
fs=32.768kHz
1-bit time Baud rate
(μs)
(bps)
-
-
-
-
-
-
-
-
-
-
-
-
244
4k
19.4.3 Transfer edge selection
The serial data transfer edge can be selected by using SIOCR<SIOEDG>.
Table 19-4 Transfer Edge Selection
SIO0CR<SIOEDG>
0
1
Data transmission
Falling edge
Rising edge
Data reception
Rising edge
Falling edge
When SIOCR<SIOEDG> is "0", the data is transmitted in synchronization with the falling edge of the
clock and the data is received in synchronization with the rising edge of the clock.
When SIOCR<SIOEDG> is "1", the data is transmitted in synchronization with the rising edge of the
clock and the data is received in synchronization with the falling edge of the clock.
RA001
Page 319
2012/5/18