Toggle GPIO line on I2C address receive | Cypress Semiconductor
Toggle GPIO line on I2C address receive
I'm using the CY8C21534 with the I2CHW UM as slave. Capacitive sensors are scanned and when a sensor is active, I set a GPIO line low. The I2C master device detects this falling edge on the GPIO line and starts to read the I2C data from the CY8C21534. When the CY8C21534 receives the address byte, I need to immediatly set the GPIO line back high again. How can I do that? Where can I generate an interrupt when the address byte is received?