Epson S1C88650 Technical Manual page 74

Hewlett-packard cmos 8-bit single chip microcomputer technical manual
Table of Contents

Advertisement

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Serial Interface)
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 when "LSB
first" is selected, or LSB when "MSB first" is
selected) is output, the SOUTx 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.
66
_________
_________
Data transmitting
TXEN
Set transmitting data
to TRXD0–TRXD7
No
Transmit complete ?
Fig. 5.8.6.2 Transmit procedure in clock synchronous mode
EPSON
0, RXEN
0
TXEN
1
No
Receiver ready ?
In case of master mode
Yes
TXTRG
1
No
FSTRA = 1 ?
Yes
Yes
TXEN
0
End
S1C88650 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents