You can probably use 1 ADC line for each rotary switch (or mix all of them, then feed it to a single ADC input). Basically you convert BCD to voltage with R2R resistor ladder, then you feed this output to your PIC.
Hardware technique
http://ww1.microchip.com/downloads/e...tes/00234a.pdf
8-pin PIC - Tips 'n Tricks
http://ww1.microchip.com/downloads/e...doc/40040b.pdf
Last edited by mister_e; - 28th March 2009 at 18:10.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks