microcontrollers:msp430fr5969_low_power_modes_and_interrupts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
microcontrollers:msp430fr5969_low_power_modes_and_interrupts [2024/10/30 19:27] – created ibchadmin | microcontrollers:msp430fr5969_low_power_modes_and_interrupts [2024/10/30 19:44] (current) – [Low Power Modes] ibchadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== MSP430FR5969 Low Power Modes and Interrupts ====== | ====== MSP430FR5969 Low Power Modes and Interrupts ====== | ||
+ | |||
+ | ===== Low Power Modes ===== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Low power modes can drastically reduce power consumption, | ||
+ | |||
+ | ==== LPMs in C ==== | ||
+ | |||
+ | * Use the following command to enter the x mode, where x = 0, | ||
+ | _bis_SR_register( GIE | LPMx_bits ); | ||
+ | bis = bit set | ||
+ | * To exit LPMx use the following command inside the Interrupt Service Routine ISR, where x = 0, | ||
+ | __bic_SR_register_on_exit(LPMx_bits ); | ||
+ | bic = bit clear | ||
+ | |||
+ | ==== Low Power Implementation Notes ==== | ||
+ | |||
+ | * Choose the appropriate LPM that suits your application. For example, if you use the SPI communication, | ||
+ | * To support low power design, configure all unused pins as an input with pull down resistor to prevent them from floating. | ||
+ | |||
+ | ===== Interrupts ===== | ||
+ | |||
+ | ==== Interrupt Priority ==== | ||
+ | |||
+ | {{ : | ||
+ | ==== Interrupt Implementation Notes ==== | ||
+ | |||
+ | * Be aware of the interrupts priorities for the MCU that you are working on. | ||
+ | * There are specific interruptible ports. Not all ports of the chip are interruptible. | ||
+ | |||
+ | **For port interrupts: | ||
+ | |||
+ | * If the interrupt will fire when the port status changed from Low to High, you should configure the port to be pulled down. | ||
+ | * If the interrupt will fire when the port status changed from high to low, you should configure the port to be pulled up. | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | * Interrupt : https:// | ||
+ | * Low-Power Optimization : https:// | ||
+ | |||
microcontrollers/msp430fr5969_low_power_modes_and_interrupts.1730316447.txt.gz · Last modified: 2024/10/30 19:27 by ibchadmin