Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Cutoff frequency of lowpass filter for AVcc

Parent

Cutoff frequency of lowpass filter for AVcc

+3
−0

The ATmega16U2 datasheet suggests putting an external lowpass filter from Vcc (the digital supply) to AVcc (the analog supply).

Image_alt_text

However, the datasheet doesn't specify what type of lowpass filter (passive/active, RC/LC) should be used, neither does it specify the cutoff frequency fc. Here is my current schematic where I have used a an RC lowpass filter with fc = 159 Hz (schematic still in progress). Is this a good value?

Image_alt_text

What determines the filter type (passive/active), and what determines the cutoff frequency for the lowpass filter in this situation?

History

0 comment threads

Post
+2
−0

Another option entirely is to add a voltage reference IC. There are two flavours of those: "series reference" and "shunt reference". Simplified, the former is a linear regulator of sorts and the latter is a zener diode of sorts. An article from AD here: Series or Shunt Voltage Reference?

As noted in the article there are a few subtle differences between the two making them more suitable in certain cases. But no matter which one you pick, you can go with one that's slightly below the ordinary VCC supply of the MCU. Most often the ADC pin is specified to not tolerate higher voltages than the main supply, but you can usually go far lower. Depending on the nature of the voltage you are measuring of course.

For example, for 5V supplied MCUs with 12 ADC, it is common to pick a voltage ref with 4.096V, since that would be an even divisor of 212 leaving you with a handy unit of mV in the software.

History

1 comment thread

Hi Lundin, thanks for your enlightening answer. From your answers here and on EE.SE I can tell that y... (3 comments)
Hi Lundin, thanks for your enlightening answer. From your answers here and on EE.SE I can tell that y...
Carl‭ wrote 7 months ago

Hi Lundin, thanks for your enlightening answer. From your answers here and on EE.SE I can tell that you are an expert in electronics, particularly in embedded systems and C. I am very interested in embedded systems, but am currently working in a position as an EE where tasks regarding embedded programming are very scarce. Could you elaborate on how you became good at embedded systems - what tasks you have worked on - the working positions you have had that has helped you, etc.?

Lundin‭ wrote 7 months ago

Carl‭ Hi there. That's a bit off-topic for Codidact, but feel free to join the EE chat over at SE.

Carl‭ wrote 7 months ago

I agree, definitely off-topic. Thanks for the link! I will write on there later today.