MSP430 DriverLib for MSP430FR5xx_6xx Devices  2.10.00.09
 All Data Structures Functions Variables Modules Pages
wdt_a

Functions

void WDT_A_hold (uint16_t baseAddress)
 Holds the Watchdog Timer. More...
 
void WDT_A_start (uint16_t baseAddress)
 Starts the Watchdog Timer. More...
 
void WDT_A_resetTimer (uint16_t baseAddress)
 Resets the timer counter of the Watchdog Timer. More...
 
void WDT_A_initWatchdogTimer (uint16_t baseAddress, uint8_t clockSelect, uint8_t clockDivider)
 Sets the clock source for the Watchdog Timer in watchdog mode. More...
 
void WDT_A_initIntervalTimer (uint16_t baseAddress, uint8_t clockSelect, uint8_t clockDivider)
 Sets the clock source for the Watchdog Timer in timer interval mode. More...
 

Detailed Description

Function Documentation

void WDT_A_hold ( uint16_t  baseAddress)

Holds the Watchdog Timer.

This function stops the watchdog timer from running, that way no interrupt or PUC is asserted.

Parameters
baseAddressis the base address of the WDT_A module.
Returns
None
void WDT_A_initIntervalTimer ( uint16_t  baseAddress,
uint8_t  clockSelect,
uint8_t  clockDivider 
)

Sets the clock source for the Watchdog Timer in timer interval mode.

This function sets the watchdog timer as timer interval mode, which will assert an interrupt without causing a PUC.

Parameters
baseAddressis the base address of the WDT_A module.
clockSelectis the clock source that the watchdog timer will use. Valid values are:
  • WDT_A_CLOCKSOURCE_SMCLK [Default]
  • WDT_A_CLOCKSOURCE_ACLK
  • WDT_A_CLOCKSOURCE_VLOCLK
  • WDT_A_CLOCKSOURCE_XCLK
    Modified bits are WDTSSEL of WDTCTL register.
clockDivideris the divider of the clock source, in turn setting the watchdog timer interval. Valid values are:
  • WDT_A_CLOCKDIVIDER_2G
  • WDT_A_CLOCKDIVIDER_128M
  • WDT_A_CLOCKDIVIDER_8192K
  • WDT_A_CLOCKDIVIDER_512K
  • WDT_A_CLOCKDIVIDER_32K [Default]
  • WDT_A_CLOCKDIVIDER_8192
  • WDT_A_CLOCKDIVIDER_512
  • WDT_A_CLOCKDIVIDER_64
    Modified bits are WDTIS and WDTHOLD of WDTCTL register.
Returns
None
void WDT_A_initWatchdogTimer ( uint16_t  baseAddress,
uint8_t  clockSelect,
uint8_t  clockDivider 
)

Sets the clock source for the Watchdog Timer in watchdog mode.

This function sets the watchdog timer in watchdog mode, which will cause a PUC when the timer overflows. When in the mode, a PUC can be avoided with a call to WDT_A_resetTimer() before the timer runs out.

Parameters
baseAddressis the base address of the WDT_A module.
clockSelectis the clock source that the watchdog timer will use. Valid values are:
  • WDT_A_CLOCKSOURCE_SMCLK [Default]
  • WDT_A_CLOCKSOURCE_ACLK
  • WDT_A_CLOCKSOURCE_VLOCLK
  • WDT_A_CLOCKSOURCE_XCLK
    Modified bits are WDTSSEL of WDTCTL register.
clockDivideris the divider of the clock source, in turn setting the watchdog timer interval. Valid values are:
  • WDT_A_CLOCKDIVIDER_2G
  • WDT_A_CLOCKDIVIDER_128M
  • WDT_A_CLOCKDIVIDER_8192K
  • WDT_A_CLOCKDIVIDER_512K
  • WDT_A_CLOCKDIVIDER_32K [Default]
  • WDT_A_CLOCKDIVIDER_8192
  • WDT_A_CLOCKDIVIDER_512
  • WDT_A_CLOCKDIVIDER_64
    Modified bits are WDTIS and WDTHOLD of WDTCTL register.
Returns
None
void WDT_A_resetTimer ( uint16_t  baseAddress)

Resets the timer counter of the Watchdog Timer.

This function resets the watchdog timer to 0x0000h.

Parameters
baseAddressis the base address of the WDT_A module.
Returns
None
void WDT_A_start ( uint16_t  baseAddress)

Starts the Watchdog Timer.

This function starts the watchdog timer functionality to start counting again.

Parameters
baseAddressis the base address of the WDT_A module.
Returns
None

Copyright 2015, Texas Instruments Incorporated