Rikard Bosnjakovic wrote: > Scenario: I need 5 inputs and 11 outputs. PORTB is set to all outputs, > so I have only PORTA left. 5 inputs and 3 outputs does fit, but I seem > to lack the proper magic to configure the upper bits of PORTA. just a hint: you know that you can do this only using Internal Oscillator -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist