Assembly ( Microcontrollers and Microprocessors class), please see the two pictu
ID: 3784861 • Letter: A
Question
Assembly ( Microcontrollers and Microprocessors class), please see the two pictures below and then help me answer the questions:
And here is how caculations expressions look like:
Questions:
Problem 1) Extend the nested loop above to a dual nested loop with three counters CINN, CMID, and COUT.
Probelm 2) Given your loop in Problem 1, what is the expression for the number of instruction cycles it takes to execute the timing loop.
Problem 3) Given an oscillator frequency of 10MHz, find appropriate values for CINN, CMID and COUT that would result in a delay of 1.0 seconds. The 1.0 second delay should have an error that does not exceed ± 1.0 % of the delay. (You can use trial and error method; however, error should not exceed 1%)
COUT CIN OUTER: INNER: NXT: equ d' 1 equ 0x20 equ 0x21 org 0x0100 movlw d' 10' movwf COUT d' 255 movlw movwf CIN decfsz CIN,F goto NXT decfsz COUT.F goto INNER destination- file reg. outer counter storage inner counter storage 5 program location start 1 1 1 1 1 (2) 1 (2) 2Explanation / Answer
article { @for $i from 1 through 4 { @for $j from 1 through 2 { $k: $i + $j - 1; &:nth-of-type(#{$k}) { &:after { content: "#{$k}: #{$i} - #{$j}"; } } } } }
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.