Hard to tell w/o schematic, code sections, etc, but do you have external pullups when using PortA? (PortB has internal pullups, which you may have set active already). Also not sure if this will matter, but perhaps set the appropriate bits in ANSEL off. sirius79m wrote: > > Hey guys, > > I'm doing a project at the moment where I use 3 BCD thumbwheels to select > the time on and off and number of cycles to do this for. Using an LED to > test it. I have PORTB set up and working but PORTA is refusing to > function. I set TRISA to 0xEF; and PORTA to 0b00001111;. Ive turned off > the comparators using CMCON = 0x07;. Ive inverted the input from the > thumbwheels but still nothing. I switched things around and used PORTB to > test my code and it works perfectly. I have no idea what im doing wrong. > Any help would be greatly appreciated. > -- View this message in context: http://www.nabble.com/Using-PORTA-as-input-for-PIC16f627-but-not-working.-tp24841086p24910001.html Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist