Question
Write a program for the TI microcontroller MSP430g2553 using Code Composer Studio (not Energia) that flashes the Morse code pattern of a string with the
Write a program for the TI microcontroller MSP430g2553 using Code Composer Studio (not Energia) that flashes the Morse code pattern of a string with the Red LED(Port1 Pin 0(0x01)). To show a Morse letter on the MSP430, the red LED blinks for a short duration to represent a dot, or for a long duration to represent a dash.
The code should work for any string, it should discover the size of the string and flash all the words, and the only change to the code to make it flash a different message is by putting a new message between the quotes >>>>>>>>>>>>>>>>> char str[] = "Message";
The code must flash the message in an infinite loop, and a hint that was given was that you can store all the dot-dash patterns in a 2D array, where it has 36 rows(26 letters and 0-9 digits).
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