aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-08-07 18:48:33 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-08-07 18:48:33 -0500
commitac1a42ccfcdf9320184b25c6a6c8ba0daa7f93f7 (patch)
treeef1ae7fe3158d565bf553de9ffdd098ba94df6bf
parent8edef0db2eea068da5ab00715039074fe16324b9 (diff)
Add lines for both 887 and 877A.
-rw-r--r--adc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/adc.c b/adc.c
index 801fed0..a5bc0fd 100644
--- a/adc.c
+++ b/adc.c
@@ -14,7 +14,12 @@ void Adc_Init(void) {
//ADCON1
ADFM = 1; // results right justified
- PCFG0 = PCFG1 = PCFG2 = PCFG3 = 0; // AN0-AN7 Analog input, Vref+/- Vdd/Vss
+
+ //16F887
+ //VCFG0 = VCFG1 = 0; // AN0-AN7 Analog input, Vref+/- Vdd/Vss
+
+ //16F877A
+ PCFG0 = PCFG1 = PCFG2 = 0;
}
unsigned int Adc_Read(unsigned int channel) {