Multiple Serial I/O needs
Mpbman
Posts: 2
Sorry if this is too BASIC...
I designed a widget a few years back using a BS2 which decoded switch presses and generated ASCII out which I converted to RS232 to drive my devices... At the time I used a BS2P40 and had 16 switch contacts in and 7 RS232 out... I want to use the Propeller for a new version with greater I/O capabilities...
I bought a starter kit two years ago, but have only looked through the manual recently, but did not see anything with respect to serial I/O available on P0-P29... Is it possible? My goal is to have 16 switch closures, three pins accepting serial data commands in and 11 pins sending serial data formatted according to the 19 inputs... I have some baud rate flexibility and buffering is not a huge issue...
Any suggestions?
I designed a widget a few years back using a BS2 which decoded switch presses and generated ASCII out which I converted to RS232 to drive my devices... At the time I used a BS2P40 and had 16 switch contacts in and 7 RS232 out... I want to use the Propeller for a new version with greater I/O capabilities...
I bought a starter kit two years ago, but have only looked through the manual recently, but did not see anything with respect to serial I/O available on P0-P29... Is it possible? My goal is to have 16 switch closures, three pins accepting serial data commands in and 11 pins sending serial data formatted according to the 19 inputs... I have some baud rate flexibility and buffering is not a huge issue...
Any suggestions?
Comments
See the 4-port serial driver at obex.parallax.com/objects/340/.
Use 4 sets of these drivers on separate chip pins, for sixteen (4 X 4). Do you understand?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
Post Edited (James Michael Huselton) : 11/15/2009 3:30:20 PM GMT
I suggest you plan to handle the switch closures using a scanned matrix rather than one per I/O pin. That will allow for further expansion since 16 switches will require only 8 I/O pins (4 x 4). Using a diode per switch will allow you to detect and properly handle multiple switch closures.
I appreciate your input and I can now delve into designing the hardware around it before I start working on the code...
Thank you again!