Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Already have 1. Part 2: Variable Blinking LEDs Using Interrupts Create a C program that runs on the MSP430 that will blink LED1 (port 1

image text in transcribed
Already have 1.
image text in transcribed
Part 2: Variable Blinking LEDs Using Interrupts Create a C program that runs on the MSP430 that will blink LED1 (port 1 pin 0) at a rate of exactly 1 Hz (meaning one cycle per second). The LED should be on for a fraction x of the cycle and off for a fraction 1-x of the cycle. Select two values of x between and specify your choice 1. 2. Start with your program in part 2.1 and create a C program that runs on the MSP430 that will execute an interrupt subroutine in response to pushing button P1.1 and as a result increases the rate at which LEDI (port 1 pin 0) blinks. Your program should increase the rate at which LEDI blinks for 4 button presses. On the fifth button press the program should reset the LED1 blinlk rate to 1 Hz Lab Questions Use any of our documents (textbook, family user guide or datasheet) to answer the following questions. For each answer, state the document and the page number where you obtained your answer a) What does the term vectored interrupts mean? b) Locate the interrupt vector table. What is the vector address and priority number for port 1 (where c) d) the push button belongs) and for the watchdog timer? What are all the non-maskable interrupts for our microcontroller? What does bouncing mean? What is one way to address it? Deliverables Answers to lab questions 2.a-d uploaded to UTCLearn. A flowchart of your programs for parts 2.1 and 2.2 uploaded to UTCLearn Commented source code for parts 2.1 and 2.2 uploaded to UTCLearn. Analysis proving that your code in part 2.1 blinks the LED at the specified rates. This must involve a calculation including instruction cycle counts and your board's clock frequency Resources Required: TI MSP430FR6989 Launchpad and the IAR Embedded Workbench Integrated Design Environment MSP430 Microcontroller Basics by John Davies, Newnes, 2008. ISBN: 978-0-7506-8276-3 MSP430FRxx Family: User's Guide by Texas Instruments. Part 2: Variable Blinking LEDs Using Interrupts Create a C program that runs on the MSP430 that will blink LED1 (port 1 pin 0) at a rate of exactly 1 Hz (meaning one cycle per second). The LED should be on for a fraction x of the cycle and off for a fraction 1-x of the cycle. Select two values of x between and specify your choice 1. 2. Start with your program in part 2.1 and create a C program that runs on the MSP430 that will execute an interrupt subroutine in response to pushing button P1.1 and as a result increases the rate at which LEDI (port 1 pin 0) blinks. Your program should increase the rate at which LEDI blinks for 4 button presses. On the fifth button press the program should reset the LED1 blinlk rate to 1 Hz Lab Questions Use any of our documents (textbook, family user guide or datasheet) to answer the following questions. For each answer, state the document and the page number where you obtained your answer a) What does the term vectored interrupts mean? b) Locate the interrupt vector table. What is the vector address and priority number for port 1 (where c) d) the push button belongs) and for the watchdog timer? What are all the non-maskable interrupts for our microcontroller? What does bouncing mean? What is one way to address it? Deliverables Answers to lab questions 2.a-d uploaded to UTCLearn. A flowchart of your programs for parts 2.1 and 2.2 uploaded to UTCLearn Commented source code for parts 2.1 and 2.2 uploaded to UTCLearn. Analysis proving that your code in part 2.1 blinks the LED at the specified rates. This must involve a calculation including instruction cycle counts and your board's clock frequency Resources Required: TI MSP430FR6989 Launchpad and the IAR Embedded Workbench Integrated Design Environment MSP430 Microcontroller Basics by John Davies, Newnes, 2008. ISBN: 978-0-7506-8276-3 MSP430FRxx Family: User's Guide by Texas Instruments

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

1. Explain why evaluation is important.

Answered: 1 week ago