AREF above operating voltage of the microcontroller












4












$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?










share|improve this question









$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


















4












$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?










share|improve this question









$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
















4












4








4





$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?










share|improve this question









$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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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












1 Answer
1






active

oldest

votes


















7












$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






share|improve this answer









$endgroup$













    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    7












    $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






    share|improve this answer









    $endgroup$


















      7












      $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






      share|improve this answer









      $endgroup$
















        7












        7








        7





        $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






        share|improve this answer









        $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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 8 at 15:33









        BimpelrekkieBimpelrekkie

        48.3k240107




        48.3k240107






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            SQL update select statement

            'app-layout' is not a known element: how to share Component with different Modules