Toshiba H1 Series Data Book page 342

32bit micro controller tlcs-900/h1 series
Table of Contents

Advertisement

Setting example: To link two slave controllers serially with the master controller using the
internal clock f
as the transfer clock.
IO
TXD
RXD
Master
• Setting the master controller
Main routine
← X X X X X − 0 1
P9CR
← − − X X X − X 1
P9FC
← X 1 0 0 X 1 0 1
INTES0
SC0MOD0 ← 1 0 1 0 1 1 1 0
← 0 0 0 0 0 0 0 1
SC0BUF
Interrupt routine (INTTX0)
SC0MOD0 ← 0 − − − − − − −
← * * * * * * * *
SC0BUF
• Setting the slave controller
Main routine
← X X X X X − 0 1
P9CR
← − − X X X − X 1
P9FC
← X X X X X X X 1
P9FC2
← X 1 0 0 X 1 0 0
INTES0
SC0MOD0 ← 0 0 1 1 1 1 1 0
Interrupt routine (INTRX0)
Acc ← SC0BUF
if Acc =Select code
Then SC0MOD0 ← − − − 0 − − − − Clear <WU> to 0.
TXD
RXD
Slave1
Select code
Select code 00001010
00000001
Set P90 and P91 to function as the TXD0 and RXD0 pins
respectively.
Enable the INTTX0 interrupt and set it to Interrupt Level 4.
Enable the INTRX0 interrupt and set it to Interrupt Level 5.
Set f
as the transmission clock for 9-Bit UART Mode.
IO
Set the select code for slave controller 1.
Set TB8 to 0.
Set data for transmission.
Select P91 and P90 to function as the RXD0 and TXD0 pins
respectively (open-drain output).
Enable INTRX0 and INTTX0.
Set <WU> to 1 in 9-Bit UART Transmission Mode using f
the transfer clock.
92CZ26A-339
TMP92CZ26A
TXD
RXD
Slave 2
as
SYS

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents