Shop OBEX P1 Docs P2 Docs Learn Events
Bs2 to program, programmable periphial interface — Parallax Forums

Bs2 to program, programmable periphial interface

Lab RatLab Rat Posts: 289
edited 2008-11-13 11:34 in BASIC Stamp
i would like to know ow to program an OKI msm82c55a-2 with my bs2 any ideas
this chip is an OKI programmable periphial interface

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Parallax posesses power beyond belief.

Believe in it.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-11-13 02:13
    The bs2 sends serial data so you hook them together and send (or receive) the data the OKI wants.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Lab RatLab Rat Posts: 289
    edited 2008-11-13 03:10
    that sounds cool serial via the tx rx or serial via serin serout ??

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax posesses power beyond belief.

    Believe in it.
  • Mike GreenMike Green Posts: 23,101
    edited 2008-11-13 03:38
    The 8255 (and variations like the OKI part) is a parallel interface part (not serial). You need at least 10 I/O pins to make it work, 8 for the data and 2 for control lines (/RD and /WR). I think you can wire A0, A1, and the chip select to Vss.

    I don't recommend using it because of the number of pins it needs. You would do just as well with a 74HC595 for outputs and a 74HC165 for inputs. These are slower because they use a serial interface, but the SHIFTOUT and SHIFTIN statements are pretty fast and I think you'd get nearly as much throughput as if you used an 8255.
  • Lab RatLab Rat Posts: 289
    edited 2008-11-13 11:34
    i am not worried to much about pin count i just want to learn how to use it i am not interested in shift registers at the moment

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Parallax posesses power beyond belief.

    Believe in it.
Sign In or Register to comment.