SAM3N0C Atmel Corporation, SAM3N0C Datasheet - Page 508

no-image

SAM3N0C

Manufacturer Part Number
SAM3N0C
Description
Manufacturer
Atmel Corporation
Datasheets
29.5.2.2
29.5.2.3
508
508
SAM3N
SAM3N
Start Detection and Data Sampling
Receiver Ready
The programmer can also put the receiver in its reset state by writing UART_CR with the bit
RSTRX at 1. In doing so, the receiver immediately stops its current operations and is disabled,
whatever its current state. If RSTRX is applied when data is being processed, this data is lost.
The UART only supports asynchronous operations, and this affects only its receiver. The UART
receiver detects the start of a received character by sampling the URXD signal until it detects a
valid start bit. A low level (space) on URXD is interpreted as a valid start bit if it is detected for
more than 7 cycles of the sampling clock, which is 16 times the baud rate. Hence, a space that is
longer than 7/16 of the bit period is detected as a valid start bit. A space which is 7/16 of a bit
period or shorter is ignored and the receiver continues to wait for a valid start bit.
When a valid start bit has been detected, the receiver samples the URXD at the theoretical mid-
point of each bit. It is assumed that each bit lasts 16 cycles of the sampling clock (1-bit period)
so the bit sampling point is eight cycles (0.5-bit period) after the start of the bit. The first sampling
point is therefore 24 cycles (1.5-bit periods) after the falling edge of the start bit was detected.
Each subsequent bit is sampled 16 cycles (1-bit period) after the previous one.
Figure 29-3. Start Bit Detection
Figure 29-4. Character Reception
When a complete character is received, it is transferred to the UART_RHR and the RXRDY sta-
tus bit in UART_SR (Status Register) is set. The bit RXRDY is automatically cleared when the
receive holding register UART_RHR is read.
Sampling Clock
Baud Rate
Example: 8-bit, parity enabled 1 stop
Sampling
URXD
Clock
URXD
0.5 bit
period
True Start Detection
period
1 bit
D0
D1
True Start
Detection
D2
D3
D4
D5
D6
D7
11011A–ATARM–04-Oct-10
11011A–ATARM–04-Oct-10
Parity Bit
D0
Stop Bit

Related parts for SAM3N0C