Question: Write a program for the MSP430g2553 using Code Composer Studio (not Energia) that flashes the Morse code pattern of a string with the Red LED(Port1

Write a program for the 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).

Write a program for the MSP430g2553 using Code Composer Studio (not Energia)

This would be appreciated, will rate for correct answer!!

.The length of a dot is one unit (1x) The length of a dot is one unit (1x) A dash is three units (3x) The space between a dot and a dash within a letter is one unit (x) The space between letters within a word is three units (3x) The space between words is seven units (7x)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!