2020-07-27 10:24 PM
2020-07-28 09:02 AM
Hi!
the good news is that you don't have to do much, just set your wanted threshold in BOR_TH bits and enable the BOR (BrownOut Reset) functionality. It's all implemented inside the chips already.
2020-07-28 09:03 AM
Ah, and you do that from the option bytes, in case it was not clear - see datasheet.
2020-07-28 09:07 AM
Microchip, and other, make cheap laser trimmed ICs that do this. Good solid predictable reset, save you a lot of support calls/costs on designs containing synchronous logic.
MCP120 http://ww1.microchip.com/downloads/en/devicedoc/11184d.pdf
2020-07-28 10:00 PM
Hello Mr. Cristian,
I am not able to find these BOR_TH bits and enable/disable functonality of BOR.
Can you please tell me from where it need to set.
Thanks and regards,
Shinde Umesh
2020-07-29 07:47 AM
Ah, now I see you talk about STM8AFxxx MCU, and these chips don't have an option byte to set the BOR level. It is fixed to 2.65V.
Yeah, different family, but BOR is still there and reliable, but not adjustable.