is it possible to convert 16 switches to a 16bit number.
Posted: 17 Jul 2012 19:50
is it possible to convert 16 switches to a 16bit number.
the washing machine doesn't have a readout on it.or a finished cycle beeper.
i figured out the beeper part by reading the led high enable on end cycle & Door, also put timer on them to shut up beeper after 30 seconds.
now i want to read where the dial is so can calculate time left according to manual & display how many minutes left till end on 3 x 7-segment.
so it will only read one switch to gnd.
giving on 16 possible numbers to check, so if i could read the 16 switch's & Convert to binary, i could convert this to the 16 bit number, & would know the time from a data[15] statement.
i will figure out how to do this in the 4k limit later.
Many thanks
Paul
the washing machine doesn't have a readout on it.or a finished cycle beeper.
i figured out the beeper part by reading the led high enable on end cycle & Door, also put timer on them to shut up beeper after 30 seconds.
now i want to read where the dial is so can calculate time left according to manual & display how many minutes left till end on 3 x 7-segment.
so it will only read one switch to gnd.
giving on 16 possible numbers to check, so if i could read the 16 switch's & Convert to binary, i could convert this to the 16 bit number, & would know the time from a data[15] statement.
i will figure out how to do this in the 4k limit later.
Many thanks
Paul