Question: MSP430 2553 Texas Instruments Launch Pad. Requirement: Write a C program using Pointers to turn the red LED on and off if the switch SW2

MSP430 2553 Texas Instruments Launch Pad. Requirement: Write a C program using Pointers to turn the red LED on and off if the switch SW2 is press The CSS assembly codes for the requirement were achieved by: main: bic.b bis.b bic.b bis.b bis.b #0x01, #0x01, #0x08, #0x08, #0x08, &0x0021 &0x0022 &0x0022 &0x0021 &0x0027 ;P1.0 OUT0 LED OFF ;P1.0 DIR OUTPUT : PI . 3 DIR = INPUT ; P1.3 OUT 1 Pull-Up P1.3 REN 1 Resistor Enabled loop: &0x0021 &0x0020 bic.b #0x01, bit . b #0x08, jnz loop jmp LED_On P1.0 OUT0 LED OFF LED_On: bis.b #0x01, &0x0021 jmp loop P1.0 OUT 1 LED ON
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
