481
Initialization
Clear TE and RE bits in SCSCR to 0
(1)
Has a 1-bit
period elapsed?
Set TE and RE bits in SCSCR to 1
and set RIE, TIE, TEIE, and MPIE bits
Set transmit/receive format in SCSMR
Yes
No
Set value in SCBRR
Set RIE, TIE, TEIE, MPIE, CKE1,
and CKE0 bits in SCSCR
(TE and RE are 0)
End
Wait
(2)
(3)
(4)
Note: Numbers in parentheses refer to steps in the preceding procedure description.
Figure 14.18 Sample Flowchart for SCI Initialization
Transmitting Serial Data (Synchronous Mode): Figure 14.19 shows a sample flowchart for
transmitting serial data. The procedure for transmitting serial data is:
1. SCI status check and transmit data write: Read the serial status register (SCSSR), check that
the TDRE bit is 1, then write transmit data in the transmit data register (SCTDR) and clear
TDRE to 0.
2. To 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 SCTDR, then clear TDRE to 0.
Summary of Contents for SH7709S
Page 2: ...Hitachi SuperH RISC engine SH7709S Hardware Manual ADE 602 250 Rev 1 0 09 21 01 Hitachi Ltd ...
Page 75: ...56 ...
Page 107: ...88 ...
Page 125: ...106 ...
Page 139: ...120 ...
Page 203: ...184 ...
Page 245: ...226 ...
Page 411: ...392 ...
Page 609: ...590 ...
Page 635: ...616 ...
Page 663: ...644 ...
Page 679: ...660 ...