r5s77631ay266bgv Renesas Electronics Corporation., r5s77631ay266bgv Datasheet - Page 1172

no-image

r5s77631ay266bgv

Manufacturer Part Number
r5s77631ay266bgv
Description
Renesas 32-bit Risc Microcomputer Superhtm Risc Engine Family Sh-4a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 27 Serial Communication Interface with FIFO (SCIF)
Rev. 1.00 Oct. 01, 2007 Page 1106 of 1956
REJ09B0256-0100
in SCSCR (leaving TE, RE, TIE,
Set RTRG1-0 and TTRG1-0 bits
Set TE and RE bits in SCSCR
Set external pins to be used
in SCFCR, and clear TFCL
and RIE bits cleared to 0)
Set CKE1 and CKE0 bits
(SCIF_SCK, SCIF_TXD,
Set TFCL and RFCL bits
Set data transfer format
and ER flags in SCFSR,
After reading BRK, DR,
in SCFCR to 1 to clear
to 1, and set TIE, RIE,
1-bit interval elapsed?
write 0 to clear them
Clear TE and RE bits
Set value in SCBRR
and RFCL bits to 0
Start of initialization
End of initialization
the FIFO buffer
and SCIF_RXD)
in SCSCR to 0
and REIE bits
Figure 27.16 Sample SCIF Initialization Flowchart
in SCSMR
Yes
Wait
No
[1]
[2]
[3]
[4]
[5]
[6]
[1]
[2]
[3]
[4]
[5]
[6]
Leave the TE and RE bits cleared
to 0 until the initialization almost
ends. Be sure to clear the TIE,
RIE, TE, and RE bits to 0.
Set the CKE1 and CKE0 bits.
Set the data transfer format in
SCSMR.
Write a value corresponding to
the bit rate into SCBRR. This
is not necessary if an external
clock is used. Wait at least one
bit interval after this write before
moving to the next step.
Set the external pins to be used.
Set SCIF_RXD input for reception and
SCIF_TXD output for transmission.
The input/output of the SCIF_SCK pin
must match the setting of the
CKE1 and CKE0 bits.
Set the TE or RE bit in SCSCR
to 1. Also set the TIE, RIE, and
REIE bits to enable the SCIF_TXD,
SCIF_RXD, and SCIF_SCK pins to
be used. When transmitting, the
SCIF_TXD pin will go to the mark
state. When receiving in clocked
synchronous mode with the
synchronization clock output (clock
master) selected, a clock starts to
be output from the SCIF_SCK pin
at this point.

Related parts for r5s77631ay266bgv