English
Language : 

HD6417705F133V Datasheet, PDF (466/741 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
Figure 16.13 shows sample SCIF initialization flowcharts.
Initialization
Clear TE and RE bits in SCSCR to 0
Set TFRST bit in SCFCR to 1
[1]
Set CKE1 and CKE0 bits in SCSCR
(leaving TE and RE bits cleared to 0)
[2]
Set C/A bit in SCSMR to 1
Set CKS1 and CKS0 bits
[3]
Set value in SCBRR
[4]
Clear TFRST bit to 0
[5]
Set transmit trigger number in TTRG1
and TTRG0 in SCFCR, write transmit
data exceeding transmit trigger setting [6]
number, and clear TDFE flag to 0 after
reading 1 from it
Wait
1-bit interval elapsed?
Yes
End
[7]
No
[1] Be sure to set the TFRST bit in
SCFCR to 1, to reset the FIFOs.
[2] Set the clock selection in SCSCR.
Be sure to clear bits RIE, TIE, TE,
and RE to 0.
[3] Set the clock source selection in
SCSMR.
[4] Write a value corresponding to the
bit rate into SCBRR.
[5] Clear the TFRST bit in SCFCR to 0.
[6] Set the transmit trigger number,
write transmit data exceeding the
transmit trigger setting number, and
clear the TDFE flag to 0 after reading
it.
[7] Wait one bit interval.
Figure 16.13 Sample SCIF Initialization Flowchart (1) (Transmission)
Rev. 2.00, 09/03, page 418 of 690