I'm having trouble getting PortB.1 to work as a digital output on a PIC16F648.
I have pored over the documentation and tried all the registers - see below.
What am I missing? I just need to blink an LED with this output and I'm committed to a PCB that locks me into this pin.
TRISB = %00000000 ' set all as outputs
CCP1CON = 0 ' turn off capture/compare mode (set all digital I/O)
CMCON = 7 ' disable comparators
OPTION_REG = %10000000 ' bit 7 = 1 disables weak pull-ups on portB
INTCON = 0 ' disable interrupts
What did I miss?
Bookmarks