Shop OBEX P1 Docs P2 Docs Learn Events
Ad and CS lines? — Parallax Forums

Ad and CS lines?

ROBSCIXROBSCIX Posts: 23
edited 2007-12-22 20:21 in General Discussion
How would you add a chip to the SX micro that needs addressing and CD lines? -FOrgive me if it is a basic question I have worked with micros before (8052) that chips such as Lacthes and PIA controllers were addressable and had chip select lines....how would you add these type of chips to the SX based proto?

Comments

  • PJMontyPJMonty Posts: 983
    edited 2007-12-22 02:55
    ROBSCIX,

    Just run the I/O lines from the SX to the address and chip select lines of the chip you want to control. You then need to manually put the right values on the I/O lines to set the address and chip select. Depending on the chip, this is either going to use a bunch of I/O lines or a few. You'll also need to be aware that need to set the address lines first, and then manipulate the CS line, in order to give the chip time to let the address settle before enabling it. No trick solution for this, just some manual labor.

    Thanks,
    PeterM
  • JonnyMacJonnyMac Posts: 9,217
    edited 2007-12-22 06:39
    Attached you'll find an example using the DS1620 temperature sensor. The clock line can be shared with other devices, and in some cases the DQ line could be as well.
    640 x 379 - 28K
  • ROBSCIXROBSCIX Posts: 23
    edited 2007-12-22 20:21
    That is what I figured, just wansn't sure. I would have to use a couple digital outputs to manually CS and address whatever chip...Thx for the help guys.
Sign In or Register to comment.