Page 243
TMP89FM42
RA001
17.4 Functions
17.4.1 Transfer format
The transfer format can be set to either MSB or LSB first by using SIO0CR<SIODIR>. Setting
SIO0CR<SIODIR> 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
transferred in sequence from the most significant bit.
17.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
serial 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
"17.4.3 Transfer edge selection".
17.4.3 Transfer edge selection
The serial data transfer edge can be selected by using SIOCR<SIOEDG>.
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.
Table 17-3 Transfer Baud Rate
SIO0CR
<SIOCKS>
Serial clock [Hz]
fcgck=4MHz
fcgck=8MHz
fcgck=10MHz
fs=32.768kHz
NORMAL1/2 or
IDLE1/2 mode
SLOW1/2 or
SLEEP1 mode
1-bit time
(
µ
s)
Baud rate
(bps)
1-bit time
(
µ
s)
Baud rate
(bps)
1-bit time
(
µ
s)
Baud rate
(bps)
1-bit time
(
µ
s)
Baud rate
(bps)
000
fcgck/2
9
-
128
7.813k
64
15.625k
51.2
19.531k
-
-
001
fcgck/2
6
-
16
62.5k
8
125k
6.4
156.25k
-
-
010
fcgck/2
5
-
8
125k
4
250k
3.2
312.5k
-
-
011
fcgck/2
4
-
4
250k
2
500k
1.6
625k
-
-
100
fcgck/2
3
-
2
500k
1
1M
0.8
1.25M
-
-
101
fcgck/2
2
-
1
1M
0.5
2M
0.4
2.5M
-
-
110
fcgck/2
fs/2
3
0.5
2M
0.25
4M
0.2
5M
244
4k
Table 17-4 Transfer Edge Selection
SIO0CR<SIOEDG>
Data transmission
Data reception
0
Falling edge
Rising edge
1
Rising edge
Falling edge
Summary of Contents for TLCS-870/C1 Series
Page 1: ...8 Bit Microcontroller TLCS 870 C1 Series TMP89FM42 查询TMP89FM42供应商 捷多邦 专业PCB打样工厂 24小时加急出货 ...
Page 3: ...Revision History Date Revision 2007 10 25 1 First Release 2007 11 3 2 Contents Revised ...
Page 4: ......
Page 14: ......
Page 18: ...1 3 Block Diagram TMP89FM42 1 3 Block Diagram Figure 1 2 Block Diagram ...
Page 22: ...1 4 Pin Names and Functions TMP89FM42 ...
Page 60: ...2 CPU Core 2 5 Revision History TMP89FM42 ...
Page 76: ...3 Interrupt Control Circuit 3 8 Revision History TMP89FM42 ...
Page 86: ...4 External Interrupt control circuit 4 3 Function TMP89FM42 ...
Page 102: ...7 Voltage Detection Circuit 7 5 Revision History TMP89FM42 ...
Page 126: ...8 I O Ports 8 3 I O Port Registers TMP89FM42 Note 2 i 0 to 1 ...
Page 136: ...8 I O Ports 8 5 Revision History TMP89FM42 ...
Page 142: ...9 Special Function Registers 9 3 SFR3 0x0E40 to 0x0EFF TMP89FM42 ...
Page 146: ...10 Low Power Consumption Function for Peripherals TMP89FM42 ...
Page 149: ...TMP89FM42 11 3 Revision History Rev Description RA001 Deleted SLEEP2 description ...
Page 150: ...11 Divider Output DVO 11 3 Revision History TMP89FM42 ...
Page 220: ...15 Real Time Clock RTC 15 4 Real Time Clock Operation TMP89FM42 ...
Page 250: ...16 Asynchronous Serial Interface UART 16 15 Revision History TMP89FM42 ...
Page 302: ...18 Serial Bus Interface SBI 18 7 Revision History TMP89FM42 ...
Page 338: ...21 Flash Memory 21 4 Toggle Bit D6 TMP89FM42 ...
Page 384: ...22 Serial PROM Mode 22 15 Revision History TMP89FM42 ...
Page 388: ...24 Input Output Circuit 24 1 Control Pins TMP89FM42 ...
Page 404: ...25 Electrical Characteristics 25 11 Revision History TMP89FM42 ...
Page 406: ...26 Package Dimensions TMP89FM42 ...
Page 408: ......