Details of this Paper

Week 4- ECET 330- Microprocessor. Devry University

Description

solution


Question

III. PROCEDURE;Set up the Tower Module and connect it to the PC. Read the Tower Tutorial in Doc Sharing.;2. 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.;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.

 

Paper#66563 | Written in 18-Jul-2015

Price : $27
SiteLock