CE-320 (Fall 2013)
- Fixed the answers of 6.m in Exercise 3.
- Welcome to CE-320!
The schedule is subject to change without notice.
This course covers the fundamentals of the very important field of microcomputers. Microcomputers are found in devices from microwave ovens to desktop computers. This class will cover topics of machine language, structured assembly programming, subroutines, interrupts, and basic C programming. An understanding of microcomputers is necessary to debug current systems, develop specifications for new chips, and use any already available microcomputer in our circuit designs. Although the concepts covered apply to an extremely large number of different microcomputers, we will primarily use the HCS12/9S12 as the focus for examples.
- Introduction to the HCS12 Microcontroller
- Introduction to CE-320
- Number systems
- Introduction to Microcomputers
- Introduction to HCS12/9S12
- HCS12 Assembly Programming
- Addressing Modes
- Assembly Programming
- Arithmetic Instructions
- Comparison Branches
- Assembly Examples
- Advanced Arithmetic Instructions
- Boolean Logic Instructions
- Bit-wise Instructions
- HW/SW Development Tools for HCS12
- Advanced Assembly Programming
- Parameter Passing
- Subroutine, Parameter Passing, and Stack
- Input and Output Devices
- Input and Output
- C Language Programming
- Introduction to C
- Functions and Program Structure
- C Programming in Embedded Systems
- Using Assembly Subroutines in C
- Interrupts, Clock Generation
- Fundamental Concepts of Interrupts
- Interrupt Devices
- Interrupts in C
The HCS12/9S12: An Introduction to Software and Hardware Interfacing, Huang (2nd Edition) ISBN-10: 1435427424 ISBN-13: 9781435427426
Dr. Jaerock Kwon Email: jkwon (at) kettering.edu Office: 2-703 K Phone: (810) 762-9500 ext. 5917 Twitter: @jaerock_ece facebook: jaerock.ece
Class: MWF 11:20am-12:20pm Office Hours: MW 1:20pm-2:20pm or by appointment
All grades will be posted in Blackboard under the lecture class (including lab grades).
- Pop quizzes: 10%
- 4 Main quizzes: 5% each = 20%
- Midterm exam: 20%
- Final exam: 30%
- Labs (CE-320L): 20%
The Midterm grade will be calculated by Midterm exam 30% + Pop quizzes 20% + Main quizzes 30% + Labs 20%.
Students take the full responsibility for exercises. Each exercise is released as two files: one that just contains problems and the other with both problems and answers. It is strongly recommended that you attempt to complete the problems without looking at the answers first.
All pop quizzes are taken at the end of class. Each quiz is based primarily on the corresponding lecture materials. These quizzes will be approximately 10 minutes and will be taken. Open books and notes. No calculators are allowed.
All main quizzes are taken at the beginning of class. Each quiz is based primarily on the corresponding homework assignment and the related lectures and reading assignments, although the topics covered in the course typically require an understanding of the preceding material and a few questions from previous quizzes should be expected. These quizzes will be approximately 15 ~ 30 minutes and will be taken with no aids, (calculators, books, notes, crib sheets, etc.) unless explicitly stated.
There will be a midterm exam tentatively scheduled for the during of Week 6 and a final exam. The only aid allowed on the exams will be a copy of the S12 instruction set supplied by the instructor.
The following describes what is expected of a student who wishes to do well in the course.
- Attend class regularly and inform the instructor in advance if you must miss a lecture.
- Spend a minimum of 2 to 2.5 hours per hour of lecture on course activities outside the classroom. These activities include reading the textbook, reviewing lecture notes, completing homework assignments, reviewing the course objectives, seeking help with the instructor, etc.
- Begin working on the homework shortly after it is released. This will enable you to better understand the following lectures and class discussions.
- Monitor your progress in the course through Blackboard.
- Ask the instructor if you have questions about anything (lecture material, homework questions, your performance in the course, etc.). It is your responsibility to seek help from the instructor when you do not yet feel you fully understand a topic.
The following is a list of responsibilities that you may expect from the instructor.
- Provide lectures that reach as broad a range of learning styles as is feasible within the constraints of the amount of material that must be covered and the time available for lectures.
- Be available outside of class for explanations and answers tailored to individual students.
- Make the student aware of the learning objectives and provide assignments that both teach basic use and application of the objectives.
There will be a separate syllabus for the lab portion distributed in lab.
Common Statement on Students with Documented Disabilities
The University will make reasonable accommodations for persons with documented disabilities. Students need to register with the Wellness Center every term they are enrolled in classes. To be assured of having services when they are needed, students should contact the Wellness Center during the first week of each term. Note that it is the student’s responsibility to arrange accommodations with each professor.
- http://www.kettering.edu/studentlife/docs/student_handbook.pdf (page 26)
- http://www.kettering.edu/registrar/docs/2011-12UndergraduateCatalog.pdf (page 46)
Common Statement on Ethics in the University and Academic Integrity
Kettering University values academic honesty and integrity. Cheating, collusion, misconduct, fabrication, and plagiarism are serious offenses. Each student has a responsibility to understand, accept, and comply with the University’s standards of academic conduct as set forth in our statement, “Ethics in the University,” and “Academic Integrity” as well as policies established by individual professors.
- http://www.kettering.edu/studentlife/docs/student_handbook.pdf (pages 40-42)
- http://www.kettering.edu/registrar/docs/2011-12UndergraduateCatalog.pdf (page 26)
- HCS12 Instruction Set
- Special Edition of the CodeWarrior for HCS12
- HCS12 CPU Reference guide
- HCS12 Reference Manual (more detail)
- S12 Instruction – CCR
- HC12 Assembler (This can be used to study HCS12 assembly language as well)
- HCS12 Assembly Programming (Directives & Instructions)
- Addition and Subtraction of Hexadecimal Numbers
- Essential C from Stanford CS
- C Crash Course from McGill University (C1.ppt, C2.ppt, C3.ppt)