Sharing 4X20 LCD between stamps
Guido
Posts: 195
I am trying to share one LCD between Stamps. I know I am having a problem doing this. If I use the following statement in all the stamps:
LCD············ PIN·· 4··························· ' SERIAL LCD OUTPUT TO DISPLAY
SERIN SIOPIN\FCPIN,T9600,[noparse][[/noparse]DEC LCDCNTRL]····· ' A numberic number to tell stamp What Stamp can have control of LCD out
It just does not want to work. I think part of the problem is the state of Pin 4 is grounded when no data is being sent. Is there a way to set this pin in limbo?
Thanks
LCD············ PIN·· 4··························· ' SERIAL LCD OUTPUT TO DISPLAY
SERIN SIOPIN\FCPIN,T9600,[noparse][[/noparse]DEC LCDCNTRL]····· ' A numberic number to tell stamp What Stamp can have control of LCD out
It just does not want to work. I think part of the problem is the state of Pin 4 is grounded when no data is being sent. Is there a way to set this pin in limbo?
Thanks
Comments
When you connect several Stamp pins together, you run the risk of burning out the I/O pins if two of them are set to outputs and to opposite states (LOW and HIGH). To prevent this, you MUST use a protective resistor (like 220 ohms) in series with the I/O pin between the Stamp and the common point. This limits any short circuit current so that it won't destroy the Stamp's I/O pin.
[noparse][[/noparse] Suggest using 1N4001, 1N4000-series,·diodes.· A·small-signal would probably suffice, but let's not go there. ]
And you'll have to deal with any "message collision" somehow. On second thought, maybe the diodes are a better idea.