Re: Lifelites LED's with PCF8574
Posted: 14 Dec 2012, 22:04
It looks like it from the schematics. I suggest you check using a multimeter in 'resistance' mode.achechin wrote: On PCB connector area, each item (ie 5 v) have two holes. Are they exactly the same and doubled for convinience?
Yes, except that I think it's the other way around (1 & 2 = high ; 2 & 3 = low). Again, you can check this with a multimeter (in 'volts' mode, this time)achechin wrote: When shortering jumpers should I solder together either 1 and 2 squares (for 0) or 2 and 3 squares (for 1)?
I think that the LSB (Least Significant Bit, i.e. the furthest right one) signifies whether the access is a read or a write. The page linked above (in h-g-t's post) suggests that the NBC functions set this bit automatically, so you can ignore it. So I think that your first suggestion is right: S 0 1 0 0 A2 A1 A0 0 A.achechin wrote: Also, I a bit confused with address. As I understood the address for PCF8574 is forming from the following combination:
S 0 1 0 0 A2 A1 A0 0 A. If A0-2 equal to zero the binary address is 01000000, which is equal to 0x40. If A0=1,A1=0,A2=1, the binary address is 01001010, which is equal to 0x4A. On I2C tutorial page I found that I should add 101 (0x05) to 0x40, hence 0x45. Please let me know which way is correct.
Cheers,
Ian.