??? 07/25/09 09:30 Read: times |
#167867 - I2C configuration for 240 I/Os Responding to: ???'s previous message |
The classic IO expander with I2C bus is the PCF8574. It provides 8 IO pins and an interrupt.
The two versions PCF8574 and PCF8574A have different address on the I2C bus (7bit) PCF8574 20h-27h (7bit) PCF8574A 38h-3Fh By this in mind on a I2C bus you can setup 8chips PCF8574 = 64 IO and 8chips PCF8574A = 64 IO TOTAL=128 IO If you setup a second I2C bus you can have another 128 IO TOTAL=256 IO that fulfills the 240 IO requirement. http://www.nxp.com/acrobat_download/datasheets/PCA8574_PCA8574A_2.pdf ![]() The two I2C busses may set up on any 8051 derivative by software or to choose a derivative with two physical I2C busses. Another option is to use a 16bit IO expander like PCF8575. More like the PCA9505/9506 provide 40 bit parallel I/O for I2C bus organized in 5 banks of 8 I/Os http://www.nxp.com/acrobat_download/datasheets/PCA9505_9506_3.pdf Other considerations as FPGA or CPLD have already discussed on previous posts. K.L.Angelis |