Please Delete This Post
beazleybub
Posts: 102
I discovered this post to become an unintentional train wreck and request it to be deleted.
I appreciate the help everyone gave me but it was in a wild goose chase because the code I was trying to use was completely invalid for my particular application and would have never worked.
I would like to thank everyone and I apologies for this mess.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Post Edited (beazleybub) : 7/27/2008 10:11:20 PM GMT
I appreciate the help everyone gave me but it was in a wild goose chase because the code I was trying to use was completely invalid for my particular application and would have never worked.
I would like to thank everyone and I apologies for this mess.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What if there was nothing? Nothing is something!
Post Edited (beazleybub) : 7/27/2008 10:11:20 PM GMT
Comments
No need for $50... just follow this link below...
http://www.parallax.com/Portals/0/Downloads/docs/prod/oem/24LC128-v2.0.pdf
The 24LC128 is 32 times bigger than the FM24C04A, but the communication should be the same. The only difference is thst you will only be able to access 0-511 data bytes rather than 0-16383, but everything else should be the same.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 7/13/2008 8:11:06 PM GMT
executes.
Post Edit -- screenshot added
Post Edited (PJ Allen) : 7/13/2008 9:53:56 PM GMT
On your H-W-B it's OK.
What's it on when it's not OK?
but what's the failure as you see it?
How about it?· [noparse][[/noparse]Needs to go somewhere?]
This will gosub 12c-stop then return to the top of i2c-stop and execute it again then have no place to return. Is that what you want?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
What values do you get here?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Addrs: ' I2C Address Byte Sequence
i2cWork = fram_add
SHIFTOUT SDA, SCL, MSBFIRST, [noparse][[/noparse]i2cWork.HIGHBYTE\8] ' Send Byte To Device
SHIFTIN SDA, SCL, MSBPRE, [noparse][[/noparse]i2cAck\1] ' Get Acknowledge Bit
SHIFTOUT SDA, SCL, MSBFIRST, [noparse][[/noparse]i2cWork.LOWBYTE\8] ' Send Byte To Device
SHIFTIN SDA, SCL, MSBPRE, [noparse][[/noparse]i2cAck\1] ' Get Acknowledge Bit
RETURN
You're telling 12cwork that it is equal to fram_add.· Where is fram_add determined?··[noparse][[/noparse]·no-where ]
Post Edit -- If you're using only one address, then what happens if you make that line: i2cwork = 0?
Post Edited (PJ Allen) : 7/14/2008 12:42:30 AM GMT
Write_Data: ' I2C Write Byte Sequence
i2cWork = temp
DEBUG "I2CWork check·= ", DEC i2cwork.lowbyte, ", temp= ", DEC temp
SHIFTOUT SDA, SCL, MSBFIRST, [noparse][[/noparse]i2cWork\8] 'Send Byte To Device
SHIFTIN SDA, SCL, MSBPRE, [noparse][[/noparse]i2cAck\1] ' Get Acknowledge Bit
RETURN
Write_Data: ' I2C Write Byte Sequence
DEBUG "Writing...", CR
i2cWork = temp
DEBUG "I2CWork check·= ", DEC i2cwork.lowbyte, ", temp= ", DEC temp
SHIFTOUT SDA, SCL, MSBFIRST, [noparse][[/noparse]i2cWork\8] 'Send Byte To Device
SHIFTIN SDA, SCL, MSBPRE, [noparse][[/noparse]i2cAck\1] ' Get Acknowledge Bit
RETURN
Post Edit -- Typo?· What typo?· Looks the same from here.
Post Edited (PJ Allen) : 7/14/2008 1:39:20 AM GMT
Post Edit -- I think it's not case sensitive.