Question: In this project you will develop a program for the FRDM-KL46z board that uses the on-board Green LED to flash an arbitrary message in Morse

In this project you will develop a program for the FRDM-KL46z board that uses the on-board Green LED to flash an arbitrary message in Morse Code. This is an individual assignment, and should not be completed in groups. There are two terminologies in Morse code, dot and dash, which are used to represent the letters of the alphabet. For a "dot", the LED should be on for 250 milliseconds and for a "dash", the LED should be on for 750 milliseconds. The LED must be off between any two symbols (dot or dash) for 250 milliseconds. Between two letters, there should be a delay of 750 milliseconds while between two words there should be a delay of 1000 milliseconds. For example, suppose we are given a string: AB CD". The delays between A and B characters and, C and D characters should 750 milliseconds whereas the delay between B and C should be 1000 milliseconds. For terminating the string, you can consider a dot (" ") as the last symbol. In main, your code must call a function with the following prototype: void displayMorse (char *message, int length); Followed by an infinite loop, so that the function only runs once after reset. The displayMorse function will flash the morse code of the string found in the message character array. In this project you will develop a program for the FRDM-KL46z board that uses the on-board Green LED to flash an arbitrary message in Morse Code. This is an individual assignment, and should not be completed in groups. There are two terminologies in Morse code, dot and dash, which are used to represent the letters of the alphabet. For a "dot", the LED should be on for 250 milliseconds and for a "dash", the LED should be on for 750 milliseconds. The LED must be off between any two symbols (dot or dash) for 250 milliseconds. Between two letters, there should be a delay of 750 milliseconds while between two words there should be a delay of 1000 milliseconds. For example, suppose we are given a string: AB CD". The delays between A and B characters and, C and D characters should 750 milliseconds whereas the delay between B and C should be 1000 milliseconds. For terminating the string, you can consider a dot (" ") as the last symbol. In main, your code must call a function with the following prototype: void displayMorse (char *message, int length); Followed by an infinite loop, so that the function only runs once after reset. The displayMorse function will flash the morse code of the string found in the message character array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
