3. Write a program to continuously turn all four green LEDs ON and OFF (toggle). There should be a one-second delay between each toggle.
A. Cut and paste the source code.
B. Show the delay calculation.
C. Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs.
4. 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.
A. Cut and paste the code.
B. Show the delay calculation.
C. Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs.
5. Use BSET and BCLR instructions to Turn LED2 ON and OFF continuously with a 0.5-second delay between each change.
A. Cut and paste the source code.
B. Show the delay calculation.
C. Run the program on the board by pressing the Reset button on the Tower. Describe the values of LEDs.
D. Change the delay to 1ms and run the program. Describe the values of LEDs.