Write a program to turn led4 and led1 on led2 and led3 must


1. Write a program to turn LED4 and LED1 ON. LED2 and LED3 must be OFF.

A. Cut and paste the source code.

B. Single step the code. After executing the line that sends the pattern to PTT, cut and paste the Memory Window showing the value of PTT. The Memory Address of PTT is $270. Right-click on Memory Window and select address. Type 270 in the address field.

2. 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.

3. 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.

4. 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.

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: Write a program to turn led4 and led1 on led2 and led3 must
Reference No:- TGS01085542

Expected delivery within 24 Hours