English
Language : 

HD6417727BP160CV Datasheet, PDF (589/1098 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/ SH7700 Series
Section 17 Serial Communication Interface (SCI)
Initialize
Clear TE and RE bits in SCSCR to 0
Set RIE, TIE, TEIE, MPIE, CKE1,
and CKE0 bits in SCSCR
(1)
(TE and RE are 0)
Set transmit/receive format in SCSMR (2)
Set value in SCBRR
(3)
Wait
Has a 1-bit
No
period elapsed?
Yes
Set TE and RE bits in SCSCR to 1
and set RIE, TIE, TEIE, and MPIE bits (4)
(1) Select the clock source in the
serial control register (SCSCR).
Leave RIE, TIE, TEIE, MPIE, TE
and RE cleared to 0.
(2) Select the communication format
in the serial mode register
(SCSMR).
(3) Write the value corresponding to
the bit rate in the bit rate register
(SCBRR) unless an external
clock is used.
(4) Wait for at least the interval
required to transmit or receive
one bit, then set TE or RE in the
serial control register (SCSCR)
to 1. Also set RIE, TIE, TEIE and
MPIE. Setting TE and RE allows
use of the TxD0 and RxD0 pins.
End
Figure 17.18 Sample SCI Initialization Flowchart
Rev.6.00 Mar. 27, 2009 Page 531 of 1036
REJ09B0254-0600