Computer Science 122  

Introduction to Microcontrollers Machine and Assembly Language Programming

 

Course Objectives

 

The topics covered include Number Systems and codes, Microprocessor addressing modes, Boolean operations, Computer arithmetic, Microprocessor programming, assembly and machine language, subroutines, interrupts, Input/Output interfacing, RAM, ROM, EPROM, EEROM, Programmable Interface adapters, Serial interface adapters, D/A, A/D conversion. Also students will use 8-bit-core microprocessor trainers to develop and test programs.

                                   

1.                   Textbook

 

The textbook, which will be used, is:

Motorola Inc.

M68HC05 Family

Understanding Small Microcontrollers

 
                                

 

It available without cost on-line at the C.O.C Computer Science page. Follow the link from the 122 page.

 

2.         Class Meetings

 

The class meets twice a week; Tuesdays and Thursdays from 11:00 AM until 12:15 PM.

 

3.         Attendance

 

I realize that there are demands on our time that require us to miss scheduled activities once in a while, however attendance will be taken each class session and will be considered in the final grade. I want to help you learn as much as I can about microprocessors and programming. That means you have to be here so I can do that. The school phone number is (661) 259-7800 X3217 and there is voice mail on my phone so you can always leave a message. You can leave me e-mail at doug.forbes@canyons.edu or from the Computer Science page at www.canyons.edu/departments/COMP_SCI/

4.        Classroom Behavior

College level behavior is expected.  You will be asked to leave, or referred to the Dean of Students, if you engage in any inappropriate behavior during class.

Such behavior includes:

distractive talking
texting
leaving the classroom without asking
disrupting fellow students in any way

Cell phones are to be turned off during class.
Computer monitors are to be turned off during lectures.

5.         Withdrawal from class

 

By signing up for the course you expressed an interest in computers and programming. I can help you further that interest. Before you consider dropping let me know and we can talk, there are always alternatives to quitting.

 

5.         Homework

 

A reading assignment will be made at the conclusion of each class. The homework is to do the reading assignment.

 

6.         Lab Projects

 

There are approximately 10 lab projects given once every week. They are listed in the lecture schedule and are in found in the Computer Science 122 Lab Manual which will be supplied in the classroom. Completion of all the labs earns an A for the lab grade with missed labs lowering the grade on a one-for-one basis. There will be opportunities to make up missed labs.

 

7.         Grading

 

Your grade will be determined by the following formula:

 

Programming Projects (labs)       = 50%

Final                                         = 50%

 

Lecture Schedule – Comp Sci. 122

 

Class    Lecture Topic – Lab                                         Assignment

 

1          Introduction to course

            Lecture Schedule                                               Handout

            What is a Microcontroller?

2          Overall View of a Computer System HC05  pages  18-27

3          Computer Numbers and Codes                            27-34

4          Binary - Decimal Program                                Lab  Exp #1

5          Hex - Decimal Program                                   Lab Exp #2

6          Number System Test                                       

7          Basic Logic Elements                                        37-44

8          Transmission Gates, Buffers, and Flip Flops         44-50

9          Computer Memory and Parallel I/O                      51-57

10         I/O as a Memory Type                                        57-63

11         Computer Architecture                                        65-70

12         CPU Operation                                                  73-76

13         Microcomputer Basics Test                             

14         Straight Line Programs                                    Lab Exp #3

15         Computer Arithmetic Test                               

16         M68HC05 Instruction Set                                    97-103

17         Addressing Modes                                             103-125                        

18         Microcomputer Programming                              135-149

19         Arithmetic and Logic Inst                                 Lab Exp #4          

20         Additional Instructions                                       

21         Program Branches                                          Lab Exp #5          

22         Additional Inst                                                 Lab Exp #6

23         Intro to Programming Test

24         The 6800 Microprocessor                                

25         Instruction Set of the 6800                     

26         New Addressing Modes                                   Lab Exp #7

27         Arithmetic Operations                                      Lab Exp #8

28         6800 Test                                                      

29         Stack Operations                                            Lab Exp #9

30         Interrupts                                              

31         Subroutines                                                    Lab Exp #10

32         REVIEW FOR FINAL                                                    

33         FINAL EXAM