Toshiba TMP91C824F Data Book page 147

16bit microcontroller tlcs-900/l1 series
Table of Contents

Advertisement

* Clock state
System clock: High frequency (fc)
Clock gear: 1 (fc)
Prescaler clock: System clock
Main settings
7 6 5 4 3 2 1 0
← − − − − − − 0 −
PCCR
SC0MOD ← − 0 1 X 1 0 0 1
← X 0 1 X X X 0 0
SC0CR
← 0 0 0 1 0 1 0 1
BR0CR
← − − − − 1 1 0 0
INTES0
Interrupt processing
← SC0CR AND 00011100
Acc
≠ 0 then ERROR
if Acc
← SC0BUF
Acc
(note): X = Don't care; "−" = No change
(4) Mode 3 (9-Bit UART Mode)
9-Bit UART Mode is selected by setting SC0MOD0<SM1, SM0> to 11. In this mode 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 and read, the MSB 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 occurs only when<RB8> = 1.
TXD
RXD
Master
(note): The TXD pin of each slave controller must be in Open-Drain Output Mode.
Figure 3.9.23 Serial Link using Wake-up function
Set PC1 to function as the RXD0 pin.
Enable receiving in 8-Bit UART Mode.
Add even parity.
Set the transfer rate to 9600 bps.
Enable the INTTX0 interrupt and set it to Interrupt Level 4.
Check for errors.
Read the received data.
TXD
RXD
Slave 1
91C824-144
TXD
RXD
Slave 2
TMP91C824
TXD
RXD
Slave 3

Advertisement

Table of Contents
loading

Table of Contents