PCF8574 problem
Rudy.W
Posts: 10
·· I am using a PCF 8574 with the propeller and Burroughs I2C Object.
· ·I am using only bits 1, 2 and 3· and the following simplified code:
·· Repeat
····· N :=$F9
····· waitcnt(50_000_000+cnt)
··· · I2CObject.writeLocation($46,$00,N,8,8)
····· Output : 11111001·· So far so good.
····· However, when i connect led's to the other outputs they flash with· the·speed of the loop.
····· so the leds on·:
···· ·Outputs : 11111010·· and··· 11111011·· both flash· but they don't get a command to do so.
····· Anybody an idea??····
···· Rudy_W
·····
Post Edited (Rudy.W) : 1/8/2008 3:03:26 PM GMT
· ·I am using only bits 1, 2 and 3· and the following simplified code:
·· Repeat
····· N :=$F9
····· waitcnt(50_000_000+cnt)
··· · I2CObject.writeLocation($46,$00,N,8,8)
····· Output : 11111001·· So far so good.
····· However, when i connect led's to the other outputs they flash with· the·speed of the loop.
····· so the leds on·:
···· ·Outputs : 11111010·· and··· 11111011·· both flash· but they don't get a command to do so.
····· Anybody an idea??····
···· Rudy_W
·····
Post Edited (Rudy.W) : 1/8/2008 3:03:26 PM GMT
Comments
To really do what you want, you'll need to modify the Burroughs routines so they don't send an address byte if it's not needed.
By the way, please include a subject when you start a thread. You can go back and add one to your initial message by clicking on the pencil icon in the right upper corner of your initial message.
Post Edited (Mike Green) : 1/8/2008 3:10:59 PM GMT
Rudy ( from the Netherlands)
http://www.rayslogic.com/propeller/Programming/i2c/i2c.htm