Hi. could really do with some help.
i've built a breadboard circuit around a pic16f876a with some features, but now i would like to take a 5 bit value from 5 switches connected to portb, then use a lookup table to compaire a stored value (36 of them) to the input,
but i cant figure out how to make the signal valid, if anybody could start me off of where to go with this i'd be very grateful.
I thought maybe i could use a 6th bit as the valid signal, where the state of portb wouldnt be read until the 6th bit is pulled high, but if it can be done with only 5 it would be so much better.
thanks for looking
i've built a breadboard circuit around a pic16f876a with some features, but now i would like to take a 5 bit value from 5 switches connected to portb, then use a lookup table to compaire a stored value (36 of them) to the input,
but i cant figure out how to make the signal valid, if anybody could start me off of where to go with this i'd be very grateful.
I thought maybe i could use a 6th bit as the valid signal, where the state of portb wouldnt be read until the 6th bit is pulled high, but if it can be done with only 5 it would be so much better.
thanks for looking