Shop OBEX P1 Docs P2 Docs Learn Events
"spinonewire" and 24LC256 — Parallax Forums

"spinonewire" and 24LC256

mikedivmikediv Posts: 825
edited 2009-09-19 00:11 in Propeller 1
Hi guys I was trying to figure out I2C and I am using the "spinonewire" program , I have attached a 24LC256 to the prop this is where I get confused on the 24LC256 I tied pins 1-4 to ground pin 8 to +3.3 pin 7 to ground pin 5 SDA to +3.3 and through to P-10 of the prop
I am not clear where I should connect pin 6 SCL of the 24lc256 to?? if you look at this utility program "spinonewire" in the text it states to use prop pin 10 I am assuming that's for SDA right?? but like I said I do not understand what to do with pin 6 of the 24LC256 SCA
thanks guys this program is suppose to list the I2C devices if you connect them properly

Comments

  • JonnyMacJonnyMac Posts: 9,198
    edited 2009-09-18 01:08
    You have your protocols confused; 1-Wire is not I2C. 1-Wire uses... wait for it... one wire! I2C is a two-wire system. tongue.gif

    There are several working I2C drivers around; I've attached mine for your consideration. I've also attached an eeprom test program.

    [noparse][[/noparse]Edit] Added jm_txserial.spin

    Post Edited (JonnyMac) : 9/19/2009 12:13:15 AM GMT
  • mikedivmikediv Posts: 825
    edited 2009-09-18 23:18
    Jonny ,, Duh late night I was so into it and downloading all these different files I guess I lost my way lol, thanks for the files I will try them tonight.

    This is what you can expect when you turn 50 I am only 49,, yeah only but I am almost there, when I turned 40 I needed glasses that was a shock it was like the day after my birthday and Wham couldn't see.
    Now my mind is rapidly fading


    Hey Jonny if you see this post anytime soon can I have a copy of your jm_txserial thanks

    Post Edited (mikediv) : 9/18/2009 11:24:46 PM GMT
  • JonnyMacJonnyMac Posts: 9,198
    edited 2009-09-19 00:11
    Done! See above.
Sign In or Register to comment.