TMP92CF30
2009-06-12
92CF30-310
Main routine
7
6
5
4
3
2
1
0
P9CR
←
X
X
X
X
X
−
0
−
Set P91 to function as the RXD0 pin.
P9FC
←
− −
X
X
X
−
X
−
SC0MOD0
←
−
−
1
−
1
0
0
1
Enable receiving in 8-bit UART mode.
SC0CR
← −
0
1
−
−
−
−
−
Add odd parity.
BR0CR
←
0
0
0
1
1
0
0
0
Set the transfer rate to 9600 bps.
INTES0
←
X 1
0
0
X
0
0
0
Enable the INTTX0 interrupt and set it to interrupt
level 4.
Interrupt routine
A
CC
←
SC0CR AND 00011100
if A
CC
≠
0 then ERROR
Check for errors
A
CC
←
SC0BUF
Read the received data
X: Don't care,
−
: No change
(4) Mode 3 (9-Bit UART Mode)
9-Bit UART Mode is selected by setting SC0MOD0<SM1:0> to “11”. In this mode a
parity bit cannot be added.
In the case of transmission the MSB (9th bit) is written to SC0MOD0<TB8>. In the
case of receiving it is stored in SC0CR<RB8>. When the buffer is written or read,
<TB8> or <RB8> is read or written first, before the rest of the SC0BUF data.
Wake-up function
In 9-Bit UART Mode, the wake-up function for slave controllers is enabled by setting
SC0MOD0<WU> to “1”. The interrupt INTRX0 can only be generated when<RB8> =
“1”.
Note: The TXD pin of each slave controller must be in Open-Drain Output Mode.
Figure 3.14.24 Serial Link using Wake-up function
TXD RXD
Master
TXD RXD
Slave1
TXD
RXD
Slave 2
TXD RXD
Slave 3
Содержание TLCS-900/H1 Series
Страница 1: ...TOSHIBA Original CMOS 32 Bit Microcontroller TLCS 900 H1 Series TMP92CF30FG Semiconductor Company ...
Страница 650: ...TMP92CF30 2009 06 12 92CF30 648 7 Package Dimensions LQFP176 P 2020 0 40F TOP VIEW BOTTOM VIEW Detail view of A 25 1 A ...
Страница 652: ...TMP92CF30 2009 06 12 92CF30 650 ...