ECE 251 Hw #2 Solution
2.1. Valid labels:
ABC
too
not_true
Invalid labels:
lp+
; + is illegal character
star+=
; += are illegal
too_big ; start at column 2
2.5.
org
fcc
$2050
welcome to the robot demonstration!
2.10. ; assume the array contains N 8-bit si
ECE 251 HW1 solutions
1. Consider the following numbers as signed. Find their equivalent
representations:
a. 10110112 = 1338 = 5B16 = -3710(or 9110)
b. B816
= 101110002 = -7210
c. 101110102 = 2728
d. 25410
= FE16 = 111111102
e. $5E
= 010111102
f. $D9
= -3
ECE 251 HW3 SOLUTIONS
Points allocated: Total 25
E4.1 5 points
E4.4 10 points
E4.11 10 points
E4.1 Solution: The stack frame after the execution of these four instructions is as follows:
$AAFB
$00
$00
$01
$01
E4.4 The stack frame for this problem is as fo
ECE 251 Homework #4 Solutions
Total Marks - 25
Q 6.4 - 5
Q 6.8 10
Q 6.11 - 5
Q 7.5 5
E6.4. Other interrupts can be enabled by clearing the I flag in the CCR register and also setting their
enable flags.
E6.8.
The first nine instructions are 18-byte long (
ECE251 Homework #5
Total points= 30
Q1. (10 points) The following are the steps to measure the phase difference of two signals connected to
pins PT2 and PT5 having the same frequency:
1. The general formula to find the phase difference is = (T / T)*360.
2