Hi everybody,
I want to enable brown-out reset in my PIC 18f4620 with the following configuration bits:
- Brown-out Reset: Enabled (1)
- Brown-out Reset voltage: Maximum Setting (2)
I don't understand the setting at (2). Please help me on this. By the way, please check setting at (1) is properly or not? Do I need to choose other setting include Brown-out Reset enabled in hardware only (SBOREN is disabled), Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)?
Thanks too much.
Brown-out reset with maximum setting / minimum setting?
-
- Posts: 30
- Joined: 17 Jul 2013 16:35
Re: Brown-out reset with maximum setting / minimum setting?
Voltage values are given in Table 26.1 of processor datasheet (highest setting corresponds to voltage of 4.36 to 4.82V).
If you don't need to disable the Brown-out Reset in software then use the setting: enabled in hardware only (SBOREN is disabled), which is also the safest one.
If you don't need to disable the Brown-out Reset in software then use the setting: enabled in hardware only (SBOREN is disabled), which is also the safest one.
- milos.vicentijevic
- Posts: 965
- Joined: 23 Apr 2013 08:09
Re: Brown-out reset with maximum setting / minimum setting?
Hello,
please try to do what Janni has suggested. It should work safe.
Best Regards,
Milos Vicentijevic
please try to do what Janni has suggested. It should work safe.
Best Regards,
Milos Vicentijevic
-
- Posts: 30
- Joined: 17 Jul 2013 16:35
Re: Brown-out reset with maximum setting / minimum setting?
Hi Milos,milos.vicentijevic wrote:Hello,
please try to do what Janni has suggested. It should work safe.
Best Regards,
Milos Vicentijevic
Follow janni's suggestion, I need to enable option Brown-out Reset enabled in hardware only (SBOREN is disabled), Minimum setting. Will this settings be appropriate with value of BOR configuration is BOREN1:BOREN0 = 1:1 and threshold of voltage is 2.00V? (Once Vdd is less than 2V, Brown-out reset will be triggered and MCU reset well?). Please check to help me understand this right.
Thanks,
- milos.vicentijevic
- Posts: 965
- Joined: 23 Apr 2013 08:09
Re: Brown-out reset with maximum setting / minimum setting?
Hello,
BOREN1 and BOREN0 are bits for configuration of your Brown out protection. All possible scenarios you can find in datasheet's table 4-1 on page 46:
http://ww1.microchip.com/downloads/en/d ... 39626b.pdf
If you set BORV1 and BORV0 bits to 1, threshold will be set to approx. 2v. So if power supply goes below this value your MCU will reset automatically. Off course, you will need to have your BOREN1 and BOREN0 bits set properly so protection is Enabled.
Best Regards,
Milos Vicentijevic
BOREN1 and BOREN0 are bits for configuration of your Brown out protection. All possible scenarios you can find in datasheet's table 4-1 on page 46:
http://ww1.microchip.com/downloads/en/d ... 39626b.pdf
If you set BORV1 and BORV0 bits to 1, threshold will be set to approx. 2v. So if power supply goes below this value your MCU will reset automatically. Off course, you will need to have your BOREN1 and BOREN0 bits set properly so protection is Enabled.
Best Regards,
Milos Vicentijevic
Re: Brown-out reset with maximum setting / minimum setting?
Note that the lowest settings are available only for LF version. One cannot use them for plain PIC18F4620 as it may work only in 4.2-5.5V range.
-
- Posts: 30
- Joined: 17 Jul 2013 16:35
Re: Brown-out reset with maximum setting / minimum setting?
After reading Table 4.1 in page 46, i make a detail here for any body follow this topic.
BOREN1:BOREN0:status of BOREN = 0:0:Unavailable is approx. with Disabled option in Editor Project
BOREN1:BOREN0:status of BOREN = 0:1:Available is approx. with Enabled option in Editor Project
BOREN1:BOREN0:status of BOREN = 1:0:Unavailable is approx. with Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
BOREN1:BOREN0:status of BOREN = 1:1:Unavailable is approx. with Brown-out Reset enabled in hardware only (SBOREN is disabled).
That's all my understanding, hope it right.
BOREN1:BOREN0:status of BOREN = 0:0:Unavailable is approx. with Disabled option in Editor Project
BOREN1:BOREN0:status of BOREN = 0:1:Available is approx. with Enabled option in Editor Project
BOREN1:BOREN0:status of BOREN = 1:0:Unavailable is approx. with Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
BOREN1:BOREN0:status of BOREN = 1:1:Unavailable is approx. with Brown-out Reset enabled in hardware only (SBOREN is disabled).
That's all my understanding, hope it right.
-
- Posts: 30
- Joined: 17 Jul 2013 16:35
Re: Brown-out reset with maximum setting / minimum setting?
Dear Janni,janni wrote:Note that the lowest settings are available only for LF version. One cannot use them for plain PIC18F4620 as it may work only in 4.2-5.5V range.
Thanks for your comment, I couldn't find datasheet of PIC18LF4620 that show your words, would you mind giving the spec of PIC18LF4620?
Regards,
Re: Brown-out reset with maximum setting / minimum setting?
It's the same datasheet for both versions. Just look at the table I've written about earlier and you'll have all the data.