Rainbow Electronics AT91CAP9S250A User Manual

Page 538

Advertising
background image

538

6264A–CAP–21-May-07

AT91CAP9S500A/AT91CAP9S250A

Figure 35-11. Bit Resynchronization

35.6.3.3

Asynchronous Receiver

If the USART is programmed in asynchronous operating mode (SYNC = 0), the receiver over-
samples the RXD input line. The oversampling is either 16 or 8 times the Baud Rate clock,
depending on the OVER bit in the Mode Register (US_MR).

The receiver samples the RXD line. If the line is sampled during one half of a bit time at 0, a start
bit is detected and data, parity and stop bits are successively sampled on the bit rate clock.

If the oversampling is 16, (OVER at 0), a start is detected at the eighth sample at 0. Then, data
bits, parity bit and stop bit are sampled on each 16 sampling clock cycle. If the oversampling is 8
(OVER at 1), a start bit is detected at the fourth sample at 0. Then, data bits, parity bit and stop
bit are sampled on each 8 sampling clock cycle.

The number of data bits, first bit sent and parity mode are selected by the same fields and bits
as the transmitter, i.e. respectively CHRL, MODE9, MSBF and PAR. For the synchronization
mechanism only, the number of stop bits has no effect on the receiver as it considers only one
stop bit, regardless of the field NBSTOP, so that resynchronization between the receiver and the
transmitter can occur. Moreover, as soon as the stop bit is sampled, the receiver starts looking
for a new start bit so that resynchronization can also be accomplished when the transmitter is
operating with one stop bit.

Figure 35-12

and

Figure 35-13

illustrate start detection and character reception when USART

operates in asynchronous mode.

RXD

Oversampling

16x Clock

Sampling

point

Expected edge

Tolerance

Synchro.

Jump

Sync

Jump

Synchro.

Error

Synchro.

Error

Advertising