Exam 2
Stuff you can use
You’ll be able to consult the Binary numbers reference and PIC24 reference tables, so don’t worry about having to remember a lot. Remember, that electronic devices, including calculators, are not allowed at the exam.
Topics covered
- Exam 1 topics
- Data representation — signed and unsigned
- Binary logic operations — NOT, AND, OR, NAND, NOR
- Combinational logic gates
- Flip-flops & memories
- Finite state machines
- Instruction encoding, as in Homework 6
- Addressing modes, as in Homework 6
- Arithmetic operator implementation (including shift and bitwise operators), as in Homework 6 & October 10 lab
- Array implementation, as in Homework 7 & October 3 lab
- Control flow implementation, as in Homework 7 & October 10 lab
Past exams to review
Look at the second exams from Fall 2012 and Fall 2010. Review Problems 5 and 6 in the Fall 2010 exam. Also, look at the assembly language implementation strategies presented in the following lectures. Be sure you understand how to implement the small examples used in those lectures.
- PIC and C operators
- PIC STATUS register
- Translating C to C: Control Structures for
if
andwhile
C vs Java
The selection statements and shift and bitwise operators of
C and Java have very few differences.
(205>>3)&0xF
is 9 in both Java and C.
Do not worry about differences between the two languages
for this exam.
Handy tables and reference sheets
Exams from this semester
Exams from Fall 2012
Exams from Fall 2010
Exams before Fall 2010
A different textbook was used before the Fall 2010 semester. With the exception of the first exam, these exams are not particular relevant to this semester.