Author Topic: PIC18 overloading ADC input. Dangerous?  (Read 927 times)

0 Members and 1 Guest are viewing this topic.

Offline scuffTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
PIC18 overloading ADC input. Dangerous?
« on: October 13, 2017, 09:06:40 am »
Hi all,

I'm using a PIC18F45K40, which has an adjustable Vref+ for the ADC module.  Is there any danger in presenting a input voltage that exceeds Vref+ without violating the electrical specifications, i.e. Vref+ < Vpin < VDD ?  I can't find a clear answer in the data sheet.  Will it just safely max out the ADC reading, or damage the ADC module?

Regards,
Scuff
 

Online JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: PIC18 overloading ADC input. Dangerous?
« Reply #1 on: October 13, 2017, 09:20:42 am »
Hi, in case Vref < Vdd, when Vref < Vin < Vdd the result will always be 0xFF / 0x3FF / 0xFFF (depending on the ADC resolution)

Remember that this is a SAR ADC, so it's perfectly safe: The voltage input is compared against a value derivated from Vref
Also, if you look at the Analog Input Model in the datasheet, you'll see that the analog pins still have the protection diodes referred to Vdd and Vss (and not Vref+ and Vref-)
« Last Edit: October 13, 2017, 09:41:42 am by JPortici »
 

Offline scuffTopic starter

  • Newbie
  • Posts: 3
  • Country: gb
Re: PIC18 overloading ADC input. Dangerous?
« Reply #2 on: October 13, 2017, 10:20:34 am »
Thanks.  I presumed it would be okay, but I'm happy to have confirmation. :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf