New Basic Stamp Question, probably for Mike Green.
MovieMaker
Posts: 502
Hey, Mike!
··· My question was:· I have all but one pin tied up on the Basic StampII.· I could use those ShiftIN and ShiftOUT chips.· But, my real question was could I use the same pins for both input and output?· Like, could I say send a signal to the IRtransmitters or Ping and wait a few moments and say, light an LED on the same line?· I don't know if I am making myself clear.·· Since the Stamp can't do two things at once, it looks like I could just adjust the timing and do something else in between.· I would like your input.
Respectfully yours,
:-)
·
··· My question was:· I have all but one pin tied up on the Basic StampII.· I could use those ShiftIN and ShiftOUT chips.· But, my real question was could I use the same pins for both input and output?· Like, could I say send a signal to the IRtransmitters or Ping and wait a few moments and say, light an LED on the same line?· I don't know if I am making myself clear.·· Since the Stamp can't do two things at once, it looks like I could just adjust the timing and do something else in between.· I would like your input.
Respectfully yours,
:-)
·
Comments
Several Nuts and Volts Columns discuss the use of I2C and the subroutines for use with a BS2 (or BS2e or BS2sx) are given in one of those articles.
Using any of the I/O expander solutions is slower and less convenient than using direct I/O. I wouldn't try to use an I/O expander for time critical functions like driving a PING or trying to generate IR pulses (like at 38KHz). It won't work.