132
PSoC CY8CTMG20x and CY8CTST200 TRM, Document No. 001-53603 Rev. *C
I2C Slave
15.4.4
Slave Stall Timing
When a byte complete interrupt occurs, the PSoC device firmware must respond with a write to the
to con-
tinue the transfer (or terminate the transfer). The interrupt occurs two clocks after the rising edge of SCL_IN (see
). As illustrated in
, firmware has until one clock after the falling edge of SCL_IN to write to the
; otherwise, a stall occurs. After stalled, the I/O write releases the stall. The setup time between data output
and the next rising edge of SCL is always N-1 clocks.
Figure 15-11. Slave Stall Timing
15.4.5
Implementation
The I2C block responds to transactions during sleep if and
only if:
a. The I2C slave block is enabled, i.e., bit 0 of the
is set to 1'b1.
b. If I2C_ON is set or the USB Enable bit of USB_CR0
is set.
c. PD signal from the sleep controller is high.
To enable the wakeup through I2C, set the HW Addr EN bit
so that the I2C slave block wakes the system if and only if
the address matches.
depicts the wakeup
sequence through I2C.
Note
The last step in this flowchart where SCL is released in
general, represents the configuration where buffer mode is
enabled.
Figure 15-12. I2C Wakeup Sequence
SCL
CLOCK
SCL_IN
(Synchronized)
SDA_OUT
I/O WRITE
1 Clocks
N-1 Clocks
STALL
No STALL
SCL_OUT
I2C Sleep
Enabled?
Start
Detect
Device Address
Matched?
Wakeup system by interrupt
and pull the SCL low
ACK the address byte and
release the SCL line once
IMO is operational
Send NACK
No
Yes
Yes
No
Yes
No
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...