ADC conversion result and negative output

Discussion in 'Embedded Systems and Microcontrollers' started by hunterage2000, Jul 26, 2017.

  1. hunterage2000

    Thread Starter Senior Member

    May 2, 2010
    470
    1
    Hi all, I have a pic16F1782 and the ADC conversion result can be supplied in 2 formats, either magnitude or 2's compliment.

    Both formats show the decimal range for -4096 to 4096 and their equivalent binary representations. The pic also has the option of differential analog inputs so does this mean I can have a Vref+ of 5V and a Vref- of GND but able to process a negative differential input i.e 0V - 5V = -5V = -4096?
     
  2. simozz

    Member

    Jul 23, 2017
    91
    26
    Hello,

    The result of the conversion represents the difference between the positive and negative input channels.
    For the allowed voltage input levels, see the chapter 30.0 from the DS.
    Check also the AN842.

    Regards,
    simozz
     
    Last edited: Jul 26, 2017
    ericgibbs likes this.
  3. Picbuster

    Active Member

    Dec 2, 2013
    786
    96
    it's all in that pic manual and clear explained.

    Picbuster
     
Loading...