Shop OBEX P1 Docs P2 Docs Learn Events
Serial to parallel shift register ( 595) – PBASIC code anyone? — Parallax Forums

Serial to parallel shift register ( 595) – PBASIC code anyone?

vaclav_salvaclav_sal Posts: 451
edited 2011-05-11 08:09 in BASIC Stamp
595 serial to parallel shift register has been recommended here as a I/O expansion hardware for Basic Stamp.
I am looking only for output expansion.

I do not see anything out of the ordinary to write appropriate subroutine for 595 to do that.

However, if someone already done that and is willing to share the code I would appreciate it.

Please note - I you cannot constructively contribute to the subject (relevant code for PBASIC), please do not.

Thank you.

Vaclav
.

Comments

  • xanatosxanatos Posts: 1,120
    edited 2011-05-11 06:39
    Download the Stampworks Manual and turn to page 190, Experiment #23: Expanded Digital Outputs with Shift Registers. The manual is a free PDF, available from several locations on the Parallax site (I downloaded mine from the "available downloads" section on the details page for the parallax professional development board for the BS2.)

    The 595s are incredibly simple to use, the only specific command you are concerned with will be the shiftout command.

    Dave
  • vaclav_salvaclav_sal Posts: 451
    edited 2011-05-11 08:09
    Thanks Dave
Sign In or Register to comment.