MSP430 DriverLib for MSP430F5xx_6xx Devices  2.91.13.01
sfr

Functions

void SFR_enableInterrupt (uint8_t interruptMask)
 Enables selected SFR interrupt sources. More...
 
void SFR_disableInterrupt (uint8_t interruptMask)
 Disables selected SFR interrupt sources. More...
 
uint8_t SFR_getInterruptStatus (uint8_t interruptFlagMask)
 Returns the status of the selected SFR interrupt flags. More...
 
void SFR_clearInterrupt (uint8_t interruptFlagMask)
 Clears the selected SFR interrupt flags. More...
 
void SFR_setResetPinPullResistor (uint16_t pullResistorSetup)
 Sets the pull-up/down resistor on the ~RST/NMI pin. More...
 
void SFR_setNMIEdge (uint16_t edgeDirection)
 Sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if NMI function is active. More...
 
void SFR_setResetNMIPinFunction (uint8_t resetPinFunction)
 Sets the function of the ~RST/NMI pin. More...
 

Detailed Description

Function Documentation

§ SFR_clearInterrupt()

void SFR_clearInterrupt ( uint8_t  interruptFlagMask)

Clears the selected SFR interrupt flags.

This function clears the status of the selected SFR interrupt flags.

Parameters
interruptFlagMaskis the bit mask of interrupt flags that should be cleared Mask value is the logical OR of any of the following:
  • SFR_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt enable
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt enable
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt enable, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt enable
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt enable
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt enable
  • SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT - Flash controller access violation interrupt enable
Returns
None

§ SFR_disableInterrupt()

void SFR_disableInterrupt ( uint8_t  interruptMask)

Disables selected SFR interrupt sources.

This function disables the selected SFR interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.

Parameters
interruptMaskis the bit mask of interrupts that will be disabled. Mask value is the logical OR of any of the following:
  • SFR_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt enable
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt enable
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt enable, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt enable
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt enable
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt enable
  • SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT - Flash controller access violation interrupt enable
Returns
None

§ SFR_enableInterrupt()

void SFR_enableInterrupt ( uint8_t  interruptMask)

Enables selected SFR interrupt sources.

This function enables the selected SFR interrupt sources. Only the sources that are enabled can be reflected to the processor interrupt; disabled sources have no effect on the processor.

Parameters
interruptMaskis the bit mask of interrupts that will be enabled. Mask value is the logical OR of any of the following:
  • SFR_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt enable
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt enable
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt enable, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt enable
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt enable
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt enable
  • SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT - Flash controller access violation interrupt enable
Returns
None

§ SFR_getInterruptStatus()

uint8_t SFR_getInterruptStatus ( uint8_t  interruptFlagMask)

Returns the status of the selected SFR interrupt flags.

This function returns the status of the selected SFR interrupt flags in a bit mask format matching that passed into the interruptFlagMask parameter.

Parameters
interruptFlagMaskis the bit mask of interrupt flags that the status of should be returned. Mask value is the logical OR of any of the following:
  • SFR_JTAG_OUTBOX_INTERRUPT - JTAG outbox interrupt enable
  • SFR_JTAG_INBOX_INTERRUPT - JTAG inbox interrupt enable
  • SFR_NMI_PIN_INTERRUPT - NMI pin interrupt enable, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT - Vacant memory access interrupt enable
  • SFR_OSCILLATOR_FAULT_INTERRUPT - Oscillator fault interrupt enable
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT - Watchdog interval timer interrupt enable
  • SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT - Flash controller access violation interrupt enable
Returns
Logical OR of any of the following:
  • SFR_JTAG_OUTBOX_INTERRUPT JTAG outbox interrupt enable
  • SFR_JTAG_INBOX_INTERRUPT JTAG inbox interrupt enable
  • SFR_NMI_PIN_INTERRUPT NMI pin interrupt enable, if NMI function is chosen
  • SFR_VACANT_MEMORY_ACCESS_INTERRUPT Vacant memory access interrupt enable
  • SFR_OSCILLATOR_FAULT_INTERRUPT Oscillator fault interrupt enable
  • SFR_WATCHDOG_INTERVAL_TIMER_INTERRUPT Watchdog interval timer interrupt enable
  • SFR_FLASH_CONTROLLER_ACCESS_VIOLATION_INTERRUPT Flash controller access violation interrupt enable
    indicating the status of the masked interrupts

§ SFR_setNMIEdge()

void SFR_setNMIEdge ( uint16_t  edgeDirection)

Sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if NMI function is active.

This function sets the edge direction that will assert an NMI from a signal on the ~RST/NMI pin if the NMI function is active. To activate the NMI function of the ~RST/NMI use the SFR_setResetNMIPinFunction() passing SFR_RESETPINFUNC_NMI into the resetPinFunction parameter.

Parameters
edgeDirectionis the direction that the signal on the ~RST/NMI pin should go to signal an interrupt, if enabled. Valid values are:
  • SFR_NMI_RISINGEDGE [Default]
  • SFR_NMI_FALLINGEDGE
    Modified bits are SYSNMIIES of SFRRPCR register.
Returns
None

§ SFR_setResetNMIPinFunction()

void SFR_setResetNMIPinFunction ( uint8_t  resetPinFunction)

Sets the function of the ~RST/NMI pin.

This function sets the functionality of the ~RST/NMI pin, whether in reset mode which will assert a reset if a low signal is observed on that pin, or an NMI which will assert an interrupt from an edge of the signal dependent on the setting of the edgeDirection parameter in SFR_setNMIEdge().

Parameters
resetPinFunctionis the function that the ~RST/NMI pin should take on. Valid values are:
  • SFR_RESETPINFUNC_RESET [Default]
  • SFR_RESETPINFUNC_NMI
    Modified bits are SYSNMI of SFRRPCR register.
Returns
None

§ SFR_setResetPinPullResistor()

void SFR_setResetPinPullResistor ( uint16_t  pullResistorSetup)

Sets the pull-up/down resistor on the ~RST/NMI pin.

This function sets the pull-up/down resistors on the ~RST/NMI pin to the settings from the pullResistorSetup parameter.

Parameters
pullResistorSetupis the selection of how the pull-up/down resistor on the ~RST/NMI pin should be setup or disabled. Valid values are:
  • SFR_RESISTORDISABLE
  • SFR_RESISTORENABLE_PULLUP [Default]
  • SFR_RESISTORENABLE_PULLDOWN
    Modified bits are SYSRSTUP of SFRRPCR register.
Returns
None

Copyright 2020, Texas Instruments Incorporated