+ Post New Thread
Results 1 to 11 of 11
  1. #1
    Full Member level 3
    Points: 1,640, Level: 9

    Join Date
    Jan 2014
    Location
    Ludhiana ਪੰਜਾਬ
    Posts
    181
    Helped
    11 / 11
    Points
    1,640
    Level
    9

    how to configure brownout rest in pic18f microcontroller

    Hello ....
    In many of industrial control boards have seen external microprocessor reset by detection of low voltage (below from some threshold voltage) that very good �� technique.
    I am using pic18f4520 microcontroller but I don't know �� how to configure brownout reset. Please any suggestion

  2. #2
    Super Moderator
    Points: 27,494, Level: 40
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,214
    Helped
    1038 / 1038
    Points
    27,494
    Level
    40
    Blog Entries
    5

    Re: how to configure brownout rest in pic18f microcontroller

    Did´t you see any configuration bits on datasheet for doing that ?
    In general the fuse is designated with a sugestive acronym.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



    •   AltAdvertisment

        
       

  3. #3
    Super Moderator
    Points: 27,494, Level: 40
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,214
    Helped
    1038 / 1038
    Points
    27,494
    Level
    40
    Blog Entries
    5

    Re: how to configure brownout rest in pic18f microcontroller

    Quote Originally Posted by anju.george.3333 View Post
    For MikroC you can configure it my using the GUI interface : MikroC Project Settings.
    For MPLAB you can go to Window >> PIC Memory Views >> Configuration bits....
    For CCS, you have the PicWizard...Anyway, in shorts, you have to spend some time to get introduced on the basics of the subject you are asking for help. The IDE compiler HELP is your best friend.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



    •   AltAdvertisment

        
       

  4. #4
    Full Member level 3
    Points: 1,640, Level: 9

    Join Date
    Jan 2014
    Location
    Ludhiana ਪੰਜਾਬ
    Posts
    181
    Helped
    11 / 11
    Points
    1,640
    Level
    9

    Re: how to configure brownout rest in pic18f microcontroller

    I am using MPLAB IDE for programming. My purpose is only reset microcontroller untill voltage is properly set and if voltage went below like 4.5v microcontroller get reset to prevent malfunction etc.

    - - - Updated - - -

    One more if any undervoltage external microprocessor reset is available then please suggest me cheap and easily available.
    Thanks



    •   AltAdvertisment

        
       

  5. #5
    Super Moderator
    Points: 27,494, Level: 40
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,214
    Helped
    1038 / 1038
    Points
    27,494
    Level
    40
    Blog Entries
    5

    Re: how to configure brownout rest in pic18f microcontroller

    Quote Originally Posted by abc_de View Post
    One more if any undervoltage external microprocessor reset is available then please suggest me cheap and easily available
    Did you even see datasheet of this uC ?
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  6. #6
    Full Member level 3
    Points: 1,640, Level: 9

    Join Date
    Jan 2014
    Location
    Ludhiana ਪੰਜਾਬ
    Posts
    181
    Helped
    11 / 11
    Points
    1,640
    Level
    9

    Re: how to configure brownout rest in pic18f microcontroller

    Yes I have seen the datasheet of pic18f4520 microcontroller.
    But I am unable to set brownout rest



  7. #7
    Super Moderator
    Points: 246,485, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    42,852
    Helped
    13042 / 13042
    Points
    246,485
    Level
    100

    Re: how to configure brownout rest in pic18f microcontroller

    A text search might help... There's a datasheet section "Brown-out Reset (BOR)", chapter 4.4 in my datasheet version.



  8. #8
    Super Moderator
    Points: 27,494, Level: 40
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,214
    Helped
    1038 / 1038
    Points
    27,494
    Level
    40
    Blog Entries
    5

    Re: how to configure brownout rest in pic18f microcontroller

    Doing a quick search on the Web, you can find the datasheet of this uC, indicating that the BOR feature is available for the whole fammily.

    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  9. #9
    Full Member level 3
    Points: 1,640, Level: 9

    Join Date
    Jan 2014
    Location
    Ludhiana ਪੰਜਾਬ
    Posts
    181
    Helped
    11 / 11
    Points
    1,640
    Level
    9

    Re: how to configure brownout rest in pic18f microcontroller

    FVM I have read this section before...
    Can you give me code example of configuration bits in which BOR is set
    My power supply is +5v
    Thanks



    •   AltAdvertisment

        
       

  10. #10
    Advanced Member level 3
    Points: 6,504, Level: 19

    Join Date
    Jan 2015
    Posts
    946
    Helped
    297 / 297
    Points
    6,504
    Level
    19

    Re: how to configure brownout rest in pic18f microcontroller

    Posts #3 and #4 give you some idea of how some environments let you set the config settings.
    What compiler are you using (and the answer does NOT start with MPLAB - that is the IDE)? Some compilers like using #pragma directives and others have specific macros you can use.
    As well as the data sheet section references given above, also check out the "Special Features of the CPU" section 23, and in particular Section 23.1 and the following register descriptions which will not only tell you what config options are available but what values they can take. In the case of BOREN, there are 4 options.
    You should also check out Section 26.1 for the Vbor setting that applies to your design.
    Susan



  11. #11
    Advanced Member level 3
    Points: 3,996, Level: 14

    Join Date
    Aug 2015
    Posts
    773
    Helped
    142 / 142
    Points
    3,996
    Level
    14

    Re: how to configure brownout rest in pic18f microcontroller

    You have to set the BOR and BORV config settings.


    1 members found this post helpful.

--[[ ]]--