Guy's I'm a bit rusty, can someone confirm that the following settings turns off all analogue settings and makes port A digital
Should ADCON1 be set to $00 ? or does the all digital.php override these settings ?Code:;----[Analog Settings]---------------------------------------------------------- INCLUDE "alldigital.pbp" ' make all pins digital ;----[Port settings]------------------------------------------------------------ TRISA = %11000111 TRISB = %00000000 TRISD = %00000001 CMCON = 7 ' disable Comparators ADCON1 = $0F ' %0000 1111 AN2=VSS, AN3=VDD, AN12-0 = Digital ADCON2 = $00 ' %0000 0000
I want to use PORTA.0, PORTA.1 and PORTA.2 as digital inputs from switches -




Bookmarks