![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) | |
| Hey, I have 4 input pins, pin0-pin3. The physical circuit is setup the same way for each pin but I can't use them interchangeably. Pins 2 and 3 work fine; 0 and 1 don't. I believe it's because the comparator could be set? Or something like that? I've looked through the datasheet but everything looks disabled. The only initilization I have is as follows: Quote:
| ||
| |
| | (permalink) |
| Yes, they're the comparator pins. Add the following lines of code to the top of your program BANKSEL CMCON MOVLW .7 MOVWF CMCON | |
| |