EE 308
Lecture Outline for Spring 2001
Wednesday 1/17
- Introduction to
Microprocessors and Microcontrollers.
- Figures
Friday 1/19
- The HC12 Internal Registers (MC68HC912B Family , Sections
3.2-3.5;
- CPU 12 Reference Manual, Sections 2.1-2.2)
- Notes
- 68HC12 Address Space
- 68HC12 ALU
- 68HC12 Programming Model
- Some HC12 Instructions Needed for Lab
1
- A Simple Assembly Language Program
- Assembling an Assembly Language Program
Monday 1/22
- Binary and hexadecimal numbers (Brown and Vranesic, Chapter 5).
- Figures
Wednesday 1/24
- Addition and Subtraction of Hex Numbers
- Figures
- Simple HC12 Programs
- Figures
- Addressing Modes (CPU 12 Reference Manual, Section 3)
- Figures
Friday 1/26
- N, Z, V, C bits of Condition Code Register
- Figures
- More on Addressing Modes (CPU 12 Reference Manual, Section 3)
- Figures
Monday 1/29
- Assembly language programming on the 68HC12
- Figures
Wednesday 1/31
- More on assembly language programming on the 68HC12
- Figures
- More on Assembly language programming on the 68HC12
- 68HC12 Instructions (CPU 12 Reference Manual, Section 5)
- Figures
- Things to know for writing
assembly language programs
- Instructions used for copying
data: Load/Store, Transfer/Exchange, and Move
- Instructions used for arithmetic:
Add/Subtract, Multiply/Divide, Increment/Decrement, Logical Operations,
Compare and Test
- Instructions used for changing
program flow: Jump/Branch, Bit Test and Branch, Loop, Subroutines
- Instructions to manipulate index
registers and the condition code register
- Miscellaneous instructions, some of
which will be covered later in class
Friday 2/2
- Writing a simple 68HC12 assembly language program
- Figures
Monday 2/5
- Decoding HC12 instructions (CPU 12 Reference Manual, Appendix A)
- Figures
- More on 68HC12 assembly language programming -- use of the stack, stack
pointer, and subroutines
- Figures
Wednesday 2/7
- More on Assembly language programming on the 68HC12 -- using a
subroutine
- 68HC12 Instructions (CPU 12 Reference Manual, Section 5)
- Figures
- Communicating with the outside on the 68HC12 -- Introduction to Ports A
and B in single-chip mode
- M68HC12 Family Manual, Sections 6.2, 6.4
- Figures
Friday 2/9
- More on Assembly language programming on the 68HC12
- Figures
- Introduction to C programming on the 68HC12
- Figures
Monday 2/12
- More on C programming on the 68HC12
- Figures
Wednesday 2/14
- Introduction to the free-running timer on the 68HC12
- M68HC12 Family Manual, Sections 12.4.6, 12.4.8
- Figures
Friday 2/16
- What happens when you reset the 68HC12
- M68HC12 Family Manual, Sections 4.7, 4.8
- Figures
- Introduction to Interrupts: The HC12 Timer Overflow Interrrupt
- M68HC12 Family Manual, Sections 4.4, 4.9
- M68HC12 Family Manual, Sections 12.4.8, 12.4.9
- Figures
Monday 2/19
- More on the HC12 Timer Overflow Interrrupt
- M68HC12 Family Manual, Sections 4.4, 4.9
- M68HC12 Family Manual, Sections 12.4.8, 12.4.9
- Figures
Wednesday 2/21
- Review for Exam 1
- Figures
Friday 2/23
Monday 2/26
- Interrupts: The HC12 Timer Overflow Interrupt and Real Time
Interrupt
- M68HC12B Family Manual, Section 10
- Figures
- Introduction to the HC12 Input Capture Subsystem
- M68HC12 Family Manual, Section 12
Wednesday 2/28
- Using DBug12 to print to the terminal
- Figures
- More on the HC12 Input Capture Subsystem
- M68HC12 Family Manual, Section 12
Friday 3/2
- 68HC12 Output Compare function
- M68HC12 Family Manual, Section 12
- Figures
Monday 3/5
- The HC12 Pulse Width Modulation System
- M68HC12 Family Manual, Section 11
- Figures
Wednesday 3/7
- More on the HC12 Pulse Width Modulation System
- M68HC12 Family Manual, Section 11
- Figures
Friday 3/9
- External Data Buses -- Talking to the Outside World
- Figures
Monday 3/19
- More on the HC12 in Expanded Mode
- Figures
Wednesday 3/21
- More on the HC12 in Expanded Mode
- Figures
Friday 3/23
- Putting the HC12 into expanded wide mode
- Figures
- Altera files for memory expansion
- Figures
Monday 3/26
- Using standard MSI logic for port expansion
- Figures
Wednesday 3/28
- Review for Exam 2
- Figures
Friday 3/30
Monday 4/2
- Expansion mode timing (M68HC12 Family Manual, pp.
478-479)
- Figures
Wednesday 4/4
- Introduction to A/D (Analog to Digital) converters
- Figures
Friday 4/6
- More on the HC12 A/D Converter
- Figures
Monday 4/9
- Introduction to serial communications
- Figures
Wednesday 4/11
- Using the HC12 Serial Peripheral Interface (SPI)
- MC68HC912B Family Manual, Section 14.4
- Figures
Monday 4/16
- Connecting a MAX522 D/A converter to the HC12 SPI
- Figures
Wednesday 4/18
- Review for Exam 3
- Figures
Friday 4/20
Monday 4/23
- Introduction to the Motor Control Lab
- Figures
Bill Rison,
<rison@ee.nmt.edu >