I am wondering what is the purpose of an IC such as the MC34064. Is it just to ensure a reset of microcontrollers upon power up or are there other reasons? I used to make a simple transistor switching circuit (with RC) for resetting microcontrollers in the old days. I am asking because the name of this IC is "undervoltage sensing" and not "reset IC" or something similar.
-
3\$\begingroup\$ The transistor reset works great as a power-on reset. But the under-voltage sensing circuit also guarantees that the processor will be reset if voltage droops below some threshold. This helps guarantee correct operation of the processor. \$\endgroup\$– user57037Commented Aug 14, 2017 at 5:20
5 Answers
I guess you are trying to understand why you need an IC to do what a simple transistor could do "in the old days", which is pulling a reset pin low (or high), right? If that's the case, a couple of reasons are:
The trigger point can be precisely set, as the IC has its internal bandgap reference voltage. With a simple transistor, it's harder to trigger at a very specific value reliably.
You can set a specific time for the reset pin to stay low when it's triggered (which is harder to do with simple transistors). Many ICs have strict requirements with minimum reset assertion time.
This type of ICs usually operates down to low voltages (in this case 1V) guaranteeing that it will work reliably for large voltage drops on the power rail.
The fact that they label it as UV sense instead of IC reset doesn't really matter as they clearly describe the purpose that this IC has been designed for, which is to reset a microprocessor.
-
\$\begingroup\$ From a marketing perspective, "Undervolt Sensing" does imply that the circuit is designed to operate sanely as the voltage drops. \$\endgroup\$ Commented Aug 14, 2017 at 18:41
From the product page at On Semi website.
."The MC33064/MC34064 is an undervoltage sensing circuit specifically designed for use as a reset controller in microprocessor-based systems."
There is a bunch of voltage-sensitive activity inside a MCU, and not all activity has problems at the same (out of spec) VDD.
A precise UVD ensures all the activities get the desired VDD, even tho some are still functioning properly.
-
2\$\begingroup\$ This has happened to me. In a consumer, handheld device. If you dropped it when the battery was low (alkaline batteries) you could get a momentary battery disconnect, and part of the processor would reset, while other parts kept running. Result for consumer was not acceptable (played garbage audio at high volume). We fixed it by changing the battery contact design so disconnect was not possible (full floating springs on both sides). An under-voltage reset would also have fixed it, but the mechanical change was easier and cheaper. \$\endgroup\$ Commented Aug 14, 2017 at 5:25
In a normal usage, the user will press the power button to turn a device off. When the MCU sense the button press, it will initiate shut down sequence and the firmware should set the pointer to the beginning of the program.
When there's a power outages or maybe the user just switch off the plug. The undervoltage pin should able to sense these disturbance before the MCU run out of power from it's bulk cap. The firmware should quickly set the pointer to the beginning of the program as to prepare for the next power up. So when next time the device is power up, it should work as normal.
If you're using for simple IO commands, you may not need it as it's ok to continue running from where the pointer last location. However if you need to initialize a lot of ICs using I2C for example, then initialize pointer to the beginning is important.
Undervoltage situations can be bad for microcontrollers and memories. Many microcontrollers have a basic undervoltage protection system built in for this reason. The most common failure mode is corrupted flash memory, due to low voltage making the flash memory write controller malfunction.
Another common use for undervoltage sensors is to protect batteries. Many types of battery do not like being discharged to very low voltages, either because they leak or because they cannot be fully recharged afterwards. LiPo and NiMH cells are damaged by over-discharge, for example. It can be hard to get a complex circuit to go into a low current state when voltage gets low, but an undervoltage sensor connected to a FET between the circuit and the battery is quite effective and cheap.