Author | Sebastien Lelong, Copyright © 2009, all rights reserved. |
Adapted-by | |
Compiler | 2.4n |
this library acts as a wrapper. When included, it'll define ways to configure the number ADC channels. There are 3 different cases: 1. the number of channels is specified setting/clearing PCFG bits => a combination of PCFG bits selects a given number of ADC channels. It is not possible to independently select which pins as ADC pins. If available (1.a), Vref+ and Vref- are part of these combinations. If not (1.b), either PIC doesn't support voltage reference, or in some few cases, Vref+ and Vref- are handled separately via VCGF bits. PCFG bits are in ADCON1, as ADCON1_PCFG 2. the number of channels is specified clearing PCFG bits (case only found in 18F, I think) => pins can be configured independently (you can decide which pin will act as an analog pin, and define your own combination Vref+/Vref- are configured using VCFG bits. PCFG bits are in ADCON0 and ADCON1, and are numbered (eg. ADCON_PCFG5) 3. the number of channels is set using ANS bits (18F and non-18F) => same as case 2., channels can be configured independently Vref+/Vref- are configured using VCFG bits.
this file is generated, don't modify it directly...
No dependency found
_adc_vref_adref()
Configure Voltage reference using ADREF bits Found in PICs: 16f722, 16f723, 16f724, 16f726, 16f727, 16lf722, 16lf723, 16lf724, 16lf726, 16lf727, Same family, DS 41341B
_adc_vref_adpref_adnref()
No documentation found
_adc_vref_vcfg()
Configure Voltage reference using VCFG bits