City University of Hong Kong Information on a Course offered by Department of Mechanical and Biomedical Engineering with effect from Semester B in 2014 / 2015
Part I Course Title: Microprocessor Programming and Applications Course Code: MBE3044 Course Duration: One Semester No. of Credit Units: 3 Level: B3 Medium of Instruction: English Prerequisites: EE2917 Electronic Engineering I and EE2918 Electronic Engineering II Precursors: CS2363 Computer Programming Equivalent Courses: MEEM3044 Microprocessor Programming and Applications Exclusive Courses: Nil Note: Students may repeat a course, or an equivalent course, to improve course grade only if the previous course grade obtained is D or below. Part II 1. Course Aims: The aim of this course is to provide the fundamental knowledge and skill required in handling hardware and software interfaces for microprocessors. After completing this course, the students are expected to be able to translate and convert the learned knowledge into the design of a simple microprocessor-based device. In long run, the graduated students may use the gained knowledge and skill from this course in designing industrial products that require microprocessors.
2. Course Intended Learning Outcomes (CILOs) Upon successful completion of this course, students should be able to: No.
Recognize a microprocessor and its applications;
Use the principles and architecture of the microprocessor and its software and hardware interfaces, to design a simple microprocessor; Program a simple microprocessor using assembly language or a suitable high-level language; and Organize the above knowledge and skills, and then convert them into useful applications.
Weighting* (if applicable) 1 2
*Weighting ranging from 1,2,3 to indicate the relative level of importance in an ascending order.
3. Teaching and learning Activities (TLAs) Activity Type Lecture/Tutorial/Laboratory Mix
Timetabled Activity (Hours per week) Lecture (2); Tutorial (1); Laboratory (1)
Lecture, Quiz (large class)
Tutorial (small class)
CILO 1 CILO 2 CILO 3 CILO 4 Total
3.5 6.5 6.5 9.5 26
1.5 3.5 3.5 4.5 13
*Design Laboratory, Tournament (small class) 3 3 3 6 15
8 13 13 20 54
Lectures and demonstrations: Through the medium of lectures, demonstrations and large class activities, students will be introduced to:
a variety of microprocessor boards; some selected industrial applications using the above boards; the selected microprocessor and its potential applications; the architecture, hardware, interfaces, functions, and various peripheral devices of the microprocessor; assembly language and/or high-level language in microprocessor programming; the importance of using interrupts in programming, and the dos and don’ts in programming real-time and multi-tasking activities; using and combining real-time interrupts, such as timing functions, input captures, and output compares for the students’ selected applications.
Tutorials: Each student must complete all given assignments individually. Tutorials will be provided to students to help them solving the given assignments or design works using the microcontroller that are related to the above lectures. Design activities: Students work in groups on a design task. Each group will be required to design an application that requires the microprocessor. Students will have hands-on experience in implementing their own designs in the laboratory. Each group of students will be given sets of sensors and actuators, a microprocessor and its accessories to design and implement their own microprocessor-based application, such as a self-navigating micro-vehicle (SNV). Students are required to practice their programming techniques in the given emulators and microprocessor boards. Students will design their own assembly codes for controlling, sensing, interfacing the peripheral devices and circuitries thru their designs. Students are required to synthesize their hardware with their programs and test the operations. A tournament will be arranged to test the students’ designs. Rules and criteria of the tournament will be given to the students. The aim of the design laboratory and its tournament is to ensure that the students are able to translate and convert the learned knowledge into the design of a microprocessor-based device, such as a SNV. Through the works done in this laboratory, the students will have some practical hands-on experience in the design of industrial products that require microprocessors
4. Assessment Tasks/Activities ILO No CILO 1 CILO 2 CILO 3 CILO 4 Total (%):
Examination (2.5 hours) 6 13 13 18 50
Tutorials & Quiz 2 5 5 8 20
Laboratory Report & Tournament 6 6 6 12 30
Total (%) 14 24 24 38 100
Type of assessment tasks/activities
Assignments related to each of the CILOs will be given to students to assess their knowledge in the relevant area. Students will randomly be asked questions during the lectures. Those students that can provide correct answers will be rewarded. The reasons that the students cannot answer the questions will be identified for improvement. Students will be set design tasks in the laboratory in order to assess their skills. A tournament will be given to all students to assess their achievements in using their learned knowledge in practice applications. Marks will be given in a competitive fashion. The best design will have the highest marks, whilst, the poorest design will have the lowest marks. A quiz and a formal examination will be given to all students to assess their ability in organizing all the learned knowledge, combining skills gained from the laboratory, and finally converting them into useable applications. For a student to pass the course, at least 30% of the maximum mark for the examination should be obtained.
5. Grading of Student Achievement: The grading of achievement will be performed according to the following criteria: 50% Course Work: It includes 20% for assignments and quiz, and 30% for the laboratory and tournament. For the laboratory, students are divided into groups. Each group is required to complete the design and programming of pre-defined microprocessor-based device at the fourth session of the laboratory. Each group of students is only required to submit one report for the laboratory work. At the last session of the laboratory, a tournament will be held to assess the achievements of all groups in using their learned knowledge in designing practical applications. For the tournament, marks will be given in a competitive fashion. That is, the group that has achieved the highest score in the tournament will have the highest mark, whilst, the group that has the lowest score will have the lowest mark. Students are required to attend at least 80% of the laboratory sessions. The attendance of the tournament is compulsory.
50% Examination: The duration of the examination is 2.5 hours. It is an open book examination as it is aimed to test the student ability in solving problems, not the ability of memorizing the content. For a student to pass the course, he should achieve at least 30% of the total mark allocated for the examination. Individual assessment: Each student will be assessed according to his performance in the examination (50%), assignments (10%), and the quiz (10%). Group assessment: Group of students will be assessed by their performance in the design laboratory and its report (10%), and the score achieved in the tournament (20%). However, individual member of the group may receive different mark than the other members. It is because each student of the group must also submit his own detailed section of contribution (individual section). In the content of the section, it will define clearly the student’s role, the amount of works, and portion of his/her own contribution to the design laboratory and the tournament. It should also include the student’s discussion and conclusion to verify his degree of understanding on the laboratory work. The individual section can be submitted either with the group report or if confidentiality is required, separately to the course examiner. The mark given to each student could be varied due to the student’s actual contribution and efforts to the design laboratory and the tournament. Nevertheless, the average mark of each group will not exceed the assigned group marks. Grade Table Letter Grade
A+ A A-
4.3 4.0 3.7
B+ B B-
3.3 3.0 2.7
C+ C C-
2.3 2.0 1.7
Please refer to the ARRO’s website: http://www6.cityu.edu.hk/arro/content.asp?cid=168 for more details.
Part III Keyword Syllabus:
Buses and Interfaces: Interconnecting system components, I/O addressing techniques, memory mapped I/O, interrupts in I/O. Standard buses. Interfacing keyboard and printer. Control Unit: Construction of an instruction word, instruction and execution cycles; Organization of control registers; Arithmetic operations; Branch, skip or jump, and shift instructions; Register transfer. Computer Architecture: Word formats; number of addresses, instructions and data; Addressing techniques; Branch and jump instructions; Flags, condition codes and status registers; Interrupts; Pipelining, RISC and CISC architecture. Applications: Data logging and instrumentation applications; On-line condition monitoring; Process control systems; Mobile robots; Motor driven systems; Mechatronic-based systems.
Recommended Reading: Text(s): 1. Huang H., MC68HC11- An introduction, Software and hardware Interfacing, West publishing Co., New York, 1996. 2. Motorola, MC68 Series User’s Manual, M68PCBUG11/D2, Motorola, USA. 3. Motorola, MC68 Series Technical Data, M68PCBUG11/D, Motorola, USA. Reference(s): 1. MicroElect Application Board Users Manual, MicroElect Electronics Ltd., 1995. 2. Basic Stamp User Manual and Training Board, Parallax, USA, 2000. 3. Stiffler A., Design with Microprocessors for Mechanical Engineers, 1996. Online Resources: 1. 2. 3. 4.
http://handyboard.com http://www.lugnet.com/robotics/handyboard http://www.gleasonresearch.com http://www.axman.com