PSoC1 I2C: Usage description with sleep
Anonymous
Not applicable
Feb 16, 2010
11:16 PM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Feb 16, 2010
11:16 PM
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
Labels
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous