MSP430 WDT

Publisher:Serendipity66Latest update time:2017-11-03 Source: eefocusKeywords:MSP430  WDT Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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)
{
 
}


Keywords:MSP430  WDT Reference address:MSP430 WDT

Previous article:MSP430: Secondary function selection of pins
Next article:MSP430 G2553 Timer Interrupt Summary

Recommended ReadingLatest update time:2024-11-23 11:48

Design and analysis of reset circuit system based on MSP430 series microcontroller
0 Introduction TI's mixed signal processor MSP430 series microcontrollers are one of the products in the current mainstream MCU market. They are widely used in the field of electronic applications and are favored by more and more electronic designers due to their powerful processing capabili
[Microcontroller]
Design and analysis of reset circuit system based on MSP430 series microcontroller
Design of Power System Fault Recorder Based on DSP and MSP430
Abstract: Aiming at the defects of high power consumption and lack of RF wireless communication in the current power system fault recorder, a power system fault recorder based on DSP and MSP430 series single chip CC430F5137 is designed. The operating principle of the system is analyzed, and the hardware circuit desi
[Industrial Control]
Design of Power System Fault Recorder Based on DSP and MSP430
MSP430 SD card SPI read and write operations (4) —— FatFs file system implementation
This section introduces the porting of the MSP430F5438A FatFs file system. FatFs is a general file system module used to implement the FAT file system in small embedded systems. The FatFs module is separate from IO, so the following low-level functions need to be implemented during porting: DSTATUS disk_initializ
[Microcontroller]
Simulation setup using IAR for MSP430 and Proteus
The first experiment is to use timer A to realize the running light. If you don't have money to buy a board, just simulate it. Create a new project. Many softwares are like this, as shown below: Then, click project- options or ALT + F7 to enter the options bar. Click General Options, select the device model in Targe
[Microcontroller]
Design of greenhouse data acquisition system based on MSP430 and CC2530
The growth of crops is affected by natural conditions, such as temperature and humidity, carbon dioxide concentration and light. With the development of computer technology and wireless sensor networks, the transformation of agriculture, especially agricultural greenhouses, with information technology is an inevitable
[Microcontroller]
Design of greenhouse data acquisition system based on MSP430 and CC2530
MSP430 AD conversion 12864 LCD display code
#include "msp430g2553.h" #include "12864.h"   unsigned int i,Vo; void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT ADC10CTL0 = SREF_0 + ADC10SHT_2 + REFON + ADC10ON + ADC10IE + REF2_5V; //__enable_interrupt(); // Enable interrupts. //TACCR0 = 30; // Delay to allow Ref to settle
[Microcontroller]
Development and application of micro-power consumption data acquisition system based on MSp430
0 Preface If the underwater data acquisition system with battery as power source is to work for a long time, it must be equipped with a large number of batteries as power source. If the power consumption of the system can be reduced, the number of batteries will be reduced, which can not only reduce the cost of the sy
[Microcontroller]
Development and application of micro-power consumption data acquisition system based on MSp430
Programmable metering devices with low-cost analog front ends [Texas Instruments]
April 8, 2011, Beijing Recently, Texas Instruments (TI) announced the launch of the MSP430AFE2xx series of metering analog front-end (AFE) ultra-low-power 16-bit microcontrollers for metering and smart grid applications. The low-cost MSP430AFE series is part of TI's leading embedded processing product line, pro
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号