|
Re: Using driver station digital inputs
We are thinking of having four options, (actually 3 options and off) and I am considering using a rotary switch with 1k ohm pull down resistors where one position will be tied to nothing and the other positions sequentially tied to digital inputs 1, 2, & 3 with +5v connected to the common of the switch....
Then the programmer will only have to read the digital switches & AND them to 07h to determine which digital input we are selecting...
incidently these 4 options can be handled with only 2 digital inputs and 3 SPST switches (with pulldowns) and the commons tied to +5v or 3 SPDT switch commons (without pulldowns and one of the wipers tied to +5V & the other to Gnd) then the programmer only needs to read the Digital inputs & AND the read value with 03h to determine which of the 4 options are desired...
The reason for the pulldowns is that I read that the driver station does not have pull ups or pull downs on the digital input lines which can make for some unpredictable results if they are not tied to one rail or the other...
Clear as mud, right?
|