English
Language : 

H8S2472 Datasheet, PDF (578/1250 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcomputer H8S Family / H8S/2400 Series
Section 15 Serial Communication Interface with FIFO (SCIF)
15.4.3 Initialization of the SCIF
(1) Initialization of the SCIF
Use an example of the flowchart in figure 15.3 to initialize the SCIF before transmitting or
receiving data.
Start initialization
Clear module stop
Set SCIFCR
Set DLAB bit in FLCR to 1
Set FDLH and FDLL
Clear DLAB bit in FLCR to 0
Set data transfer format in FLCR
[1] Select an input clock with the CKSEL1 and
CKSEL0 bits in SCIFCR. Set the SCIF input/
output pins with the SCIFOE1 and SCIFOE0
bits in SCIFCR.
[2] Set the DLAB bit in FLCR to 1 to enable
[1]
access to FDLL and FDLH.
[2]
[3] The initial value of FDLL and FDLH is 0.
Set a value within the range from 1 to 65535.
[3]
[4] Clear the DLAB bit in FLCR to 0 to disable
access to FDLL and FDLH.
[4]
[5] Select parity with the EPS and PEN bits in
FLCR, and set the stop bit with the STOP bit
in FLCR. Then, set the data length with the
[5]
CLS1 and CLS0 bits in FLCR.
FIFOs used?
No
Yes
Set FIFOE bit in FFCR to 1
[6]
Set receive FIFO trigger level in FFCR [7]
Set XMITFRST and RCVRFRST bits
in FFCR to 1 to reset FIFOs
[8]
Set interrupt enable bits in FIER
End of Initialization
[6] When FIFOs are used, set the FIFOE bit in
FFCR to 1.
[9]
[7] Set the receive FIFO trigger level with the
RCVRTRIG1 and RCVRTRIG0 bits in FFCR.
[8] Set the XMITFRST and RCVRFRST bits in
FFCR to 1 to reset the FIFOs.
[9] Enable or disable an interrupt with the
EDSSI, ELSI, ETBEI, and ERBFI bits in
FIER and the OUT2 bit in FMCR.
Figure 15.3 Example of Initialization Flowchart
Rev. 2.00 Aug. 20, 2008 Page 530 of 1198
REJ09B0403-0200