PIC18F1220 AVdd and Vdd

Thread Starter

jwilk13

Joined Jun 15, 2011
228
So I've been doing a bit of reading on the reasoning for separate Vdd/AVdd and Vss/AVss pins, and I've come across lots of different solutions on how to use them.

I'm currently using a PIC18F1220 and I'm using the ADC with internal voltage references selected. I've read that if you're doing that, it's good to put a filter on the analog power supply pins. Others say you can direct connect the digital and analog supply pins together. Others say that as long as you're using bypass caps properly, then you're good.

Despite all of these differences, one thing everyone says is "According to the datasheet...". I can say that I've been through all 300+ pages of the PIC18F1220 datasheet and can't find anything about what to do with the analog/digital supplies. A separate Microchip document said that this type of information would be in the "Programming Specification" document, which they state is different from the data sheet. I haven't been able to find this document for the PIC18F1220.

So, the question is: What the heck should I do with the analog supply pins? I know they need to be connected in order for the device to operate, just not sure how.
 

MrChips

Joined Oct 2, 2009
30,806
All the above suggestions are correct. It depends on what you are trying to measure.

How critical are your measurements?

Here are the answers in order of simplicity.
The resolution and accuracy gets better as you go down the list.


  1. Connect AVdd to Vdd and AVss to Vss.
  2. Same as 1. but make sure you put 0.1μF and 10μF caps between AVdd and AVss.
  3. Put 100Ω or ferrite bead between Vdd and AVdd. Make sure you keep the caps as in 2.
  4. Same as 3. but make sure you have separate solid ground planes for Vss and AVss. Connect the ground planes at one point only, at the power input.
  5. Same as 4. but provide separate voltage regulator and filter for AVdd.
 
Last edited:

Thread Starter

jwilk13

Joined Jun 15, 2011
228
They're not extremely critical. I'm measuring the output of a hall effect sensor, but that voltage is very rarely going to stay stable. My ADC is 10 bits, and if that value changes by 5 or so (about 25 mV I think), it shouldn't be a big deal. Would connecting them directly be a decent solution? My PCB has a bottom ground plane and is using a 5-V LDO as the power source.
 

JohnInTX

Joined Jun 26, 2012
4,787
Whatever you do, make sure that AVdd does NOT rise before Vdd on power up. The PIC will latch up. Been there! Gets HOT. In my case, it didn't fry the chip, though. Tough stuff.
 

Thread Starter

jwilk13

Joined Jun 15, 2011
228
Whatever you do, make sure that AVdd does NOT rise before Vdd on power up. The PIC will latch up. Been there! Gets HOT. In my case, it didn't fry the chip, though. Tough stuff.
Interesting...they should rise at almost the exact same time in my case. They're pins 15 and 16, and they're tied together with the capacitor configuration that MrChips suggested in there. I guess I'll find out...
 

JohnInTX

Joined Jun 26, 2012
4,787
Our issue surfaced when AVdd was powered by a precision linear regulator and Vdd was powered by a 'simple switcher'. AVdd rose before the switcher stabilized and applied Vdd. Its the only time I've seen it happen but thought I'd get it out there.
 
Top