Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/MSP430F5529: Beginner project with MSP micro controller.

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

Hi, as the title says I'm a beginner on tinkering with micro-controllers, and need some help with a project of mine.

I use the MSP430F5529 board and the latest version of driverlib.

What I want my project to do is: When you push Button1 it starts a timer of 5s and blinks LED1(red) with a frequency of 5Hz. While that timer is running I want to make an interrupt that will be triggered when a different Button2 is pressed and it stops LED1 and turns on LED2(green) w/o blinking . If Button2 is not pressed in this time period meaning the timer will run out, LED1 will turn on.

I've already made an interrupt for when Button1 is pressed to trigger the Timer and start blinking LED1(red).

What I want to know is:

1) How can I make LED1 not blink and just stay on after the 5s period.

2)If my settings for the timer and interrupts are right, and if not how to fix them.

3)How to make the interrupt of Button2 to trigger LED2(green).

P.S. My code for some reason makes LED2 to turn on when I run the debug.

P. P. S Sorry in advance if this isn't the exact forum to ask for these type of questions, but I'm all out of steam at this moment. 

code: https://pastebin.com/HBQnWXFZ


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>