1. OVERVIEW Overview
The 6410 RISC microprocessor watchdog timer is used to resume the controller operation whenever it is disturbed by malfunctions such as noise and system errors. The watchdog timer generates the reset signal. It can beused as a normal 16-bit interval timer to request interrupt service.Advantage in using WDT instead of PWM timer is that WDT generates the reset signal.
The watchdog timer of the S3C6410 RISC microprocessor restores the operation of the controller when the operation is interrupted by a fault such as noise or system error. It can generate a reset signal. It can be used with a 16-bit interval timer to request interrupt service. The advantage of using a WDT instead of a PWM timer is that the WDT generates a reset signal.
2. FEATURES
The Watchdog Timer includes the following features:
• Normal interval timer mode with interrupt request.
• Internal reset signal is activated when the timer count value reaches 0 (time-out).
When the timer count reaches 0 (timeout), the internal reset signal is valid.
• Level-triggered Interrupt mechanism.
3. FUNCTIONAL DESCRIPTION
3.1. WATCHDOG TIMER OPERATION
The watchdog timer uses only PCLK as its source clock. The prescaler value and the frequency division factor are specified in the watchdog timer control (WTCON) register. Valid prescaler values range from 0 to 28-1. The frequency division factor can be selected as 16, 32, 64,or 128.
Use the following equation to calculate the watchdog timer clock frequency and the duration of each timer clock cycle:
t_watchdog = 1/( PCLK / (Prescaler value + 1) / Division_factor )
The watchdog timer uses PCLK as the clock source, and passes through an 8-bit prescaler. The prescaler coefficient is determined by the (8~15) bits of the WTCON register. The divided frequency is equivalent to PCLK/(WTCON[8-15]+1). Then, it passes through a 4-way prescaler, and the prescaler coefficients are 16, 32, 64, and 128 respectively. It is controlled by the WTCON[4-3] bits.
If the second bit of the WTCON control register is 1, an interrupt signal is issued; if the 0th bit is 1, a reset signal is issued.
3.2、WTDAT & WTCNT
Once the watchdog timer is enabled, the value of watchdog timer data (WTDAT) register cannot be automatically reloaded into the timer counter (WTCNT). For this reason, an initial value must be written to the watchdog timer count (WTCNT) register, before the watchdog timer starts.
Once the watchdog timer is enabled, the value of the watchdog timer data (WTDAT) register cannot be automatically reloaded into the timer count (WTCNT). Before the watchdog timer starts, an initial value must be written to the watchdog timer count (WTDAT) register.
3.3、CONSIDERATION OF DEBUGGING ENVIRONMENT
When the 6410 is in debug mode using Embedded ICE, the watchdog timer must not operate.
When the S3C6410 is in debug mode (using embedded ICE), the watchdog timer cannot operate.
4. Register:
(1) The WTCON register allows the user to enable/disable the watchdog timer, select the clock signal from four different clock sources, and enable/disable the watchdog timer output.
(2) The WTDAT register is used to specify the timeout period. When the watchdog is used as a timer, when the value of the counter WTCNT reaches 0, the value of the WTDAT register will be automatically loaded into WTCNT, and no reset signal will be issued.
(3) Under normal operation, the WTCNT register contains the current count value of the watchdog timer.
(4) The WTCLRINT register is used to clear interrupts. After the interrupt service is completed, the interrupt service routine clears the related interrupts.
Note: As far as I understand, the watchdog timer actually contains two functions, one is the watchdog and the other is the timer.
When it is not used for system reset and only used for timer function, its WTDAT register is useful.
When it is used as a watchdog, the WTDAT register is meaningless. Think about it, when the watchdog cannot be fed and the system is reset, do the previously set parameters still have meaning? Therefore, only when it is used as a timer, after an interrupt occurs, the value of the WTDAT register is automatically loaded into WTCNT to start the next round of timing.
Link address of the WATCHDOG TIMER driver (1) for s3c6410 under Linux
Previous article:A design scheme for smart meter concentrator
Next article:Analysis of ARMLinux driver Watch Dog Timer (watchdog) driver
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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
- Sandia Labs develops battery failure early warning technology to detect battery failures faster
- Test solution download: R&SCMA180 - ideal test tool for analog and digital radio intercoms CMA80
- A complete list of new domestic AD/DA and other chips,
- TI Bluetooth 4.0 chip cc2540
- How to use the 5V output of a microcontroller to drive a 24V solenoid valve?
- RLC analog circuit design
- Verilog implements full parallel comparison algorithm.zip
- The serial port cannot be interrupted, but the register settings are correct when emulating.
- msp430 PWM period calculation
- Latest feeling: There are more beauties after wearing masks
- What are the Bluetooth output power, receiving sensitivity, resolution, TX transmission current, RX receiving current, and data rate?