AREF above operating voltage of the microcontroller
$begingroup$
I’m operating an ATMega32 at 3v3 through USB and a LDO.
Is it possible to connect the AREF pin directly to the USB voltage of 5V so that I can read voltages between 0 and 5V when reading from the analog pins?
arduino avr
$endgroup$
add a comment |
$begingroup$
I’m operating an ATMega32 at 3v3 through USB and a LDO.
Is it possible to connect the AREF pin directly to the USB voltage of 5V so that I can read voltages between 0 and 5V when reading from the analog pins?
arduino avr
$endgroup$
4
$begingroup$
What does the datasheet say?
$endgroup$
– Elliot Alderson
Jan 8 at 15:22
$begingroup$
The microcontroller definitey can operate at 5V same applies to AREF it can operate under 5V, it is unclear to me if it can have a higher voltage than the one being fed through the VCC pins.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:28
3
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit: The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins. The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting. If you want a 5 V input range either power the uC with 5 V or use a voltage divider to lower the input voltage to the ADC.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:28
$begingroup$
Thank you! I’ll use a voltage divider as it’s the best solution in my case.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:31
3
$begingroup$
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video: youtube.com/watch?v=2yFh7Vv0Paw Making this and comment above an answer because, well it is.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:32
add a comment |
$begingroup$
I’m operating an ATMega32 at 3v3 through USB and a LDO.
Is it possible to connect the AREF pin directly to the USB voltage of 5V so that I can read voltages between 0 and 5V when reading from the analog pins?
arduino avr
$endgroup$
I’m operating an ATMega32 at 3v3 through USB and a LDO.
Is it possible to connect the AREF pin directly to the USB voltage of 5V so that I can read voltages between 0 and 5V when reading from the analog pins?
arduino avr
arduino avr
asked Jan 8 at 15:19
Petru-Sebastian ToaderPetru-Sebastian Toader
957
957
4
$begingroup$
What does the datasheet say?
$endgroup$
– Elliot Alderson
Jan 8 at 15:22
$begingroup$
The microcontroller definitey can operate at 5V same applies to AREF it can operate under 5V, it is unclear to me if it can have a higher voltage than the one being fed through the VCC pins.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:28
3
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit: The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins. The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting. If you want a 5 V input range either power the uC with 5 V or use a voltage divider to lower the input voltage to the ADC.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:28
$begingroup$
Thank you! I’ll use a voltage divider as it’s the best solution in my case.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:31
3
$begingroup$
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video: youtube.com/watch?v=2yFh7Vv0Paw Making this and comment above an answer because, well it is.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:32
add a comment |
4
$begingroup$
What does the datasheet say?
$endgroup$
– Elliot Alderson
Jan 8 at 15:22
$begingroup$
The microcontroller definitey can operate at 5V same applies to AREF it can operate under 5V, it is unclear to me if it can have a higher voltage than the one being fed through the VCC pins.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:28
3
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit: The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins. The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting. If you want a 5 V input range either power the uC with 5 V or use a voltage divider to lower the input voltage to the ADC.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:28
$begingroup$
Thank you! I’ll use a voltage divider as it’s the best solution in my case.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:31
3
$begingroup$
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video: youtube.com/watch?v=2yFh7Vv0Paw Making this and comment above an answer because, well it is.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:32
4
4
$begingroup$
What does the datasheet say?
$endgroup$
– Elliot Alderson
Jan 8 at 15:22
$begingroup$
What does the datasheet say?
$endgroup$
– Elliot Alderson
Jan 8 at 15:22
$begingroup$
The microcontroller definitey can operate at 5V same applies to AREF it can operate under 5V, it is unclear to me if it can have a higher voltage than the one being fed through the VCC pins.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:28
$begingroup$
The microcontroller definitey can operate at 5V same applies to AREF it can operate under 5V, it is unclear to me if it can have a higher voltage than the one being fed through the VCC pins.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:28
3
3
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit: The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins. The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting. If you want a 5 V input range either power the uC with 5 V or use a voltage divider to lower the input voltage to the ADC.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:28
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit: The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins. The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting. If you want a 5 V input range either power the uC with 5 V or use a voltage divider to lower the input voltage to the ADC.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:28
$begingroup$
Thank you! I’ll use a voltage divider as it’s the best solution in my case.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:31
$begingroup$
Thank you! I’ll use a voltage divider as it’s the best solution in my case.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:31
3
3
$begingroup$
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video: youtube.com/watch?v=2yFh7Vv0Paw Making this and comment above an answer because, well it is.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:32
$begingroup$
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video: youtube.com/watch?v=2yFh7Vv0Paw Making this and comment above an answer because, well it is.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:32
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit:
The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins.
The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting.
So if you connect 5 V to AREF, the VDD supply of the uC will be pulled up to about 4.4 V ! But you supplied 3.3 V via an LDO. Yes, then the LDO will do nothing.
If you want a 5 V input range either power the uC with 5 V
or
use a voltage divider to lower the input voltage to the ADC.
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
return StackExchange.using("schematics", function () {
StackExchange.schematics.init();
});
}, "cicuitlab");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "135"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f415888%2faref-above-operating-voltage-of-the-microcontroller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit:
The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins.
The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting.
So if you connect 5 V to AREF, the VDD supply of the uC will be pulled up to about 4.4 V ! But you supplied 3.3 V via an LDO. Yes, then the LDO will do nothing.
If you want a 5 V input range either power the uC with 5 V
or
use a voltage divider to lower the input voltage to the ADC.
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video
$endgroup$
add a comment |
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit:
The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins.
The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting.
So if you connect 5 V to AREF, the VDD supply of the uC will be pulled up to about 4.4 V ! But you supplied 3.3 V via an LDO. Yes, then the LDO will do nothing.
If you want a 5 V input range either power the uC with 5 V
or
use a voltage divider to lower the input voltage to the ADC.
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video
$endgroup$
add a comment |
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit:
The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins.
The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting.
So if you connect 5 V to AREF, the VDD supply of the uC will be pulled up to about 4.4 V ! But you supplied 3.3 V via an LDO. Yes, then the LDO will do nothing.
If you want a 5 V input range either power the uC with 5 V
or
use a voltage divider to lower the input voltage to the ADC.
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video
$endgroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit:
The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins.
The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting.
So if you connect 5 V to AREF, the VDD supply of the uC will be pulled up to about 4.4 V ! But you supplied 3.3 V via an LDO. Yes, then the LDO will do nothing.
If you want a 5 V input range either power the uC with 5 V
or
use a voltage divider to lower the input voltage to the ADC.
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video
answered Jan 8 at 15:33
BimpelrekkieBimpelrekkie
47.9k240105
47.9k240105
add a comment |
add a comment |
Thanks for contributing an answer to Electrical Engineering Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f415888%2faref-above-operating-voltage-of-the-microcontroller%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
$begingroup$
What does the datasheet say?
$endgroup$
– Elliot Alderson
Jan 8 at 15:22
$begingroup$
The microcontroller definitey can operate at 5V same applies to AREF it can operate under 5V, it is unclear to me if it can have a higher voltage than the one being fed through the VCC pins.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:28
3
$begingroup$
Indeed this information will be in the datasheet, but since it might be difficult to find I'll help a bit: The datasheet will state that the voltages at the uC's inputs/outputs cannot exceed the voltage on the VDD pins. The reason for this is the ESD protection diodes. As soon as the voltage at AREF becomes higher than VDD + 0.5 V the AREF's ESD diode will start conducting. If you want a 5 V input range either power the uC with 5 V or use a voltage divider to lower the input voltage to the ADC.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:28
$begingroup$
Thank you! I’ll use a voltage divider as it’s the best solution in my case.
$endgroup$
– Petru-Sebastian Toader
Jan 8 at 15:31
3
$begingroup$
To learn more about what issues the ESD diodes can cause, watch this EEVBlog video: youtube.com/watch?v=2yFh7Vv0Paw Making this and comment above an answer because, well it is.
$endgroup$
– Bimpelrekkie
Jan 8 at 15:32