Hi, How to read a 8 way dip sw with uC using minimum number of i/o pins and without using any ic.
tia
Not that this has anything to do with Keil, but:
"without using any ic"
I presume you mean, "without using any ic other than the microcontroller"?
Use an R-2R ladder to feed the microcontroller's analogue input pin?
en.wikipedia.org/.../Resistor_ladder