tmp1941af TOSHIBA Semiconductor CORPORATION, tmp1941af Datasheet - Page 232

no-image

tmp1941af

Manufacturer Part Number
tmp1941af
Description
32-bit Tx System Risc
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP1941AF
Manufacturer:
TOSHIBA
Quantity:
48
Part Number:
TMP1941AF
Quantity:
4
Part Number:
tmp1941af(Z)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Example: Connecting a master station with two slave stations through a serial link using the fsys/2
Main routine
Main routine
Interrupt routine (INTRX0)
Master controller settings
P9CR
P9FC
IMCCLL
IMCCLH
SC0MOD0 ← 1
SC0BUF
Interrupt routine (INTTX0)
INTCLR
SC0MOD0 ← 0
SC0BUF
End of interrupt processing
Slave controller settings
P9CR
P9FC
ODE
IMCCLL
IMCCLH
SC0MOD0 ← 0
INTCLR
Reg.
if Reg. = Select code
Then
SC0MOD0
clock as a serial clock
TXD
Master
← −
← −
← −
← −
← 0
← X
← *
← −
← −
← X
← −
← −
← X
← −
RXD
7
SC0BUF
7
6
0
0
X
*
6
X
0
X
5
1
1
1
0
1
*
5
1
1
1
1
TMP1941AF-192
4
1
1
1
1
0
4
1
1
0
0
1
*
3
0
0
1
0
0
*
3
0
0
1
0
2
1
1
1
0
0
*
2
1
1
1
0
TXD
0x0000_0001
Select Code
1
0
X
0
0
1
0
0
*
1
0
X
1
0
1
0
Slave 1
0
1
1
1
0
1
0
0
0
1
1
1
0
0
1
1
*
RXD
Configures the P90 pin as TXD0 and the P91
pin as RXD0
Enables INTRX0 and sets its interrupt level to 5.
Enables INTTX0 and sets its interrupt level to 4.
Selects 9-bit UART mode and selects fsys/2 as
a serial clock.
Loads the select code for slave 1.
Clears the interrupt request.
Clears the TB0 bit to 0.
Loads the transmit data.
Configures the P90 pin as TXD (open-drain
output) and the P91 pin as RXD.
Enables INTTX0 and INTRX0.
Selects 9-bit UART mode, selects fsys/2 as the
serial clock and and sets the WU bit to 1.
Clears the interrupt request.
Clears the WU bit to 0.
TXD
0x0000_1010
Select Code
Slave 2
RXD
TMP1941AF
2003-03-27

Related parts for tmp1941af