Based on datasheet: When converting differential signals, the negative input for the channel is selected with the CHSN<3:0> bits of the ADCON2 register. Any positive input can be paired with any negative input to determine the differential channel.
It seems you have to write the ADCON2. See the register at page 183 from datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/41675A.pdf On Sun, Mar 27, 2016 at 7:25 PM, Jim Gregory <[email protected]> wrote: > Some newer chips (e.g. the 16F1788/1789) have a differential ADC option > that allows the negative voltage reference to be any ADC pin, so you can > take differential readings between pins. How do I set up the ADC to do > that? > > -Jim > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/jallib. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/jallib. For more options, visit https://groups.google.com/d/optout.
