ECE 470 Quiz: ECE470 Oakland Quiz 2

27 views2 pages

Document Summary

Given a 25 mhz bus clock, provide a set of instructions to generate a time delay of 40 ms. Consider that pusha takes 2 cycles, pula 3 cycles, nop one cycle and dbne 3 cycles. Complete the assembly program below so that the state of the four rightmost bits on the dip switch is only displayed on the bits 6, 5, 4, and 3 of portb (the leds). The figure shows an example on the dragon12-light board: the number 1110 is shown on the bits 6, 5, 4, and 3 while the other leds are off. Lds # movb #, ddrb movb #sh, ddrh. ; contents of register a are written on portb. Given the following assembly code, specify the sp and the stack contents at the given times (right after the colored instruction has been executed). Sp and the stack contents (empty) are specified for the first instruction (lds #).

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents