![Cypress PSoC CY8C23533 Скачать руководство пользователя страница 274](http://html1.mh-extra.com/html/cypress/psoc-cy8c23533/psoc-cy8c23533_technical-reference-manual_2706366274.webp)
210
Document # 001-20559 Rev. *D
Digital Blocks
shows a detail of the Tx Buffer load timing. The
data bits are shifted out on each of the subsequent clocks.
Following the eighth bit, if parity is enabled, the parity bit is
sent to the output. Finally, the STOP bit is multiplexed into
the data stream. With one-half cycle set up to the next clock,
if new data is available from the TX Buffer register, the next
byte is loaded on the following clock edge and the process
is repeated. If no data is available, a mark (logic 1) is output.
Figure 17-25. Tx Buffer Load Timing
The SCLK (auxiliary) output has an SPI mode 3 clock asso-
ciated with the data bits (for the mode 3 timing see
). During the mark (idle) and framing bits the
SCLK output is high.
Status Generation.
There are two status bits in the trans-
mitter CR0 register: TX Reg Empty and TX Complete.
TX Reg Empty indicates that a new byte can be written to
the TX Buffer register. When the block is enabled, this status
bit is immediately asserted. This status bit is cleared when
the user writes a byte of data to the TX Buffer register and
set when the data byte in the TX Buffer register is trans-
ferred into the shifter. If a transmission is not already in prog-
ress, the assertion of this signal initiates one subject to the
timing.
The default interrupt in the transmitter is tied to TX Reg
Empty. However, an initial interrupt is not generated when
the block is enabled. The user must write an initial byte to
the TX Buffer register. That byte must be transferred into the
shifter, before interrupts generated from the TX Reg Empty
status bit are enabled. This prevents an interrupt from occur-
ring immediately on block enable.
TX Complete is an optional interrupt and is generated when
all bits of data and framing bits have been sent. It is cleared
on a read of the CR0 register. This signal may be used to
determine when it is safe to disable the block after data
transmission is complete. In an interrupt-driven transmitter
application, if interrupt on TX Complete is selected, the sta-
tus must be cleared on every interrupt; otherwise, the status
remains high and no subsequent interrupts are logged. See
Status Clear On Read.
Refer to the SPIM subsection in
.
Figure 17-26. Status Timing for the Transmitter
TXD
IOW
INTERNAL CLOCK
TXREGEMPTY
START
Write is valid on
rising edge of low.
A Tx Buffer write valid in this range
results in a START bit 1 cycle, after the
subsequent rising edge of the clock.
TX REG EMPTY
TX COMPLETE
Full STOP bit is sent.
CCLK
TXD (F1)
D0
D5
D6
D7
SCLK (F2)
The shifter is loaded from the TX
Buffer register on this clock edge.
A write to the TX Buffer
register clears this status.
START
STOP
Содержание PSoC CY8C23533
Страница 4: ...Contents Overview 4 Document 001 20559 Rev D Section G Glossary 385 Index 401 ...
Страница 16: ...Contents Overview 16 Document 001 20559 Rev D ...
Страница 24: ...24 Document 001 20559 Rev D Section A Overview ...
Страница 30: ...30 Document 001 20559 Rev D Pin Information ...
Страница 54: ...54 Document 001 20559 Rev D Supervisory ROM SROM ...
Страница 60: ...60 Document 001 20559 Rev D RAM Paging ...
Страница 68: ...68 Document 001 20559 Rev D Interrupt Controller ...
Страница 76: ...12 Document 001 20559 Rev D General Purpose IO GPIO ...
Страница 82: ...18 Document 001 20559 Rev D Internal Main Oscillator IMO ...
Страница 84: ...20 Document 001 20559 Rev D Internal Low Speed Oscillator ILO ...
Страница 90: ...26 Document 001 20559 Rev D External Crystal Oscillator ECO ...
Страница 94: ...30 Document 001 20559 Rev D Phase Locked Loop PLL ...
Страница 106: ...42 Document 001 20559 Rev D Sleep and Watchdog ...
Страница 228: ...164 Document 001 20559 Rev D Section D Digital System ...
Страница 234: ...170 Document 001 20559 Rev D Array Digital Interconnect ADI ...
Страница 278: ...214 Document 001 20559 Rev D Digital Blocks ...
Страница 296: ...232 Document 001 20559 Rev D Analog Interface ...
Страница 304: ...240 Document 001 20559 Rev D Analog Array ...
Страница 308: ...244 Document 001 20559 Rev D Analog Input Configuration ...
Страница 312: ...248 Document 001 20559 Rev D Analog Reference ...
Страница 338: ...274 Document 001 20559 Rev D Section F System Resources ...
Страница 354: ...290 Document 001 20559 Rev D Multiply Accumulate MAC ...
Страница 374: ...310 Document 001 20559 Rev D I2C ...
Страница 400: ...336 Document 001 20559 Rev D Section G Glossary ...