PSoC CY8CTMG20x and CY8CTST200 TRM, Document No. 001-53603 Rev. *C
153
SPI
Normal Operation.
Typical timing for an SPIM transfer is
shown in
. The user initially
writes a byte to transmit when TX Reg Empty status is true.
If no transmission is currently in progress, the data is loaded
into the shifter and the transmission is initiated. The TX Reg
Empty status is asserted again and the user is allowed to
write the next byte to be transmitted to the TX Buffer regis-
ter.
After the last bit is output, if TX Buffer data is available with
one-half clock setup time to the next clock, a new byte trans-
mission is initiated. An SPIM block receives a byte at the
same time that it sends one. The SPI Complete or RX Reg
Full can be used to determine when the input byte has been
received.
Figure 18-5. Typical SPIM Timing in Mode 0 and 1
INTERNAL CLOCK
TX REG EMPTY
D7
MOSI
D6
D5
D2
D1
D0
D7
User writes first
byte to the TX
Buffer register.
Shifter is loaded
with first byte.
User writes next
byte to the TX
Buffer register.
SCLK (MODE 0)
Shifter is loaded
with next byte.
Last bit of received
data is valid on this
edge and is latched
into RX Buffer.
CLK INPUT
Free running,
internal bit rate
clock is CLK input
divided by two.
Setup time
for TX
Buffer write.
SCLK (MODE 1)
RX REG FULL
First input bit
is latched.
First shift.
Summary of Contents for PSoC CY8CTMG20 Series
Page 4: ...4 Contents Overview Feedback...
Page 26: ...26 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Section B PSoC Core Feedback...
Page 82: ...82 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Sleep and Watchdog Feedback...
Page 134: ...134 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C I2C Slave Feedback...
Page 142: ...142 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C System Resets Feedback...
Page 160: ...160 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C SPI Feedback...
Page 182: ...182 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Full Speed USB Feedback...
Page 302: ...302 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Glossary Feedback...