Difference between revisions of "I2C"
From ArmadeusWiki
Line 1: | Line 1: | ||
This page will summarize the informations to use the I2C bus on our boards. | This page will summarize the informations to use the I2C bus on our boards. | ||
− | On the APF9328 the I2C bus has a 3,3V logic level so '''if you want to use 5V I2C devices you have to add a level converter''' ( | + | On the APF9328 the I2C bus has a 3,3V logic level so '''if you want to use 5V I2C devices you have to add a level converter''' |
+ | |||
+ | Here is a proposition: | ||
+ | PCA9306 from NXP (philips) | ||
+ | * Connect pin 1 to the local GND | ||
+ | * Connect pin 2 to the local 3.3V | ||
+ | * Connect pin 3 to the SCL output of the APF | ||
+ | * Connect pin 4 to the SDA input/ouput of the APF | ||
+ | * Connect pin 7 and 8 together and the add a 200K resistor in parallel to a 100nF capacitor to GND | ||
+ | * Connect a pullup of 1.7K to the 5V SCL line (pin 6) | ||
+ | * Connect a pullup of 1.7K to the 5V SDA line (pin 5) | ||
+ | |||
+ | For more details, take a look at the PCA9306 datasheet [http://www.nxp.com/acrobat_download/datasheets/PCA9306_2.pdf] | ||
+ | |||
+ | |||
+ | |||
+ | |||
==Links== | ==Links== | ||
* [http://mbouget.club.fr/i2c-faq.html Vincent Himpe I2C FAQ mirror] | * [http://mbouget.club.fr/i2c-faq.html Vincent Himpe I2C FAQ mirror] |
Revision as of 19:45, 13 July 2007
This page will summarize the informations to use the I2C bus on our boards.
On the APF9328 the I2C bus has a 3,3V logic level so if you want to use 5V I2C devices you have to add a level converter
Here is a proposition: PCA9306 from NXP (philips)
- Connect pin 1 to the local GND
- Connect pin 2 to the local 3.3V
- Connect pin 3 to the SCL output of the APF
- Connect pin 4 to the SDA input/ouput of the APF
- Connect pin 7 and 8 together and the add a 200K resistor in parallel to a 100nF capacitor to GND
- Connect a pullup of 1.7K to the 5V SCL line (pin 6)
- Connect a pullup of 1.7K to the 5V SDA line (pin 5)
For more details, take a look at the PCA9306 datasheet [1]