| Author | Sebastien Lelong, Copyright (C) 2009, all rights reserved. |
| Adapted-by | |
| Compiler | >=2.4k |
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, Vref+ and Vref- are part of these combinations.
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_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_vcfg()
Configure Voltage reference using VCFG bits