Download Print this page

Toshiba TLCS-900/H1 Series Manual page 184

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

(2) Mode 1 (7-bit UART mode)
7-bit UART mode is selected by setting the serial channel mode register
SC0MOD0<SM1:0> field to 01.
In this mode a parity bit can be added. Use of a parity bit is enabled or disabled by
the setting of the serial channel control register SC0CR<PE> bit; whether even parity
or odd parity will be used is determined by the SC0CR<EVEN> setting when
SC0CR<PE> is set to 1 (enabled).
Setting example:
Start
Bit0
Transmission direction (Transmission rate: 2400 bps at f
7
6
5
← X
PFCR
X
X
← −
PFFC
X
X
← −
SC0MOD0
0
← −
SC0CR
1
1
← 0
BR0CR
0
1
← X
INTES0
1
0
← *
SC0BUF
*
*
X: Don't care, −: No change
(3) Mode 2 (8-bit UART mode)
8-bit UART mode is selected by setting SC0MOD0<SM1:0> to 10. In this mode a
parity bit can be added (use of a parity bit is enabled or disabled by the setting of
SC0CR<PE>); whether even parity or odd parity will be used is determined by the
SC0CR<EVEN> setting when SC0CR<PE> is set to 1 (enabled).
Setting example:
Start
Bit0
Transmission direction (Transmission rate: 9600 bps at f
When transmitting data of the following format, the control
registers should be set as described below.
1
2
3
4
*Clock condition: Clock gear 1/1(fc)
4
3
2
1
0
X
X
1
Set PF0 to function as the TXD0 pin.
X
X
1
0
1
0
1
Select 7-bit UART mode.
0
0
Add even parity.
0
1
0
0
0
Set the transfer rate to 2400 bps.
0
Enable the INTTX0 interrupt and set it to interrupt level 4.
*
*
*
*
*
Set data for transmission.
When receiving data of the following format, the control
registers should be set as described below.
1
2
3
4
92CH21-182
Even
5
6
Stop
parity
= 39.3216 MHz)
C
Odd
5
6
7
Stop
parity
= 39.3216 MHz)
C
TMP92CH21
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21