This course will introduce you to the MSP430 and embedded software in general. You will also learn how to implement a basic task scheduler. From setting up ports and registers, to more advanced subjects like callback functions, structs, and timers, you will learn how to program an MSP430 to do precisely timed tasking in a fairly simple manner.
Advantages of using the MSP430.
There are many advantageous applications for the MSP430 given it's low power nature.
Outline of the sections in this course.
Disable the watchdog timer as it will not be used in this course.
Set IO port to output so we can use it to control LED.
Use the IO port to turn on the on-board LED.
Enable the correct bits in the Timer_A control register.
Use capture and compare register to get the correct timing.
Now that we have our timer set up, toggle the LED in the timer interrupt.
Use functions to make code cleaner.
Create a function to toggle the LED. This makes the code a lot more readable.
Learn the recommended coding structure for the MSP430.
We need more LEDs! Let's set up a few on a breadboard connected to IO pins on the launchpad.
Learn about how structs can be used to make our own user defined data types.
Use the struct we created in the last section to set up timing for a task.
Learn about where callback functions can be used.
How memory addresses and pointers are important when using callback functions.
Make some cool LED blink functions that will be used to test our task scheduler.
Make a function to easily create a task that has a function and timing in seconds.
The final step! Implement our scheduling execution and test it out.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.