Questio n 4 Question TCO 8 The following program creates square wave pulses on

Questio n 4 question tco 8 the following program

This preview shows page 2 - 5 out of 5 pages.

Question 4. Question :(TCO 8) The following program creates square wave pulses on PB0. What is the duty cycle? ORG$8000-918936756MultipleChoice9True0-918936756MultipleChoice9-918936755MultipleChoice14False0-918936755MultipleChoice14
Background image
LDS#$4000 LDAA#$FFSTAADDRBBACKBSETPORTB,%00000001JSRDELAYJSRDELAYJSRDELAYBCLRPORTB,%00000001JSRDELAYBRABACKStudent Answer:33%66%75%25%Instructor Explanation:page 145, Course TextbookPoints Received:0 of 3 Comments:
Background image
Question 5.Question :(TCO 8) In the following program, fill in the missing instruction to toggle all of the bits in the PORTB.LDAA#$FFSTAADDRBOVER------------------STAAPORTBLDAA#$55STAAPORTBBRAOVER Instructor Explanation:pages146-148, Course TextbookPoints Received:0 of 3 Comments:-918936754MultipleChoice21False0-918936754MultipleChoice21-918936752MultipleChoice29False0-918936752MultipleChoice29
Background image
Question 6.Question :(TCO 8) There are eight switches connected to PORTC and eight LEDsconnected to PTJ. Write a program to monitor the switches continuously. Whenever the four leftmost switches are 1s, send $55 to PTJ.Student Answer:LDAA #$00 STAA DDRC LDAA #$FF STAA PTJ THERE LDAA PORTC ANDA #$F0 CMPA #$F0 BNE THERE LDAA #$55 STAA PTJ BRA THERE Instructor Explanation:pages 146-148, Course TextbookLDAA #$00STAA DDRCLDAA #$FFSTAA PTJTHERE LDAA PORTCANDA #$F0CMPA #$F0BNE THERELDAA #$55STAA PTJBRA THEREPoints Received:5 of 5 Comments:* Times are displayed in (GMT-07:00) Mountain Time (US & Canada)-918936751Essay4False0-918936751Essay4
Background image

You've reached the end of your free preview.

Want to read all 5 pages?

  • Fall '15
  • edwin
  • Electrical Engineering, Computer Engineering, Test, Final Exam, Final, Questions, Exam, HELP, Answers , DeVry, ECET, Complete, Student Answer, LDAA, BSET PORTB

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture