COME 327      

 Lecture Slides and Other Resources

 

 Slides

 

Week

Lecture Topic

 

 1

- Introduction to Microcomputers and Microprocessors
  From http://www.ee.hacettepe.edu.tr/~alkar/EE212/w1[2005].pdf by
  Dr Ali Ziya Alkar
-
Microprocessor tutorial (HTML) (HTML from archive.org)
- Simple CPU Simulation
 
http://courses.cs.vt.edu/~csonline/MachineArchitecture/Lessons/CPU/index.html
- Embedded Systems by Daniel W. Lewis (PPT)
- Data Representation by Daniel W. Lewis (PPT)
- Number Systems and Data Representation

- Data Representation by Randall Hyde

 

 2-3

- 68HC08 CPU Architecture (PPT)
- MCU Block Diagram (DOC)

- S08AW60(PDF
- 68HC08 Memory Map (DOC)
- 68HC08 Memory Mapped I/O Section (DOC)
- Addressing Modes
- CPU Reference Manual (pages 55-82)
Cerid's Book (Pages 9-15)
- Constants and assembler directives (TXT)
- Instruction set (DOC)

 

 4-5

 - Instruction Set Examples
- 1. Move instructions (
ASM)
- 2. Move bytes to PORTA 1 (
ASM)
- 3. Move bytes to PORTA 2 (
ASM) (ASM)
- 4. String copy (
ASM)

- Arithmetic Instructions and examples
- 5. Table addition with indexed addressing (ASM) 
- 6. 24-Bit addition with absolute addresses (ASM) 
- 7. 24-Bit addition with index register (ASM)
- 8. 32-bit additon with loop (ASM)
- 9. Sum of number 1..10 (
ASM)
- 10. Array multiply by 2 and add 1 (ASM1,ASM2,ASM3)
- 11. 24-bit addition by saving CCR (ASM)

 

 6-7

 - Comparison Instructions
- 1. Compare, Increment, Decrement, Clear, Test, Negation Instructions (ASM)
- Logic Instructions
- 2. AND, ORA, EOR, COM, BIT Instructions(ASM)
3. Bit Clear and Set Instructions (ASM) 
- 4. Shift and Rotate Instructions (
ASM)
- Control Instructions
- 5. Control Instructions (ASM)
- 6. Add accumulator to H:X register with subroutine (ASM)
- 7. Subroutine call and return (
ASM)

 

 8-9

 - Lab 1 (DOC)
- Axiom CMS-8GP32 (PDFJPG)
- Axiom CMS-8GP32 User's Manual (PDF)
- Led blink fast (ASM)
- Led blink slow (ASM
- Port and register include file (INC)

- Using the bread board (DOC
     - Sparkfun - Breadboard
 (HTML)
- Basic Definitions and Concepts of Electronics (DOC)
- Lab Reports (DOC)

- DEMO9S08AW60E Quick Start Guide (PDF)
- DEMO9S08AW60EUG Userís Guide (PDF)
- MC9S08AW60 Technical Data Manual (PDF)
- Include File (INC)
- Steps to debug or run a ASM program with CodeWarrior (TXT)
- Ports (TXT)
- I/O Connector Pins (PDF)

Lab 1:
- Leds Blink Fast (ASM)
- Leds Blink Slow (ASM)

 10

- Resets and Interrupts (PPT) 
- Interrupt example - Run on simulator (ASM)

 

 10

- Lab 2 (DOC)
- gp-buttons (ASM)
- gp-buttons-flipflop (ASM) 
- Simple I - Only one led will turn on (ASM)
- Simple II- More than one led can be turned on (ASM) 

Lab 2:
- Led is on when corresponding switch(button) is pressed (ASM)

 11

 -Lab 3 
- Lab3 Part I (DOC)
- (ASM)
- Anode type Seven Segment Display -VCC connected (ASM)
- Lab 3 Part II (DOC)
- (ASM)
- Anode type Seven Segment Display -VCC connected (ASM)

 Lab 3:
- Lab 3 Part I

  - 7 Segment Display Connection: (PDF) 

   - I/O Connector Pins (PDF)
  - Part I Code (ASM) for Cathode type 7 Segment Display,
  - Part I Code (ASM) for Anode type 7 Segment Display,
  - Connections (JPG)
- Lab 3 Part II - Analog to Digital Conversion
  - Part II Code for Cathode (ASM)
  - Part II Code for Anode (ASM)

 12

- Lab 4
  - Lab 4 (DOC)
  - Timers (PPT)
  - (ASM)
  - Loading a program into flash memory (DOC)

 Lab 4

  - Timers (PPT)
  - Technical Manual (PDF) (Pages 165-180)

   - 7 Segmeny + I/O connections (PDF)
  - Code for Anode Type 7 Segment Display (ASM)

  - Timer Example in C language (LabTimer.c)

13

-Lab 5 Serial Communication (DOC)
- (ASM)


- LCD Display

- LCD Connections (DOC)
- 8-bit wide interface program (ASM)
- 4-bit wide interface program (ASM)
- LCD References 
- PDF1, PDF2, PDF2, PDF4
- How to control a HD44780-based Character-LCD (HTM)

 
14 ARDUINO
- http://www.arduino.cc/
- http://hci.rwth-aachen.de/arduino  
- Processing : https://www.processing.org/ 
- PuTTY: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 
- Element14: http://www.element14.com/community/welcome 
- Jeremy Blum: 
http://www.jeremyblum.com/category/arduino-tutorials/ 
 

          Grades: (HTML)
          Resources:

                - 68HC08 Microcontroller Tranining Tutorial (HTML)
                - COME 327 CD - 157MB (ZIP)
                - Omer Cerid's Book (PDF)
                - Part of Omer Cerid's Book  in Turkish (PDF)
                - CPU Reference Manual (PDF)
                - MC68HC908GP32 Technical Data Manual (PDF)
                - M68ICS08GP In-Circuit Simulator Operatorís Manual (PDF)
                - M68HC05 Family - Understanding Small Microcontrollers (PDF)
                - Microcontroller from Wikipedia, the free encyclopedia. (HTML)
                - List of common_microcontrollers (HTML, HTML))
                - Moore's_law from Wikipedia, the free encyclopedia.(HTML)
                - Microprocessor tutorial (HTML)
                - Instruction Execution (HTML)
                - Memory Mapped I/O (HTML)
                - Binary number systems (HTML)
                - Hexadecimal (HTML)
                - How computers boot up (HTML)
               - Speicial Editon: CodeWarrior for Microconrollers 10.7 installer (Eclipse, Offline (EXE) (HTML)

          Homeworks:
                -
Arduino istek (HTM)
                -
HW1 & 2  (TXT)
                - HW3 - 
                - HW3 -
                - HW4 -