ECE 331 Spring 2009
Homework 2
Due Friday Jan 30 at the beginning of class. Show all your work and please try to be neat. 1. Complete the following exercise for the expression F = (A+B+C) (A+B+C) (A+B+C) (A+B+C) (A+B+C) a. Write the PoS expression using P
ECE 331
Preparation Exercise 7
Note: You are required to use the Prep Submission Cover Page posted on D2L.
Please refer to Module 5.1-5.3 course notes to answer the following questions.
1. Two programming elements that allow a sequential program to achiev
ECE 331 Spring 2010
Homework 1
Due Wednesday Jan 20 at the beginning of class.
These problems must be done by hand, without the use of a conversion program or
calculator. Please show as much of your work as necessary to demonstrate that you have
worked th
ECE 331 Microprocessors and Digital Systems http:/angel.msu.edu/ Instructor: Prof. NIHAR R. MAHAPATRA Solutions to Homework 3
Instructions: Solve the following end-of-chapter problems from the Microcontroller Theory and Applications: HC12 and S12 (second
ECE 331 Microprocessors and Digital Systems http:/angel.msu.edu/ Instructor: Prof. NIHAR R. MAHAPATRA Solutions to Homework 2
Instructions: Solve the following end-of-chapter problems from the Microcontroller Theory and Applications: HC12 and S12 (second
ECE 331 Microprocessors and Digital Systems http:/angel.msu.edu/ Instructor: Prof. NIHAR R. MAHAPATRA Solutions to Homework 1
Instructions: Solve the following problems. Points for each problem are indicated in square brackets next to the problem number.
ECE 331
Preparation Exercise 4 Solutions
Please refer to Module 4.1 and 4.2 course notes to answer the following questions.
1. Briefly describe Assembly Language
A language that assigns a memorable mnemonic (name) to each machine op-code and allows
progra
ECE 331
Preparation Exercise 2
Note: You are required to use the Prep Submission Cover Page posted on D2L.
Please refer to Module 2 course notes to answer questions 3-10.
1. An 8-bit register contains the binary value 2_1001.1100 where the 0th bit (least
ECE 331
Preparation Exercise 1
Note: You are required to use the Prep Submission Cover Page posted on D2L.
About Preparation Assignments:
The problems/questions in Preparation Exercises (Preps) are designed to help you practice concepts
and skills recentl
ECE 331
Preparation Exercise 2 Solutions
Please refer to Module 2 course notes to answer questions 3-10.
1. An 8-bit register contains the binary value 2_1001.1100 where the 0th bit (least significant)
is 0 and the 7th bit (most significant) is 1. Note th
ECE 331
Preparation Exercise 7 Solutions
Please refer to Module 5.1-5.3 course notes to answer the following questions.
1. Two programming elements that allow a sequential program to achieve non-sequential operation
(like conditional operation or looping)
ECE 331 Microprocessors and Digital Systems http:/angel.msu.edu/ Instructor: Prof. NIHAR R. MAHAPATRA Solutions to Homework 6
Instructions: Solve the following end-of-chapter problems from the Microcontroller Theory and Applications: HC12 and S12 (second
ECE 331 Microprocessors and Digital Systems http:/angel.msu.edu/ Instructor: Prof. NIHAR R. MAHAPATRA Solutions to Homework 4
Instructions: Solve the following end-of-chapter problems from the Microcontroller Theory and Applications: HC12 and S12 (second
ECE 331 Spring 2014
Homework 7
Due Friday Feb 21 at the beginning of class.
1. Answer the following questions about ARM assembly instruction operands.
a) What is the destination register (where result is stored) for the instruction:
AND R3, R4, #1001y
b)
ECE 331 Spring 2014
Homework 2
Due Friday Jan 17. Turn in at the beginning of class.
These problems must be done by hand, without the use of a conversion program or
calculator. Please show as much of your work as necessary to demonstrate that you have
wor
ECE 331 Spring 2014
1
Homework 6
H
Due Monday Feb 17 at the be
1
eginning of class.
hitecture of ARM Corte M that in
ex
ncludes the following c
components
s:
1. Sketch the arch
Proc
cessor core, RAM, ROM, I/O ports Data bus Instructio bus
s,
s,
on
Answ
we
ECE 331 Spring 2014
1
Homework 6
H
Due Monday Feb 17 at the be
1
eginning of class.
hitecture of ARM Corte M that in
ex
ncludes the following c
components
s:
1. Sketch the arch
Proc
cessor core, RAM, ROM, I/O ports Data bus Instructio bus
s,
s,
on
ermine
ECE 331 Spring 2014
Homework 5 -solution
Due Friday Feb 7 by the beginning of class.
Problem 1
Design an input pin interface that will function as an assertion-high, logic OR operation of 4 pushbutton switches. Design the interface so that it will never c
ECE 331 Spring 2014
Homework 5
Due Friday Feb 7 by the beginning of class.
Problem 1
Design an input pin interface that will function as an assertion-high, logic OR operation
of 4 push-button switches. Design the interface so that it will never consume mo
ECE 331 Spring 2014
1
Homework 4 -solution
H
n
Due Frid Jan 31 by the beginning of class.
day
Problem 1
m
Sketch a diagram of compone
o
ents and co
onnections o basic com
of
mputer architecture. B
Be
sure to include the CPU, mem
mory, I/O de
evices, and b
ECE 331 Spring 2014
1
Homework 3 -Solution
H
ns
m
Problem 1
List the four main condition co flags an describe what infor
f
c
ode
nd
e
rmation they represent
y
t.
ry
C = Carr flag
Z = Zero flag
N = Neg
gative flag
V = Ove
erflow flag
equal to the carry o b
ECE 331 Spring 2014
Homework 3
Due Friday Jan 24 by the beginning of class.
Problem 1
List the four main condition code flags and describe what information they
represent.
2.14.1.Theconditioncodeflags
TheN,Z,C,andVbitsaretheconditioncodeflags.Youcansetthe
ECE 331 Spring 2014
Homework 7 -Solution
Due Friday Feb 21 at the beginning of class.
1. Answer the following questions about ARM assembly instruction operands.
a) What is the destination register (where result is stored) for the instruction:
AND R3, R4,