Professional Documents
Culture Documents
Session 3: Nitk - Ece Department 29 OCT 2015
Session 3: Nitk - Ece Department 29 OCT 2015
Polling
Interrupts
Interrupt Registers
PxIE : Each bit enables (1) or disables (0) the interrupt for that
particular pin
Polling
Interrupts
Types of interrupts
Functions to control
globalMSP430 interrupts
__bis_SR_register_on_exit(x)
__bic_SR_register_on_exit(x)
(CPUOFF)
(SCG0+CPUOFF)
(SCG1+CPUOFF)
(SCG1+SCG0+CPUOFF)
(0x0008)
Ex :
__bic_SR_register_on_exit(LPM0_bits | GIE); //Exits LPM0
and disables
GIE upon
exit
MSP430 Timer_A
A 16-bit counter
TIMER A Registers