I am very new to the PIC world and to PBP. So if I ask what seems like a dumb question, please bare with me.
I want to control an old Knight Kit 2 meter radio.
It currently uses a thumbwheel to program the PLL in Binary.
The count starts at 000000000. And ends at 011111111.
I want to use an Encoder with 2 outputs. CW/CCW. Using a +5 volt reference.
So each pulse is a logical 1.
It will either increment the count by 1 or decrement the count by 1 depending on which way the encoder is turning.
CCW will equal Down pulses on RA2, CW = Up on RA3.
The PLL program pins require +5 volt logical 1 for selection.
I also want to display the count from 0 to 255 in decimal on a 3 digit 7 segment LED display.
PIC is an 18F6680.

I tried doing this as asm but didn't get anywhere.
It seemed like it should be straight forward, but I quickly discovered it wasn't.

I thought about using Button to monitor the two input lines but read in the manual that this would not be good for what I want to do.

I searched the forum looking for something similar but couldn't find anything related.
Any suggestions or thoughts on how I should approach this in PBP?
All comments welcome.
Thanks