110 likes | 121 Views
Prepare for the ECE 3561 final exam with a review of binary number system, MSP430 architecture, code segments, subroutines, timing, digital I/O, and interrupts.
E N D
ECE 2560 Final Exam Review Department of Electrical and Computer Engineering The Ohio State University ECE 3561 - Lecture 1
Time • When???? • Friday December 12th – This Friday • 4:00pm to 5:45pm • Open book – Open Notes ECE 3561 - Lecture 1
On exam • All items from all lectures • Binary Number System • The MSP 430 architecture • The MSP 430 Instruction Set • Simple code segments • The sections of a program in Code Composer • Subroutines • Timing of instructions • Digital I/O • Interrupts and Interrupt Service Routines ECE 3561 - Lecture 1
Binary Number System • Base 2 to Base 10 conversion • Base 10 to Base 2 conversion • Adding, subtracting, and multiplying in base 2. ECE 3561 - Lecture 1
The MSP 430 architecture • The register set • Memory organization • ALU operations supported • Peripheral Devices • Ports and I/O ECE 3561 - Lecture 1
Code segments • Know how to show results from a few instructions • Given a specification of the task, write a code segment of a few instructions to complete it. • Know what “busy waiting” is. ECE 3561 - Lecture 1
Code Composer • Know how to “end” your program • Know how to specify data variables for your program. • Know how to set up and create and Interrupt service routine. ECE 3561 - Lecture 1
Subroutines • Know how to pass arguments to subroutines. • In registers, in data variables, on the stack • Know what side effects means and why subroutines should have no side effects. • Know what re-entrant means and the requirements for making a subroutine re-entrant. • Know how to pass arguments and results from subroutines on the stack. ECE 3561 - Lecture 1
Timing • Know how to use the reference material to determine the number of cycles required by instructions. • Know how to analyze a section of code for min and max execution time. ECE 3561 - Lecture 1
Digital I/O • Know what is supported on the MSP430 • Know how to set up ports for input and/or output, ie, how to configure a port. • Know which ports are configurable for interrupts and how to do it. • Know how to use the flags register of a port to check the status of a port using busy waiting. ECE 3561 - Lecture 1
Interrupts • Know what ISR are and how to set them up in Code Composer. • Know the sequence of actions that happen when servicing an interrupt. ECE 3561 - Lecture 1