|
HD6433308 Datasheet, PDF (212/349 Pages) Hitachi Semiconductor – Hitachi Single-Chip MicroComputer | |||
|
◁ |
Transmission direction
Serial clock
Data
Bit 0
Bit 1
Donât-care
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
Donât-care
Serial
clock
Data
8-Bit data
8-Bit data
Figure 9-4. Data Format in Synchronous Mode
(2) Clock: Either the internal serial clock created by the on-chip baud rate generator or an external
clock input at the CSCK pin can be selected in the synchronous mode. See Table 9-6 for details.
(3) Data Transmission and Reception
⢠SCI Initialization: Before data can be transmitted or received, the SCI must be initialized by
software. To initialize the SCI, software must clear the TE and RE bits to â0â to disable both the
transmit and receive functions, then execute the following procedure.
 Write the value corresponding to the desired bit rate in the BRR. (This step is not necessary if
an external clock is used.)
 Select the clock and enable desired interrupts in the SCR. Leave bit 0 (CKE0) cleared to "0."
 Select the synchronous mode in the SMR.
 Set the TE and/or RE bit in the SCR to â1.â
The TE and RE bits must both be cleared to â0â whenever the operating mode or data format is
changed. After changing the operating mode or data format, before setting the TE and RE bits to
â1â software must wait for at least 1 bit transfer time at the selected communication speed, to make
sure the SCI is initialized.
199
|
▷ |