HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 515

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Data Transfer Operations:
1. SCIF Initialization
Before transmitting and receiving data, it is necessary to clear the TE and RE bits in SCSCR to
0, then initialize the SCIF as described below.
When the clock source, etc., is changed, the TE and RE bits must be cleared to 0 before
making the change using the following procedure. When the TE bit is cleared to 0, the transmit
shift register (SCTSR) is initialized. Note that clearing the TE and RE bits to 0 does not change
the contents of SCSSR, SCFTDR, or SCFRDR. The TE bit should be cleared to 0 after all
transmit data has been sent and the TEND bit in SCSSR has been set to 1. The TE bit should
not be cleared to 0 during transmission; if attempted, the TxD pin will go to the high-
impedance state. Before setting TE to 1 again to start transmission, the TFRST bit in SCFCR
should first be set to 1 to reset SCFTDR.
Figure 16.13 shows sample SCIF initialization flowcharts.
Figure 16.13 Sample SCIF Initialization Flowchart (1) (Transmission)
number, and clear TDFE flag to 0 after
data exceeding transmit trigger setting
Set transmit trigger number in TTRG1
and TTRG0 in SCFCR, write transmit
(leaving TE and RE bits cleared to 0)
Clear TE and RE bits in SCSCR to 0
Set CKE1 and CKE0 bits in SCSCR
Set TFRST bit in SCFCR to 1
Set C/A bit in SCSMR to 1
Set CKS1 and CKS0 bits
1-bit interval elapsed?
Clear TFRST bit to 0
Set value in SCBRR
reading 1 from it
Initialization
End
Yes
Wait
No
1
2
3
4
5
6
7
1. Be sure to set the TFRST bit in
2. Set the clock selection in SCSCR.
3. Set the clock source selection in
4. Write a value corresponding to the
5. Clear the TFRST bit in SCFCR to 0.
6. Set the transmit trigger number,
7. Wait one bit interval.
SCFCR to 1, to reset the FIFOs.
Be sure to clear bits RIE, TIE, TE,
and RE to 0.
SCSMR.
bit rate into SCBRR.
write transmit data exceeding the
transmit trigger setting number, and
clear the TDFE flag to 0 after reading
it.
Rev. 1.00, 02/04, page 477 of 804

Related parts for HD6417660