CMPE423 Embedded System Design

2019-2020 Fall  Course Outline

Instructor:  Assoc. Prof. Dr. Mehmet Bodur  Office: CMPE 107 Office Tel: 0392 630 2841 


- 01-01-2020-  Exercise for Final Exam (PDF), Final exam is on January-7.

- 19-12-2019-  Who is Fast (LCD)Appl. 9 (PDF)

- 16-12-2019 - Quiz-2 is on Dec.19 2nd Lecture Hour. Return the related HW (PDF) before the quiz time. PopQuiz-3 grades (PDF)

- 12-12-2019 Team Project (PDF) 
 ...  Project Delivery Schedule (TXT)

- 5-12-2019  7_LCD application (PDF).
...  8_ADC application (PDF)
...  Project Teams (TXT)

- 26-11-2019 6_UART application (PDF).
- 14-11-2019  Info-sheet for Midterm (PDF). These two pages are going to be available on your midterm paper.

- 31-10-2019 5_Interrupts (PDF) 
... Homework for Midterm on 18.11.2019 (Monday) (PDF) You shall return the solution at the beginning of the Midterm Exam.  Late homeworks are graded over 50%.

- 31-10-2019 Homework for First Quiz on 7.11.2019 (Thursday)  (PDF)  You shall return the solution at the beginning of the lecture hour on Thursday. Late homeworks are graded over 50%.

28 -10-2019 Preliminary Project (PDF)  This is not a homework/project

 ... Individual Timer Project (PDF)  You shall return this preliminary report at the beginning of the lecture hour on Thursday before the quiz. Late reports are graded over 50%.

 ... Individual UltraSound Project (PDF)  You shall return this preliminary report at the beginning of the midterm. Late reports are graded over 50%.

- 24 -10-2019 4_Timing by Timer (PDF)

- 21-10-2019 3_Timing by instructions (PDF)

- 17-10-2019 2_Serial (PDF)

- 30.09.2019 LED indicator  (PDF)
 ... 2_Digital Inputs (PDF)
 ...  Soft-Serial-Port (PDF) 

-20.09.19 Prelimineries (PDF) 
... 2017 Embedded Market Study (PDF)

Course Description.

The objective of the course is to introduce the concept of Harvard + RISC architecture microcontrollers and design of embedded computing systems on typical applications including interrupts, timers, LCD and LED displays, keypads, a/d converters, rotary coders, stepper motors, serial and parallel communication interfacing. The design applications are introduced on a very widely used typical 16-bit embedded microcontroller unit, PIC18F452. The scope of the course is the simple, distinct PIC18F452 embedded system design with the applications in C and RISC assembly programming. The design/theory scale of the course is around 60/40.

Textbook: (PDF1)(PDF2)
i) Course Notes by Dr. Bodur,
ii) Ibrahim, Dogan, Advanced PIC microcontroller projects in C: from USB to RTOS with the PIC18F series, Newnes, Elsevier, 2008.

Topics Covered and Class Schedule

W1 Introduction to Embedded Microcontroller Architecture
W2 Embedded Microcontroller Architecture, Instruction Set, and programming in C
W3 Configuration of ports and pins for input and output, LEDs and switches.
W4 Instruction counting for precise timing
W5 Configuration of Timer unit
W6 Using timer in C coding (First Quiz)
W7 Using interrupts with Timers and switches, 7.11.2018
W8 UART configuration and initialization. (Midterm Exam)
W9 Using UART in applications, and Embedded Design Project Specification and Life Cycle. Analog to Digital Conversion, 
W10 LCD Module interfacing with FSM application, and UART with interrupts,
W11 Student Design Project Organization and  Discussions,
W12 ADC configuration and application using an FSM. (quiz-2)
W13 ADC oven application, Multi-processor systems,  Student Prototype Project Discussions, (Final)

Laboratory Schedule:

1 W3 (11-10-2019) Installation of CC8E compiler, and LED Status Indicator Simulation
2 W4 (18-10-2019) Detecting status and change of status of input ports
3 W5 (25-10-2019) Timing by counting executed instructions
4 W6 (01-11-2019) Timer unit (Timer0) and
5 W7 (8-11-2019) Interrupts in Embedded Systems
6 W10 (29-11-2019) ADC Applications,
7 W11 (06-12-2019) LCD Applications, 
8 W12 (13-12-2019) team projects
9 W13 (20-12-2019) team projects
10 W14 (27-12-2019) team projects

CC8E-download  (use latest version of student edition, and documentation)
Simulator P1 P2 P3 P4 P5 P6 P7 P8 P9 P10 (put all in a folder and extract using B1)
PicKit2 SW (zip) 
Clone Serial Port Driver (zip)

Course Learning Outcomes (Supported Program Outcomes)
Upon successful completion of the course, students are expected to have the following competencies 

Course Learning Outcomes

Upon successful completion of the course, students are expected to have the following competencies

  1. Write simple small C-code segments for a microcontroller such as Microchip PIC18 family (1).
  2. Know the structure of a timer unit, and use it in simple C coded programs for various timing tasks (1).
  3. Use switches, LED's and LCD module procedures in C coded programs (1)
  4. Know the interrupt servicing techniques, and use it in C coded programs (1).
  5. Know the structure of analog-digital converter unit, and use it in C coded programs.(1)
  6. Know the structure of universal-asynchronous-communication unit, and use it in C coded programs (1).
  7. Analyse technical requirements and design simple embedded systems using switches, LED's, timers, LCD modules, ADC and UART (1).
  8. Analyse and comment on ethical social and environmental responsibilities of an embedded system design (4),
  9. Practice an embedded system preliminary design starting from technical requirements (2).
  10. Practice an embedded system design in teams including its tests starting from technical requirements (5).
  11. Prepare a design report in an embedded system design team to document hardware, and software development, tests (6).


Assessment   (Method:  Percentage)
Quiz, and Homework: 20%
Midterm Exam 20%
Labs 10%
Design Project 20%
Final Examination 30%

Policy on makeups: 

For eligibility to take a makeup exam, the student should bring a doctor's report within 3 working days of the missed exam.
No make-up exam for quizzes.
Final and midterm make-up exams are conducted after final exam.
Students may get NG if they miss both midterm and final exam.

Policy on cheating and plagiarism:

Any student caught cheating at the exams or assignments will automatically fail the course and may be sent to the disciplinary committee at the discretion of the instructor.

Contribution of Course to ABET Criterion:  5
CMPE423 is a technical elective course for both CMSE and CMPE programs.

Updated by: Assoc. Prof. Dr. Mehmet Bodur    Update Date: 20.09.2019