Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started