Renesas H8/3067 Series User Manual page 546

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for H8/3067 Series:
Table of Contents

Advertisement

Section 13 Serial Communication Interface
In transmitting serial data, the SCI operates as follows:
• The SCI monitors the TDRE flag in SSR. When the TDRE flag is cleared to 0, the SCI
recognizes that TDR contains new data, and loads this data from TDR into TSR.
• After loading the data from TDR to TSR, the SCI sets the TDRE flag to 1 and starts
transmitting. If the TIE bit is set to 1 in SCR, the SCI requests a transmit-data-empty interrupt
(TXI) at this time.
Serial transmit data is transmitted in the following order from the TxD pin:
 Start bit: One 0 bit is output.
 Transmit data: 7 or 8 bits are output, LSB first.
 Multiprocessor bit: One multiprocessor bit (MPBT value) is output.
 Stop bit(s): One or two 1 bits (stop bits) are output.
 Mark state: Output of 1 bits continues until the start bit of the next transmit data.
• The SCI checks the TDRE flag when it outputs the stop bit. If the TDRE flag is 0, the SCI
loads new data from TDR into TSR, outputs the stop bit, then begins serial transmission of the
next frame. If the TDRE flag is 1, the SCI sets the TEND flag to 1 in SSR, outputs the stop bit,
then continues output of 1 bits in the mark state. If the TEIE bit is set to 1 in SCR, a transmit-
end interrupt (TEI) is requested at this time
Figure 13.11 shows an example of SCI transmit operation using a multiprocessor format.
Start
bit
1
D0
0
TDRE
TEND
TXI interrupt handler
TXI interrupt
writes data in TDR and
request
clears TDRE flag to 0
(8-Bit Data with Multiprocessor Bit and One Stop Bit)
• Receiving Multiprocessor Serial Data: Figure 13.12 shows a sample flowchart for receiving
multiprocessor serial data and indicates the procedure to follow.
Rev. 4.00 Jan 26, 2006 page 522 of 938
REJ09B0276-0400
Multi-
processor
Data
bit
D1
D7
0/1
TXI interrupt
request
1 frame
Figure 13.11 Example of SCI Transmit Operation
Stop
Start
bit
bit
1
0
D0
D1
Multi-
Stop
processor
Data
bit
bit
D7
0/1
1
Idle (mark)
state
TEI interrupt
request

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3067H8/3066H8/3065H8/3067rf

Table of Contents