212
Document # 001-20559 Rev. *D
Digital Blocks
As shown in
, the internal bit clock (CCLK) runs slower than the external TX bit clock and the STOP bit is sam-
pled later than the actual center point. After the STOP bit is sampled, the 24 MHz reset pulse forces the receiver back to an
idle state. In this state, the next START bit search is initiated, resynchronizing the RX bit clock to the TX bit clock.
Figure 17-28. Clock Generation and Start Detection
This resynchronization process (forcing the state back to
idle) occurs regardless of the value of the STOP bit sample.
It is important to reset as soon as possible, so that maximum
performance can be achieved.
example where the RX block clock bit rate is slower than the
external TX bit rate. The sample point shifts to successively
later times. In the extreme case shown, the RX samples the
STOP bit at the trailing edge. In this case, the receiver
counts 9.5 bit times, while the transmitter counts 10 bit
times. Therefore, for a 10-bit message, the maximum theo-
retical clock offset, for the message to be received correctly,
is represented by one-half bit time or five percent. If the RX
and TX clocks exceed this offset, a logic 0 may be sampled
for the STOP bit. In this case, the Framing Error status is
set.
Figure 17-29. Example RX Re-Synchronization
This theoretical maximum is degraded by the resynchroniza-
tion time, which is fixed at approximately 42 ns. In a typical
115.2 Kbaud example, the bit time is 8.70
s. In this case
the new maximum offset is:
((4.35 ms - 42 ns) / 4.35 ms) x 5% or 4.95%
At slower baud rates, this value gets closer to the theoretical
maximum of five percent.
Status Generation.
There are five status bits in a receiver
block: RX Reg Full, RX Active, Framing Error, Overrun, and
Parity Error. All status bits, except RX Active and Overrun,
are set synchronously on the STOP bit sample point.
RX Reg Full indicates a byte has been received and trans-
ferred into the RX Buffer register. This status bit is cleared
when the user reads the RX Buffer register (DR2). The set-
ting of this bit is synchronized to the STOP sample point.
This is the earliest point at which the Framing Error status
can be set; and therefore, error status is defined to be valid
when RX Reg Full is set.
RX Active can be polled to determine if a reception is in
progress. This bit is set on START detection and cleared on
STOP detection. This bit is not
and there is no way
for the user to clear it.
CLKIN
RXD
(ASYNCH)
START
STATE
Input is sampled at the
center of the bit time.
Start detection enables
the clock divider.
CCLK
RESET
(CLK GEN)
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
COUNT
IDLE
BIT0
1
BIT0
START BIT
0
1
2
3
7
0
1
Actual
center of
STOP bit.
STOP bit
sample
point.
Width of reset is
one 24 MHz
clock pulse.
Next
START bit.
RXACTIVE
START is confirmed with
another sample at the
3rd sample clock.
STOP
IDLE
STOP
Reset to IDLE
and initiate
search for a new
START bit.
Start
1
1
0
1
0
0
1
0
1
RXD
Stop Start
RX clock is slower than TX clock.
Stop bit is just
recognized.
Need to re-sync
as soon as
possible.
Any delay in
re-sync cuts
into optimal
sync of the next
byte.
Sample points are
successively later
in the bit times.
Summary of Contents for PSoC CY8C23533
Page 4: ...Contents Overview 4 Document 001 20559 Rev D Section G Glossary 385 Index 401 ...
Page 16: ...Contents Overview 16 Document 001 20559 Rev D ...
Page 24: ...24 Document 001 20559 Rev D Section A Overview ...
Page 30: ...30 Document 001 20559 Rev D Pin Information ...
Page 54: ...54 Document 001 20559 Rev D Supervisory ROM SROM ...
Page 60: ...60 Document 001 20559 Rev D RAM Paging ...
Page 68: ...68 Document 001 20559 Rev D Interrupt Controller ...
Page 76: ...12 Document 001 20559 Rev D General Purpose IO GPIO ...
Page 82: ...18 Document 001 20559 Rev D Internal Main Oscillator IMO ...
Page 84: ...20 Document 001 20559 Rev D Internal Low Speed Oscillator ILO ...
Page 90: ...26 Document 001 20559 Rev D External Crystal Oscillator ECO ...
Page 94: ...30 Document 001 20559 Rev D Phase Locked Loop PLL ...
Page 106: ...42 Document 001 20559 Rev D Sleep and Watchdog ...
Page 228: ...164 Document 001 20559 Rev D Section D Digital System ...
Page 234: ...170 Document 001 20559 Rev D Array Digital Interconnect ADI ...
Page 278: ...214 Document 001 20559 Rev D Digital Blocks ...
Page 296: ...232 Document 001 20559 Rev D Analog Interface ...
Page 304: ...240 Document 001 20559 Rev D Analog Array ...
Page 308: ...244 Document 001 20559 Rev D Analog Input Configuration ...
Page 312: ...248 Document 001 20559 Rev D Analog Reference ...
Page 338: ...274 Document 001 20559 Rev D Section F System Resources ...
Page 354: ...290 Document 001 20559 Rev D Multiply Accumulate MAC ...
Page 374: ...310 Document 001 20559 Rev D I2C ...
Page 400: ...336 Document 001 20559 Rev D Section G Glossary ...