1 I/O expander such as MCP23016 + 3 resistors should do.
Tons of way to multiplex stuff on low pin count PIC, and then.. this bring this ol', but still good Microchip app note AN234.
http://ww1.microchip.com/downloads/e...tes/00234a.pdf
and
http://techtrain.microchip.com/maste...ses/40040b.pdf
<hr>
OK Darrel
ADC is one of my favorite choice...
Bookmarks