Can someone give me an idea what the code should look like for reading this type of rotary dip switch. I've looked everywhere and can't find any examples in PBP. The tech. sheets with the switch isn't much help either. I'm using a 16f690 chip and the switch is connected to the 4 port B pins.
Thanks,
Dan