Go Down

Topic: Trying to understand the CAT9532 i2c IC. (Read 972 times) previous topic - next topic

Pavilion1984

Oct 05, 2012, 10:09 am Last Edit: Oct 05, 2012, 10:11 am by Pavilion1984 Reason: 1
Hello all.

Am trying to understand how to use the CAT9532 IC so hope someone can help. Am i correct in thinking that you have to send 2 bits of data per i/o pin and can i send a big hex number to control all 16 i/o's in one transmission for example 0x55555555 (to turn all outputs on) or do you have to split it down to 4bytes?

http://www.onsemi.com/pub_link/Collateral/CAT9532-D.PDF

Thanks.

pylon

Quote
you have to send 2 bits of data per i/o pin


Yes.

Quote
can i send a big hex number to control all 16 i/o's in one transmission


No.

Quote
do you have to split it down to 4bytes?


Yes, you have to send 4 bytes because you have to send everything split up into bytes over the I2C.

On page 11 of the datasheet you'll find an example of a complete command operation. The right column shows the data going over the I2C channel. Keep in mind that although the address data going over the I2C channel is 0xC0 (in the example), you have the specify the 7bit address (0x60) to the Wire library.

Pavilion1984

Ok thats great. Hmmm, i don't need all the blink stuff so might be better going for a basic i2c expander chip for eaiser coding.

Thanks.

Go Up