With the development of computer technology, single-chip microcomputers have been widely used in the field of industrial automation and intelligent products. How to improve the anti-interference ability of single-chip microcomputer products is a problem that product developers and designers face and must solve. The specific methods of anti-interference are discussed in detail in many books and articles, so this article will not repeat them. The "Watchdog (WATCHDOG)" integrated circuit DS1232 produced by DALLAS Company in the United States has the characteristics of reliable performance, simple use and low price. It can be used in single-chip microcomputer products to improve the anti-interference ability of hardware. We have applied DS1232 to "grain center warehouse granary temperature monitoring system", "bank interest rate display screen", "multi-function computer clock", "power plant belt scale speed measurement system" and "full-automatic power limit metering system", and received good results in actual use.
1. Structure and features of DS1232
1.1 Pin functions and internal structure
DS1232 is a microprocessor monitoring circuit produced by DALLAS, USA, in an 8-pin DIP package, as shown in Figure 1.
The functions of each pin are as follows:
PBRST: button reset input;
TD: watchdog timer delay setting terminal;
TOL: 5% or 10% voltage monitoring selection terminal;
GND: power ground;
RST: high level active reset output terminal;
RST: low level active reset output terminal;
ST: cycle input terminal;
Vcc: power supply.
1.2 Internal structure of DS1232
The internal structure block diagram of DS1232 is shown in Figure 2.
1.3 Main Features
DS1232 has the following features:
● Available in 8-pin DIP package and 16-pin SOIC package to meet different design requirements;
● Can stop and restart the microprocessor when it is out of control;
● Automatically reset the microprocessor when the microprocessor loses power or the power supply voltage changes transiently;
● Accurate 5% or 10% power supply monitoring;
● No discrete components required;
● Wide temperature range, -40 to +85°C.
2. DS1232 Functions
2.1 Power Supply Voltage Monitoring
DS1232 can monitor the power supply voltage of the microprocessor in real time. When the power supply voltage VCC is lower than the preset value, the 5th and 6th pins of DS1232 output complementary reset signals RST and RST. The preset value is set by pin 3 (TOL); when TOL is grounded, RST and RST signals are generated when the power supply voltage drops below 4.75V; when TOL is connected to VCC, RST and RST signals are generated only when VCC drops below 4.5V. When the power supply returns to normal, the RST and RST signals are maintained for at least 250ms to ensure the normal reset of the microprocessor.
2.2 Button reset
In single-chip microcomputer products, the simplest button reset circuit is composed of resistors and capacitors. If the system expansion has other interface chips that need to be reset at the same time as the microprocessor, this simple resistor-capacitor reset circuit often cannot meet the overall reset requirements. DS1232 provides an input terminal PBRST (pin 1) that can be directly connected to the reset button. When a low-level signal is input to this pin, a reset signal of at least 250ms will be output at the RST and RST terminals. The specific circuit is shown in Figure 3.
2.3 Watchdog Timer
The DS1232 has a watchdog timer built in. When no valid signal arrives at the ST pin of the DS1232 within the set cycle time, the RST and RST pins of the DS1232 will generate a reset signal to force the microprocessor to reset. This function is very effective in preventing the microprocessor from crashing due to interference and other reasons. The timing of the watchdog timer is determined by the TD pin of the DS1232, see Table 1 for details.
The periodic input signal ST of the watchdog timer can be obtained from the address signal, data signal or control signal of the microprocessor. No matter which signal is used, it must be able to periodically access the DS1232. For the MCS51 series microcontrollers, it is recommended to use the ALE signal.
3. DS1232 Typical Application Circuit
The typical interface circuit between DS1232 and MCS51 series microcontroller is shown in Figure 3.
4. Precautions for use
Although DS1232 has the feature of simple interface with microprocessor, the following points should be noted in its use:
(1) In addition to being connected to ALE of MCS51 microcontroller, ST can also be connected to other signal lines, but it must be ensured that the watchdog timer is reset before the watchdog timer count overflows. (2)
There is no pull-up resistor on the 6th pin inside DS1232. If other peripheral interface chips of the microcontroller need to use a low-level reset signal, then a pull-up resistor must be connected to this pin, as shown in R in Figure 3.
(3) If the user target board is debugged with an emulator and the ST terminal is connected to the ALE of the microcontroller, it is best not to insert the DS1232 chip first, because when the emulator is connected to the PC and the program is run in single-step, the ALE signal of the microcontroller is not continuously supplied, which can easily cause abnormal reset and affect the debugging work.
Previous article:Interface between DTMF circuit HT9200A and microcontroller
Next article:Interface and display design between LCD controller and single chip microcomputer mPSD3334D
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Thank you for being there - Tribute to my love
- Serial port download of TMS320LF2407
- Abnormal sound from the front transformer of the power factor circuit
- Packaging issues of double-row pluggable connectors
- TMS320F28384D - Functional Block Diagram
- MSP430 G2553 Timer/Counter Timer_A
- msp430 program library serial series 12864 LCD
- CC2640R2 internal Bootloader burning program
- 【ST NUCLEO-H743ZI Review】_by dsjsjf
- 【TouchGFX Design】(3) Simple waveform display--based on C++