
III PERIPHERAL BLOCK: SERIAL INTERFACE
Asynchronous Interface
Outline of Asynchronous Interface
Asynchronous transfers are performed by adding a start bit and a stop bit to the start and end points of each serial- converted data. With this method, there is no need to use a clock that is fully synchronized on the transmit and receive sides; instead, transfer operations are timed by the start and stop bits added to the start and end points of each data.
In the
In either mode, it is possible to select the
The operating clock can be selected between an internal clock generated by an
Since the transmit and receive units are both constructed with a
Figure 8.8 shows an example of how input/output pins are connected for transfers in the asynchronous mode.
S1C33 |
|
|
|
| External |
| S1C33 |
|
|
|
| External | ||
|
|
|
|
|
| serial device |
|
|
|
|
|
|
| serial device |
SINx |
|
|
|
|
| Data input |
| SINx |
|
|
|
|
| Data input |
|
|
|
|
|
|
|
|
|
| |||||
SOUTx |
|
|
|
|
| Data output |
| SOUTx |
|
|
|
|
| Data output |
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#SCLKx |
|
| External clock |
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(1) When external clock is used |
| (2) When internal clock is used | ||||||||||||
|
|
| Figure 8.8 Example of Connection in Asynchronous Mode |
|
|
When the asynchronous mode is selected, it is possible to use the IrDA interface function.
The data format for asynchronous transfer is shown below. |
|
|
|
|
|
|
| |||||
Data length: 7 or 8 bits (determined by the selected transfer mode) |
|
|
|
|
|
| ||||||
Start bit: | 1 bit, fixed |
|
|
|
|
|
|
|
|
|
|
|
Stop bit: | 1 or 2 bits |
|
|
|
|
|
|
|
|
|
|
|
Parity bit: | Even or odd parity, or none |
|
|
|
|
|
|
|
|
|
| |
Sampling clock (for transmitting) |
|
|
|
|
|
|
|
|
|
|
| |
s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | s2 |
|
| ||
(Stop bit: 1 bit, parity: none) |
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
| ||
(Stop bit: 1 bit, parity: used) | s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | p | s2 |
| |
(Stop bit: 2 bits, parity: none) | s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | s2 | s3 |
| |
(Stop bit: 2 bits, parity: used) | s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | p | s2 | s3 | |
s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | s2 |
| ||
(Stop bit: 1 bit, parity: none) |
| |||||||||||
|
|
|
|
|
|
|
|
|
|
| ||
(Stop bit: 1 bit, parity: used) | s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | p | s2 | |
(Stop bit: 2 bits, parity: non) | s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | s2 | s3 | |
(Stop bit: 2 bits, parity: used) | s1 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | p | s2 s3 | |
|
|
|
|
|
| s1: start bit, s2 & s3: stop bit, p: parity bit | ||||||
| Figure 8.9 | Data Format for Asynchronous Transfer |
|
|
|
|
Serial data is transmitted and received, starting with the LSB.
EPSON | S1C33210 FUNCTION PART |