Toshiba TLCS-900/L1 Series Manual page 147

Original cmos 16-bit microcontroller
Hide thumbs Also See for TLCS-900/L1 Series:
Table of Contents

Advertisement

c.
Transmission and receiving (Full duplex mode)
When the full duplex mode is used, set the level of Receive Interrupt to 0 and
set enable the interrupt level (1 to 6) to the transfer interrupt. In the transfer
interrupt program, The receiving operation should be done like the above
example before setting the next transfer data.
Example: Channel 0, SCLK output
Baud rate = 9600 bps
fc = 14.7456 MHz
* Clock state
Main routine
7
6
5
4
INTES0
0
0
1
PCCR
PCFC
X
X
X
SC0MOD0 –
SC0MOD1 1
1
X
X
SC0CR
BR0CR
0
0
1
1
SC0MOD0 –
1
SC0BUF
*
*
*
*
INTTX0 interrupt routine
Acc SC0BUF
SC0BUF *
*
*
*
*
X: Don't care, − : No change
System clock:
Clock gear:
Prescaler clock: f
3
2
1
0
Set the INTTX0 level to 1.
0
0
0
Set the INTRX0 level to 0.
1
0
1
Set PC0, PC1 and PC2 to function as the TXD0,
RXD0 and SCLK0 pins respectively.
1
X
1
0
0
Select I/O interface mode.
X
X
X
X
Select full duplex mode.
0
SCLK output, transmit on negative edge, receive on
positive edge
Baud rate = 9600 bps
0
0
1
1
Enable receiving
*
*
*
*
Set the transmit data and start.
Read the receiving buffer.
*
*
*
Set the next transmit data.
91C824-145
TMP91C824
High frequency (fc)
1 (fc)
FPH
2008-02-20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp91c824fgJtmp91c824-s

Table of Contents