Nbspuse the watchdog in its default position must be petted


Detailed Question: By the way, i did the code but im not sure ow to generate 1hz.

1-Write a program that does the following:
• Use the watchdog in its default position (must be petted in less than 32 ms).
• Generate a 275 Hz, 50% duty cycle on P9.7. Use a timer with the SMCLK.
• Generate a 1 Hz, 66% duty cycle on P1.0.

2- Write a program that does the following:
• Use the watchdog in its default position (must be petted in less than 32 ms).
• Generate a 275 Hz, 50% duty cycle on P9.7. Use a timer with the SMCLK.
• When the P1.2 button is not pushed, generate a 1 Hz, 66% duty cycle on P1.0.
• When the P1.2 button is pushed (and held pushed), the 1 Hz signal will change to a 25% duty cycle on P1.0.
• When the P1.2 button is released, the 1 Hz signal will change back to a 66% duty cycle on P1.0.

 

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Nbspuse the watchdog in its default position must be petted
Reference No:- TGS01351920

Expected delivery within 24 Hours