Setting PortB.7 as output on 16F627/8/48
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?
Dyslexics for Dog untie... ;)
Geez,
Forgive my confused last post. I was swapping things again. It's tough looking at the world through an upside down brain.
SO I got in there with my test probes and I had also mis-read my PCB traces. It's actually PortB.1. Really! I checked 3 times this time.
So is there some kind of register thing that I need to configure that as an output? It is the RX pin for hardware serial... is that a clue?
Sorry for the confusion.