Shop OBEX P1 Docs P2 Docs Learn Events
MoBoStamp-pe Motherboard and Hitachi HM55B Compass Module — Parallax Forums

MoBoStamp-pe Motherboard and Hitachi HM55B Compass Module

Tony KocicaTony Kocica Posts: 2
edited 2009-10-31 19:50 in BASIC Stamp
Anyone have any insight on how to convert the sample code provided in the compass documentation to work with the the MoBoStamp-pe Motherboard? I understand the principle of the AVR comprocessors and the daughterboard interface.·I'm having trouble understanding how to replace the SHIFTIN and SHIFTOUT commands in the sample code·to the equivalent OWOUT and OWIN commands for use with the GPIO firmware.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-10-31 18:50
    Tony,

    The GPIO3 firmware does not support shift operations. But that's okay: you don't have to use the coprocessor for this. Just connect the HM55B to pins that are either exclusive to the Stamp or shared between the Stamp and AVR. Then you can use SHIFTIN and SHIFTOUT in the normal way.

    -Phil
  • Tony KocicaTony Kocica Posts: 2
    edited 2009-10-31 19:50
    Phil, Thanks for the excellent reply. I appreciate it. -Tony
Sign In or Register to comment.