EE 308 Spring 2011 Course Overview URL: http://www.ee.nmt.edu/~erives/classes.php Texts: Freescale Databooks on the MC9S12 Recommended: The HCS12/9S12: An Introduction to Software and Interfacing, 2nd Edition by Han-Way Huang Grading: • 10%: Homework. • 10%: Quizzes • 60%: Three midterms exams • 20%: Final exam • Introduction to the MC9S12 Microcontroller • Binary and Hexadecimal Numbers • Assembly Language Programming • C Language Programming • Introduction to MC9S12 Internal Peripherals – The MC9S12 Timer Subsystem – Interrupts using the Timer Subsystem – The MC9S12 Pulse Width Modulator Subsystem • The MC9S12 Expanded Mode – Address and Data Buses and Timing – Adding Memory and External Peripherals – Interfacing to the MC9S12 • More MC9S12 Internal Peripherals – The A/D Converter Subsystem – The Serial Peripheral Interface – The Serial Communications Interface • Using the MC9S12 in a Control ApplicationEE 308 Spring 2011 Lab Overview • The lab meets Monday and Wednesday afternoons. No labs this week. • Lab handouts will be posted starting the following week. • The 9S12 evaluation kits will be passed out in lab next week. • You need to bring a bound lab notebook to the first lab. • There will be a prelab for each lab. This must be done and turned in at the start of your lab section. The lab TA will verify that you have completed the prelab. • Be prepared to answer questions about the pre-lab when you come to lab. • If you do not complete the prelab before coming to lab, you will lose 70% (TBD) of the points for that lab.EE 308 Spring 2011 • Introduction to Microprocessors and Microcontrollers. o Course Overview o Cruise Control Block Diagrams and Flowchart o Block Diagrams of Simple Microprocessor and Microcontroller o Harvard architecture and Princeton architecture microprocessor block diagrams o Memory map for a Princeton architecture microprocessorEE 308 Spring 2011 ∆∆∆∆T = time for one revolution of wheel. Speed = C/∆∆∆∆T, where C is the circumference of the wheelEE 308 Spring 2011 MICROCONTROLLER SIMPLE MICROPROCESSOREE 308 Spring 2011 INSTRUCTION ACTION 18 06 87 5A 05 (A) + (B) ⇒ A 0 ⇒ A (A) ⇒ Address 5EE 308 Spring 2011EE 308 Spring 2011EE 308 Spring 2011 Binary Hex Decimal 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Convert Binary to Decimal 1111011 2 1 x 26 + 1 x 2 5 + 1 x 2 4 + 1 x 2 3 + 0 x 2 2 + 1 x 2 1 + 1 x 2 0 1 x 64 + 1 x 32 + 1 x 16 + 1 x 8 + 0 x 4 + 1 x 2 + 1 x 1 123 10 Convert Hex to Decimal 82D6 16 8 x 163 + 2 x 162 + 13 x 161 + 6 x 160 8 x 4096 + 2 x 256 + 13 x 16 + 6 x 1
View Full Document