Toshiba H1 Series Data Book page 338

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

Advertisement

c.
Transmission and Receiving (Full Duplex Mode)
When Full Duplex Mode is used, set the Receive Interrupt Level to 0 and set enable
the level of transmit interrupt(1 to 6). 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:
Main routine
INTES0
P9CR
P9FC
SC0MOD0
SC0MOD1
SC0CR
BR0CR
SC0MOD0
SC0BUF
INTTX0 interrupt routine
← SC0BUF
A
CC
SC0BUF
X: Don't care, −: No change
Channel 0, SCLK output
Baud rate = 9600 bps
fsys = 2.4576 MHz
7
6
5
4
3
2
1
0
X
0
0
1
X
0
0
0
X
X
X
X
X
1
0
1
X
X
X
1
X
1
0
0
1
X
X
X
X
X
X
0
0
0
0
0
1
1
0
0
0
1
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
92CZ26A-335
Set the INTTX0 level to 1.
Set the INTRX0 level to 0.
Set P90, P91 and P92 to function as the TXD0,
RXD0 and SCLK0 pins respectively.
Select I/O interface mode.
Select full duplex mode.
SCLK0 output mode, select rising edge
Baud rate = 9600 bps.
Enable receiving.
Set the transmit data and start.
Read the receiving buffer.
Set the next transmit data.
TMP92CZ26A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents