{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

quiz3_fall2009_key

quiz3_fall2009_key - DELAY_5S LDX#1000 DELAY_1 LDY#40000...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 383 - Microcomputers Fall 2009 – Quiz 3 Solution Instructions: 1. Please write your name and student number in the upper right hand corner of the back of this sheet. 2. When you are finished answering the questions, fold the paper in half lengthwise with this side of the page to the inside of the fold. Problems: 1. What is the 7-segment LED patterns (Hexadecimal) of the following symbols a. “A” $77 b. “H” $76 c. “E” $79 d. “L” $38 e. “P” $73 f. “!” $86 2. Finish the following code for a 5s delay (assuming 24MHZ MCLK).
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: DELAY_5S: LDX #1000 DELAY_1: LDY #40000 DBNE Y, * DBNE X, DELAY_1 3. Finish the following code that can display data on the discrete LED. ORG $1000 DATA DC.B $F0 ORG $2000 MOVB #$FF , DDRB MOVB #%00000010 , DDRJ MOVB DATA , PORTB BCLR PORTJ , #%00000010 JSR DELAY_5s BSET PORTJ , #%00000010 4. Finish the following code that can test whether Key4 is pressed MOVB #$0F , DDRA BSET PORTA, #%00001111 BCLR PORTA, #%00000001 NOP BRSET PORTA, #%11110000 , * LDAA PORTA C M P A #$DE BNE KEY4_NOT_PRESSED...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern