diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-08-07 18:48:33 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-08-07 18:48:33 -0500 |
commit | ac1a42ccfcdf9320184b25c6a6c8ba0daa7f93f7 (patch) | |
tree | ef1ae7fe3158d565bf553de9ffdd098ba94df6bf | |
parent | 8edef0db2eea068da5ab00715039074fe16324b9 (diff) |
Add lines for both 887 and 877A.
-rw-r--r-- | adc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |