Shop OBEX P1 Docs P2 Docs Learn Events
bs2p40+bs2p40 — Parallax Forums

bs2p40+bs2p40

PHM102PHM102 Posts: 27
edited 2006-09-12 12:54 in BASIC Stamp
can· bs2p40 interface wif each other? how to do so?

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2006-09-12 12:54
    Yes. Connect a ground wire from each Vss to the other Vss. Then connect a wire from one P0 to the other P0. Designate one BS2 as 'master', the other 'slave'.

    The 'slave' spends most of its time in a 'SERIN 0, 16468, [noparse][[/noparse]DEC MyData]' statement, waiting for data from the 'master' BS2. When the 'master' is ready to communicate, it does a 'SEROUT 0, 16468, [noparse][[/noparse]DEC 1]'. The 'slave' is waiting for this, and then does a SEROUT of its data to the 'master', which should do a SERIN to recieve it.
Sign In or Register to comment.