CSCI 255 Intro to Embedded Systems
Homework #9
Fall 2013
Work must be done individually and show work!
Due: 11/6/2013 by beginning of class
Fill in the tables with the correct register & carrybit values in accordance with the code that gets
interrupted.
CSCI 255 Intro to Embedded Systems
Homework #1
Fall 2013
Due: 9/4/2013 at the beginning of class
SHOW YOUR WORK!
1. Convert the following decimal values to binary using an 8bit representation
a. 115
b. 45
c. 247
d. 97
2. Convert the following decimal val
CSCI 255 Intro to Embedded Systems
Homework #2
Fall 2013
Due: 9/9/2013 at the beginning of lab
SHOW YOUR WORK
1
Prove the following logical theorems using Boolean algebra:
a)
b)
c)
d)
2
X ( X + Y) = XY
X + XY = X
XY + XY = X
(A+B)(A+B) = A
Simplify the fo
CSCI 255 Intro to Embedded Systems
Homework #12
Fall 2013
Work must be done individually
Due: 11/20/2013 by 11:59PM to dvalles@mtech.edu
Part 1  Translate the following assembly to Cequivalent code. Make sure you have a main function
and header file in
CSCI 255 Intro to Embedded Systems
Homework #7
Fall 2013
Work must be done individually
Due: 10/16/2013 by beginning of class
For the following questions, code your answers on CCS and printout your code to hand it in. You may
want to try some of these on
CSCI 255 Intro to Embedded Systems
Homework #4
Fall 2013
Due: 9/20/2013 at the beginning of class
SHOW YOUR WORK
1
Derived Boolean expressions using Kmaps and draw the final logic circuit for each truth table:
a)
w
0
0
0
0
1
1
1
1
x
0
0
1
1
0
0
1
1
y
0
1
Number Systems and Conversions
Numbers!.is that right?
CSCI 255
D a m i a n
V a l l e s ,
P h D

C o m p u t e r
S c i e n c e
M o n t a n a
T e c h
Number Systems and Conversions
BASE10
What do we know and use all the time?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Digital Gates
Carpe Gates!.
& Diem Data
CSCI 255
http:/img.deusm.com/programmableplanet/2012/06/246072/173837_783569.gif
D a m i a n
V a l l e s ,
P h D

C o m p u t e r
S c i e n c e
M o n t a n a
T e c h
Digital Gates
Previous notes (and class), we ha
CSCI 255 Intro to Embedded Systems
Homework #11
Fall 2013
Due: 11/13/2013 at the beginning of class  Work must be done individually
1. Fillout the blanks of the table below corresponding to the register bank circuit below:
Prior
Cycle 1
Cycle 2
Cycle 3
Kmaps/SoP/PoS
Trust meits easier!
CSCI 255
http:/www2.elo.utfsm.
cl/~lsb/elo211/aplicacio
nes/katz/chapter2/chap
ter02.doc3.html
D a m i a n
V a l l e s ,
P h D

C o m p u t e r
S c i e n c e
M o n t a n a
T e c h
Kmaps/SoP/PoS
KMaps, short for: Karn
Bit Operations
One Bit at a Time.
said the first I.T. guy ever
CSCI 255
Apcast.com: javabasicsBitsBytesCensusMachine.jpg
D a m i a n
V a l l e s ,
P h D

C o m p u t e r
S c i e n c e
M o n t a n a
T e c h
Bit Operations
What is a bit (or logical) op
Introduction to Embedded
Intro to Embedded Systems
CSCI 255
D a m i a n
V a l l e s ,
P h D

C o m p u t e r
S c i e n c e
M o n t a n a
T e c h
Introduction to Embedded
What is an embedded system?
An electronic toy that makes other toys work
A more te
CSCI 255 Intro to Embedded Systems
Homework #3
Fall 2013
Due: 9/13/2013 at the beginning of class
SHOW YOUR WORK
1
Draw the equivalent circuit with only NAND Gates of the following circuits (do not simplify
them):
a)
b)
c)
2
Same as Problem 1 but with onl
Name: _
Quiz 9
In the following pieces of code, circle all the syntax mistakes if any and explain the error, or
indicate its correct:
1.
#include <msp430.h>
void main (void) cfw_
WDTCRTL = WDTPW+WDTHOLD;
P1DIR = 0x02;
unsigned int i = 0;
unsigned int j =
CSCI 255 Intro to Embedded Systems
Homework #6
Fall 2013
Work must be done individually
Due: 10/9/2013 by 11:59 PM to dvalles@mtech.edu
1  Develop an assembly program in which has the following sequence of outputs:
The RED LED (P1.0) blinks three times;
CSCI 255 Intro to Embedded Systems
Homework #13
Fall 2013
Work must be done individually
Due: 12/4/2013 by 11:59PM to dvalles@mtech.edu
Multistate system: Rapidtransit with three stations
Develop the Cprogram multistate system that controls the commut
CSCI 255 Intro to Embedded Systems
Homework #8
Fall 2013
Work must be done individually
Due: 10/23/2013 by beginning of class
1. Draw the Qoutput signal when analyzing the SRLatch inputs below: (Assume Q=0 @ t=0)
S
R
Q
2. Draw the Qoutput signal when a
From the circuit below complete the timing diagram, assume positive edge and Qs=0 at t=0
J
K
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
Present
State
(Q)
0
1
0
1
0
1
0
1
Next
State
(Q)
No
Change
Reset
Set
Toggle
D
0
0
1
1
Present
State
(Q)
0
1
0
1
Next
State
(Q)
0
1
CSCI 255 Intro to Embedded Systems
Homework #10
Fall 2013
Work must be done individually
Due: 11/8/2013 by 11:59PM to dvalles@mtech.edu
Program Lab 4 (Save the Islandagain) in C. Submit your program to email by due day and time. Make
sure that your progra
CSCI 255 Intro to Embedded Systems
Homework #5
Fall 2013
Due: 9/25/2013 at the beginning of class
SHOW YOUR WORK
1. Perform the following additions:
a)
b)
c)
d)
111101010 + 1010011
1110000100 + 1010001
1000101 + 110010 + 10001111
10001111 + 10101 + 111110