English
Language : 

SH7059 Datasheet, PDF (472/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
15. Serial Communication Interface (SCI)
Initialization
1
Start of transmission
Read TDRE bit in SSR
2
No
TDRE = 1?
Yes
Write transmit data in TDR
and set MPBT in SSR
Clear TDRE bit to 0
No
All data transmitted?
Yes
Read TEND bit in SSR
TEND = 1?
No
Yes
No
Output break signal?
Yes
Clear port DR to 0
1. SCI initialization: Set the TxD pin using the
PFC. After the TE bit is set to 1, a frame of
1s is output, and transmission is enabled.
2. SCI status check and transmit data write:
Read the serial status register (SSR), check
that the TDRE bit is 1, then write transmit
data in the transmit data register (TDR).
Also set MPBT (multiprocessor bit transfer)
to 0 or 1 in SSR. Finally, clear TDRE to 0.
3. Continue transmitting serial data: Read the
TDRE bit to check whether it is safe to write
(if it reads 1); if so, write data in TDR, then
clear TDRE to 0. When the DMAC is started
by a transmit-data-empty interrupt request
3
(TXI) to write data in TDR, the TDRE bit is
checked and cleared automatically.
4. Output a break at the end of serial
transmission: Set the data register (DR) of
the port to 0, then clear TE to 0 in SCR and
set the TxD pin function as output port with
the PFC.
Note: Do not write to SMR, SCR, BRR, or
SDCR between the start and the end of
a transmit operation. However, this does
not apply to operation 5.
4
Clear TE bit in SCR to 0;
select theTxD pin function as 5
an output port with the PFC
End of transmission
Figure 15.11 Sample Flowchart for Transmitting Multiprocessor Serial Data
Rev.3.00 Mar. 12, 2008 Page 382 of 948
REJ09B0177-0300