MSP430 WDT has two modes: 1. Watchdog 2. Timer
We will only use the timer mode this time. Note that there are two places to determine the timing time: 1. Clock source selection 2. Interval time selection
The clock source can be: SMCLK or ACLK
There are only four time intervals
time = count/f
time interval, count the four numbers above, f the frequency of the clock source selected
For example, if the SMCLK frequency is 1MHz and WDTISX is 10, i.e. 512, the interrupt time is 0.5ms.
WDTCTL = WDT_MDLY_32; // Set Watchdog Timer interval to ~30ms
IE1 |= WDTIE; // Enable WDT interrupt
// Watchdog Timer interrupt service routine
#pragma vector=WDT_VECTOR
__interrupt void watchdog_timer(void)
{
}
Previous article:MSP430: Secondary function selection of pins
Next article:MSP430 G2553 Timer Interrupt Summary
Recommended ReadingLatest update time:2024-11-23 11:48
- Popular Resources
- Popular amplifiers
- Principles and Applications of Single Chip Microcomputers 3rd Edition (Zhang Yigang)
- Learn C language for AVR microcontrollers easily (with video tutorial) (Yan Yu, Li Jia, Qin Wenhai)
- MCU Principles and Interface Technology C51 Programming (Edited by Zhang Yigang)
- MSP430 series single chip microcomputer system engineering design and practice
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- How to fill in the PCB footprint of Cadence device?
- STM32F4 NVIC_SystemReset() function software reset fails due to external pull-up resistor on RST pin
- How to connect CC3200 to Gizwits Cloud
- MSP430Fr6972--AD usage summary
- Maxim introduces complete line output solution for audio systems
- 【Child care machine】+ ESP32-S3-BOX+ESP32-S3-DevKitC-1 material unpacking and BOX basic demonstration
- [Free trial of Pingtouge Bluetooth Mesh Gateway Development Kit] + nRF Mesh and Light Experiment (Part 2)
- PCB learning
- Allwinner V853 development board Tina SDK LCD small resolution DCLK setting problem
- Unboxing