View Full Version : Linking a BS2 and a BS2px
10-27-2009, 03:12 AM
··· Does anyone know the best way to link 2 stamps? I am useing a BOE board and a super carrier board for the BS2px.Programming nightmare??
10-27-2009, 03:33 AM
Nope, it's really easy.
Use SERIN/SEROUT and three wires -- one TX from BS2 to BS2px, one RX from BS2px to BS2, and a ground wire to connect the two boards.
Then program one as a 'slave' to listen most of the time until the 'master' tells it to respond.
Program the 'master' to query the 'slave' when it wants to transfer data.
10-27-2009, 04:19 AM
Here you can find how to connect them.
Here is a small snippet that should help. This program uses SERIN (on·a BS2) and SEROUT (on a BS2px), both on PIN 10 and communicating at 9600 baud;·this is not a two way communication demo but could be converted to do so pretty easy.·Hopefully with this and·the other help above you can get your project up and running.
Let us know of the results,