Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

PSoC1 I2C: Usage description with sleep

PSoC1 I2C: Usage description with sleep

Anonymous
Not applicable
Answer:

          

For all PSoC1 devices (CY8C20xxx, CY8C21xxx, CY8C22xxx, CY8C24xxx, CY8C27xxx, CY8C29xxx) it is highly recommended to restart the I2C block following the below procedure after coming out from sleep. This is to avoid ongoing I2C traffic in the bus to disrupt PSoC I2C block state machines. 

Procedure to restart I2C block, 

Step1: Disable I2C block (by clearing the ‘Enable’ bit in the I2C_CFG register)

Step1: Put I2C SDA & I2C SCL pins to ‘HI-Z Analog’ drive mode

Step2: Enable I2C block (set the ‘Enable’ bit in the I2C_CFG register)

Step3: Give delay equal to 4 I2C sample clock periods

Step4: Restore I2C SDA & I2C SCL pin drive modes back to OD-LOW

0 Likes
121 Views
Contributors