III PERIPHERAL BLOCK: SERIAL INTERFACE
The transfer status can be checked using the
Ch.0
Ch.1
Ch.2
Ch.3
This bit goes "1" when data is being transmitted and goes "0" when the transmission has completed. When data is transmitted successively in asynchronous mode, TENDx maintains "1" until all data is transmitted.
Figure 8.12 shows a transmit timing chart in the asynchronous mode. | |
Example: Data length | 8 bits |
Stop bit | 1 bit |
Parity bit | Included |
Sampling clock |
|
|
|
SOUTx |
| S1 D0 D1 D2 D3 D4 D5 D6 D7 P S2 S1 D0 | P S2 |
TDBEx | A | B |
|
TENDx |
|
|
|
|
| ||
interrupt request |
|
| interrupt request |
S1 | Start bit | A | First data is written. |
S2 | Stop bit | B | Next data is written. |
P | Parity bit |
|
|
Figure 8.12 Transmit Timing Chart in Asynchronous Mode
1.The contents of the data register are transferred to the shift register synchronously with the first falling edge of the sampling clock. At the same time, the SOUTx pin is setting to a low level to send the start bit.
2.Each bit of data in the shift register is transmitted beginning with the LSB at each falling edge of the subsequent sampling clock. This operation is repeated until all 8 (or 7) bits of data are transmitted.
3.After sending the MSB, the parity bit (if EPRx = "1") and the stop bit are transmitted insuccession.
•Successive transmit operation
When the data in the transmit data register is transferred to the shift register, TDBEx is reset to "1" (buffer empty). Once this occurs, the next transmit data can be written to the transmit data register, even during data transmission.
This allows data to be transmitted successively. The transmit procedure is described above.
When TDBEx is set to "1", a
For details on how to control interrupts and IDMA requests, refer to "Serial Interface Interrupts and DMA".
(3)Terminating transmit operations
When data transmission is completed, write "0" to the
SIF
S1C33L03 FUNCTION PART | EPSON |