Download presentation
Presentation is loading. Please wait.
1
Microprocessor System Design and Interfacing
Final Lab Practical Review Notes
2
Announcements Mini-Project
Spark challenge signup deadline today (what they told me - although website says Dec 1….), just register now to be sure Final report/poster/video due Mon. Dec 11 Reminder: Last day to demo is Thursday Dec 7 by 12 noon. If you can demo early, please do.
3
ECE 362 Final Lab Practical
Date: November 27 – Dec 1 Time: Your Scheduled Lab Period 8:30 AM labs, exam will be 9:00 AM – 11:00 AM 11:30 AM labs, exam will be NOON – 2:00 PM 2:30 PM labs, exam will be 3:00 PM – 5:00 PM Place: Lab Material covered: Module 1 (second opportunity to demonstrate) and Module 3 Closed book and notes Calculators not needed / not allowed (but can use Windows Calculator) Microcontroller boards will be supplied
4
Restrictions Exam is closed book and notes
You must use the supplied #2 pencils Book bags must be left by the entrance Cell phones must be turned off and left in your book bag Hand-held calculators are not needed and may not be used (the Windows calculator may be used, however) Earphones/earbuds may not be worn Caps may not be worn during the exam Makeup exams can only be scheduled under extraordinary circumstances
5
Academic Honesty Discussing any aspect of this exam while it is in progress will be considered cheating Attempted use of any type of electronic recording, communication, photo, and/or scanning device will be considered cheating Any attempt to cheat on the exam will result in a failing grade for the course All cases of cheating will be reported to the ECE Associate Head for Instruction and the Dean of Students A professional person does not take credit for the work of someone else!
6
Course Outcome Tested A student who successfully fulfills the course requirements will have demonstrated: an ability to program a microcontroller to perform various tasks (in both ASM and C) an ability to interface a microcontroller to various devices an ability to effectively utilize microcontroller peripherals an ability to design and implement a microcontroller-based embedded system References Provided: - CPU12 Ref Guide and S12CPU Ref Manual - 9S12 Device User Guide (A.C./D.C. Characteristics) - CRG, ATD, SCI, SPI, TIM, and PWM Block Users Guides - Module 3 Lecture Summary Notes
7
Learning Outcome Assessment
You will earn 1% bonus credit for each course outcome you successfully demonstrate Outcome 1 will be assessed based on scores received for the lab practical programming problems, for which a score of at least 60% on either of the two practical exams -OR- a score of at least 60% on each lab experiment will be required to demonstrate basic competency Outcomes 2 and 3 will be assessed based on concept and design/analysis questions included on the lab practical exams, for which a score of at least 60% will be required to demonstrate basic competency Outcome 4 will be assessed based on the Embedded System Design Mini-Project, for which a score of at least 60% will be required to demonstrate basic competency
8
Grade Determination 90% to 100% A-, A, A+ 80% to 90% B-, B, B+
C-, C, C+ 60% to 70% D-, D, D+ < 60% F Grade Determination Bonus Exercises (TA Evaluation, M-P Poster, Video, Showcase) ∆1% Class Participation (iClickers) 5.0% Homework Assignments 1%) 10.0% Lab Experiments 2%) 20.0% In-Class Graded Quizzes Lab Practical Concept Exams – Outcomes 2 & 3 15%) 30.0% Lab Practical Programming Exams – Outcome 1 7.5%) 15.0% Embedded System Design Mini-Project – Outcome 4 ∆2% Outcome Demonstration Bonus 1%) 100+∆%
9
Grade Determination Calculation of Raw Weighted Percentage:
RWP then “curved” (mean-shifted) with respect to upper percentile of class, yielding the Normalized Weighted Percentage (NWP) Windowed Standard Deviation (WSD) for class is calculated based on statistics of “middle” 90% of class Cutoff Width Factor (CWF) is then max(WSD,10), i.e., the nominal cutoffs are for A-B-C-D, respectively
10
Final Lab Practical – Part 1
General Concept Questions CRG block, including PLL, watchdog, and RTI analog data acquisition and ATD synchronous serial communication and SPI timer (TIM) and pulse accumulator (PA) pulse width modulation (PWM) and analog signal reconstruction asynchronous serial communication (SCI) Parts 1 & 2 will be cast as multiple-choice questions – C source files and their associated projects will be provided (~ 40 questions total)
11
Final Lab Practical – Part 2
Code Analysis thought questions addressed in lab experiments and clicker quizzes functional analysis / code behavior peripheral initializations device drivers interrupt service routines Parts 1 & 2 will be cast as multiple-choice questions – C source files and their associated projects will be provided (~ 40 questions total)
12
Final Lab Practical – Part 3
Programming Exercise (Outcome 1) o(30) lines of C code general theme: waveform synthesis 10 point grading rubric based on functionality, organized into steps (4+4+2) to facilitate partial credit score also based on efficiency: 2-point (min) penalty for inefficient/cumbersome coding will include “bonus worksheet” that, based on the extent to which it is completed, will count for up to 1% bonus credit
13
How would you generate a waveform?
14
What about with a buffer?
15
Buffer in C // Globals #define BUF_SIZE 100
unsigned char buffer[BUF_SIZE]; unsigned int buffcounter = 0; buffer[99] buffer[0] ...
16
Buffered TIM isr in C interrupt 15 void tim_isr(void) { // clear flag
TFLG1 = TFLG1 | 0x80; // Store the next buffer value to PWM PWMDTY0 = buffer[buffcounter]; buffcounter = (buffcounter + 1) % BUF_SIZE; }
17
Main() and isr interaction
for (…) { } } // loop to fill buffer You will write this code: Producer ... I will give you this code: Consumer tim_isr() // consumes 1 value per // interrupt to send to PWM
18
What values should I put in the buffer to produce this?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.