Download Print this page

Toshiba TLCS-900/H1 Series Manual page 183

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

Advertisement

3.
Transmission and receiving (Full duplex mode)
When full duplex mode is used, set the receive interrupt level to 0, and only set
the interrupt level (from 1 to 6) of the transmit interrupt. Ensure that the
program which transmits the interrupt reads the receiving buffer before setting
the next transmit data.
The following is an example of this:
Example:
Channel 0, SCLK output
Baud rate = 9600 bps
fc = 4.9152 MHz
Main routine
7
6
INTES0
X
0
PFCR
X
X
PFFC
X
SC0MOD0
SC0MOD1
1
SC0CR
BR0CR
0
0
SC0MOD0
SC0BUF
*
*
INTTX0 interrupt routine
← SC0BUF
A
CC
SC0BUF
*
*
X: Don't care, −: No change
*Clock condition: Clock gear 1/1(fc)
5
4
3
2
1
0
0
1
X
0
0
0
Set the INTTX0 level to 1.
Set the INTRX0 level to 0.
X
X
X
1
0
1
Set PF0, PF1 and PF2 to function as the TXD0,
RXD0 and SCLK0 pins respectively.
X
X
X
1
0
1
0
0
Select I/O interface mode.
X
X
X
X
X
X
Select full duplex mode.
0
0
SCLK output, transmit on negative edge, receive
on positive edge.
Baud rate = 9600 bps.
0
1
1
0
0
0
1
Enable receiving.
Set the transmit data and start.
*
*
*
*
*
*
Read the receiving buffer.
*
*
*
*
*
*
Set the next transmit data.
92CH21-181
TMP92CH21
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21