Question
Write a program in C (note how the piezo buzzer is connected to the MSP430FG4618 on the hardwareschematic). that uses Timer B to play note
Write a program in C (note how the piezo buzzer is connected to the MSP430FG4618 on the hardwareschematic). that uses Timer B to play note G (783.99 Hz) at the piezo-buzzer. All LEDs are off at this instance. When SW1 is pressed, LED4 should blink at 1Hz frequency. Use WDT ISR for this operation (You would need to configure WDT interval inside Port1 ISR and only when SW1 is pressed). When SW1 is released, everything should be as it was before. As long as SW2 is pressed, the buzzer should play note D (587 Hz).Please check the schematic of the board which is available in CANVAS to see how the buzzer is connected. Also, review the operation of piezo buzzer from any material that you can find.Bonus (5 pts): Use Timer A ISR to alternately blink the Led 2 and Led 1 at 1Hz throughout the execution of the program.
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