I2C issue

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

I2C issue

Post by FFMan »

I have 2 devices connected on an I2c chain. One is a 8 x 30 character lcd display, and the other is an sd card module.

I can get either to work independantly, but if i try to send data to one, then the other device several times a second, i either see the sd card module not accepting commands and/or garbled data on the lcd screen.

My suspicion is poorly implemented I2c on the one or both of the devices, they are both from the same source and I have had issues with clockstretching not working properly in the past. Is there anything i can do, apart from considering using 2 i2c channels on different pins ?

thanks
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: I2C issue

Post by dkinzer »

FFMan wrote:I have 2 devices connected on an I2c chain.
What are the model numbers of the devices. Do you have links to the datasheets for them? Also, are you using the hardware I2C channel or a software-based channel?
- Don Kinzer
FFMan
Posts: 502
Joined: 09 January 2010, 12:52 PM

Post by FFMan »

this is one device http://www.byvac.com/bv3/index.php?rout ... duct_id=65

and this the other http://www.byvac.com/bv3/index.php?rout ... duct_id=80

i'm using software i2c because i am using com2 on a zx24n so no choice.

hope this helps
Post Reply