|
Re: PIC bsf instruction
I figured it out.
By default, pins that can be used as analog channels are set to analog. If you want to use them as digital, you have to set them using the ANSEL and ANSELH registers. This needs to be done in addition to setting them as outputs or inputs.
__________________
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE/S/P a-- e y-- r-- s:++ d+ h! X+++
t++ C+ P+ L++ E W++ w M-- V? PS+ PE+
5- R-- tv+ b+ DI+++ D- G
------END GEEK CODE BLOCK------
|