Epson 0C88832 Technical Manual page 59

Cmos 8-bit single chip microcomputer
Table of Contents

Advertisement

Data transmit procedure
The control procedure and operation during
transmitting is as follows.
(1) Write "0" in the transmit enable register TXEN
and the receive enable register RXEN to reset
the serial interface.
(2) Write "1" in the transmit enable register TXEN
to set into the transmitting enable status.
(3) Write the transmitting data into TRXD0–
TRXD7.
(4) In case of the master mode, confirm the receive
ready status on the slave side (external serial
input/output device), if necessary. Wait until it
reaches the receive ready status.
(5) Write "1" in the transmit control bit TXTRG and
start transmitting.
In the master mode, this control causes the
synchronous clock to change to enable and to be
provided to the shift register for transmitting
and output from the SCLK terminal.
In the slave mode, it waits for the synchronous
clock to be input from the SCLK terminal.
The transmitting data of the shift register shifts
one bit at a time at each falling edge of the
synchronous clock and is output from the SOUT
terminal. When the final bit (MSB) is output, the
SOUT terminal is maintained at that level, until
the next transmitting begins.
The transmitting complete interrupt factor flag
FSTRA is set to "1" at the point where the data
transmitting of the shift register is completed.
When interrupt has been enabled, a transmit-
ting complete interrupt is generated at this
point.
Set the following transmitting data using this
interrupt.
(6) Repeat steps (3) to (5) for the number of bytes of
transmitting data, and then set the transmit
disable status by writing "0" to the transmit
enable register TXEN, when the transmitting is
completed.
E0C88832/88862 TECHNICAL MANUAL
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Serial Interface)
No
Fig. 5.7.6.2 Transmit procedure in clock synchronous mode
EPSON
Data transmitting
TXEN ← 0, RXEN ← 0
TXEN ← 1
Set transmitting data
to TRXD0–TRXD7
No
Receiver ready ?
In case of master mode
Yes
TXTRG ← 1
No
FSTRA = 1 ?
Yes
Transmit complete ?
Yes
TXEN ← 0
End
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

88862

Table of Contents