USING CODE WARRIOR-HCS12G- MC9S12G128-OPEN-SOURCE BDM Write a program to continu
ID: 2989316 • Letter: U
Question
USING CODE WARRIOR-HCS12G- MC9S12G128-OPEN-SOURCE BDM
Write a program to continuously turn all four green LEDs ON and OFF (toggle). There should be a one-second delay between each toggle.
Cut and paste the source code.
Show the delay calculation.
Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs.
Write a program that displays values from 0 to 15 sequentially, with a 0.75-second delay in between each display. After the count value reaches 15 (i.e. all LEDs are ON), the program should stop.
Cut and paste the code.
Show the delay calculation.
Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs.
Use BSET and BCLR instructions to Turn LED2 ON and OFF continuously with a 0.5-second delay between each change.
PLEASE MAKE SURE IT COMPILES. NO LINKS!
YOU CAN USE THE SAME SKELETON CODE FOR ALL THREE SECTIONS
THANKS
Cut and paste the source code.
Show the delay calculation.
Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs.
Change the delay to 1ms and run the program
Explanation / Answer
done
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.