Shop OBEX P1 Docs P2 Docs Learn Events
I2C 7-Segment Driver Help — Parallax Forums

I2C 7-Segment Driver Help

xesxesxesxes Posts: 9
edited 2010-07-15 05:01 in BASIC Stamp
I have never used I2C before, and I need to get some 7-segment displays working for a project due tomorrow. The Driver I got is an NXP SAA1064 (Datasheet: http://www.nxp.com/documents/data_sheet/SAA1064_CNV.pdf )

I am getting hung up in the slave ID and sub addressing, I think.

I2COUT 0, $70, $1,[noparse][[/noparse]6]



really not sure what I am doing, I have the ADR pin tied to ground and a 1k pull up on the SDA and SCL lines.

ack help. [noparse]:([/noparse]

Comments

  • FranklinFranklin Posts: 4,747
    edited 2010-07-13 22:24
    Could you include your entire code and a wiring diagram? Are you sure you have the correct i2cout command?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • hover1hover1 Posts: 1,929
    edited 2010-07-13 22:36
    A little late to get started on a project due tomorrow?

    A quick search on Google "SAA1064 BS2" brought up this:

    http://store.gravitech.us/i2c47di.html

    with sample BS2 code.

    Jim


    xesxes said...
    I have never used I2C before, and I need to get some 7-segment displays working for a project due tomorrow. The Driver I got is an NXP SAA1064 (Datasheet: http://www.nxp.com/documents/data_sheet/SAA1064_CNV.pdf )

    I am getting hung up in the slave ID and sub addressing, I think.

    I2COUT 0, $70, $1,[noparse][[/noparse]6]
    



    really not sure what I am doing, I have the ADR pin tied to ground and a 1k pull up on the SDA and SCL lines.

    ack help. [noparse]:([/noparse]
  • xesxesxesxes Posts: 9
    edited 2010-07-15 05:01
    Thank you for the quick responses. I managed to get it to work, that bs2 source code helped. I was a little disappointed that it wasn't a driver in the sense that I could send it a 6 and it would display six. Where I still have to send %01011111
    you can look for it on the new fast and furious movie wink.gif
Sign In or Register to comment.