Section 17 Serial Communication Interface with FIFO (SCIF)
Rev. 1.00 Apr. 28, 2008 Page 519 of 994
REJ09B0452-0100
17.4.4
Data Transmission/Reception with Flow Control
The following shows examples of data transmission/reception for flow control using CTS and
RTS.
(1) Initialization
Figure 17.6 shows an example of the initialization flowchart.
Start initialization
(Transmission/reception standby flow)
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
Set FIFO with FFCR
Set interrupt enable bits in FIER
Set RTS bit in FMCR to 1
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[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 access to
FDLL
and
FDLH.
[3] The initial value of FDLL and FDLH is 0. Set a value
within the range from 1 to 65535.
[4] Clear the DLAB bit in FLCR to 0 to disable access to
FDLL
and
FDLH.
[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 CLS1 and CLS0 bits in FLCR.
Set the FIFOE bit in FFCR to 1 to enable the FIFO.
[6] Set the receive FIFO trigger level with the RCVRTRIG1
and RCVRTRIG0 bits in FFCR. Select the best trigger
level to prevent an overflow of the receive FIFO.
[7] Set the EDSSI and ERBFI bits in FIER to 1 to enable a
modem status interrupt and receive data ready interrupt.
[8] Set the RTS bit in FMCR to 1.
Figure 17.6 Example of Initialization Flowchart
Содержание H8S/2100 Series
Страница 2: ...Rev 1 00 Apr 28 2008 Page ii of xxvi...
Страница 54: ...Section 1 Overview Rev 1 00 Apr 28 2008 Page 28 of 994 REJ09B0452 0100...
Страница 92: ...Section 2 CPU Rev 1 00 Apr 28 2008 Page 66 of 994 REJ09B0452 0100...
Страница 158: ...Section 5 Interrupt Controller Rev 1 00 Apr 28 2008 Page 132 of 994 REJ09B0452 0100...
Страница 244: ...Section 8 8 Bit PWM Timer PWMU Rev 1 00 Apr 28 2008 Page 218 of 994 REJ09B0452 0100...
Страница 330: ...Section 10 16 Bit Timer Pulse Unit TPU Rev 1 00 Apr 28 2008 Page 304 of 994 REJ09B0452 0100...
Страница 354: ...Section 11 16 Bit Cycle Measurement Timer TCM Rev 1 00 Apr 28 2008 Page 328 of 994 REJ09B0452 0100...
Страница 380: ...Section 12 16 Bit Duty Period Measurement Timer TDP Rev 1 00 Apr 28 2008 Page 354 of 994 REJ09B0452 0100...
Страница 416: ...Section 13 8 Bit Timer TMR Rev 1 00 Apr 28 2008 Page 390 of 994 REJ09B0452 0100...
Страница 494: ...Section 15 Serial Communication Interface SCI Rev 1 00 Apr 28 2008 Page 468 of 994 REJ09B0452 0100...
Страница 612: ...Section 18 I 2 C Bus Interface IIC Rev 1 00 Apr 28 2008 Page 586 of 994 REJ09B0452 0100...
Страница 706: ...Section 20 LPC Interface LPC Rev 1 00 Apr 28 2008 Page 680 of 994 REJ09B0452 0100...
Страница 752: ...Section 21 FSI Interface Rev 1 00 Apr 28 2008 Page 726 of 994 REJ09B0452 0100...
Страница 774: ...Section 23 RAM Rev 1 00 Apr 28 2008 Page 748 of 994 REJ09B0452 0100...
Страница 1008: ...Section 28 Electrical Characteristics Rev 1 00 Apr 28 2008 Page 982 of 994 REJ09B0452 0100...
Страница 1020: ...Rev 1 00 Apr 28 2008 Page 994 of 994 REJ09B0452 0100...
Страница 1023: ......
Страница 1024: ...H8S 2117R Group Hardware Manual...