Yep, I am truly an idiot. I was so concerned that, because I hadn't used the '870 before, I had missed some special feature. Instead the problem was in the circuit wiring with a pull-down attached to the pin.
Yep, I am truly an idiot. I was so concerned that, because I hadn't used the '870 before, I had missed some special feature. Instead the problem was in the circuit wiring with a pull-down attached to the pin.
Some port pins on PIC's are an open-drain output, and need a pull-up resistor to "make" a high signal. RA4 on smaller PIC's in particular.
This one has tripped me up before also.
I havent used the '870, but you can check the "I/O pin diagrams" in the data sheet to determine which pins are "push/pull" (don't need a pull-up) and which are open-drain (need a pull-up).
Bookmarks