40220412 (Microcontroller techniques and experiments)

Course Name: Microcontroller techniques and experiments

Course Number: 40220412

Program: Undergraduate program

Type: Elective

Credits: 2

Term Offered: Fall

Prerequisite(s): Electric Circuits, Analog Electronics, Digital Electronics

Instructor(s): Yulong Huang


DingHua Zhu, Youping Dai. Principles and Applications of Microcontroller. Tsinhghua Unversity, 2003 (in Chinese)


Haitao Bao. Embedded SoC system Applications. Beijing Buaapress,2009 (in Chinese)

Han-Way Huang. Using the MCS-51 Microcontroller. Oxford University, 2000.

Guangyou Yang, Honghui Zhu. Microcontroller and Interfacing. Water and electricity Press of China, 2002 (in Chinese)


Course Description:

     The course is designed for students whom want to learn the microcontroller embedded system design. This course teaching enables a student to develop a microcontroller embedded system. This course is composed around MCS-51 microcontroller and cover complete details about circuit designing and MCS-51 assembly language programming, such as I/O devices, timers, UART peripherals, LED, relays, keyboard interfacing, LED, LCD, interrupt, ADC and DAC, serial interfaces data transfer techniques. The students will also learn to use development aid tools, such as an in-circuit-emulator to perform software development, hardware development and hardware-software integration. Finally, each student will implement a complete microcontroller-based system as part of the lab practices.


Course Objectives and Outcomes:

By the end of the course, students should be able to

1.Have an overall picture of the history, progress, and importance of microcontroller techniques, and understand its advantages and limitation.[9, 10]

2.Understand the hardware and software of microcontroller.[1]

3.Perform low-level microcontroller language programming to control the operation of microcontrollers.[1]

4.Develop a microcontroller embedded system.[3, 5 ,11]



Course Topics:

1.Introduction to microcontrollers. Microcontrollers and microprocessors, history of microcontrollers, embedded system, 8-bit and 16-bit microcontrollers, microcontroller devices, introduces the latest development and progress of microprocessors.

2.8051 microcontroller. MCS-51 architecture, registers in MCS-5, 8051 connections, 8051 parallel I/O ports, memory organization.

3.MCS-51 addressing modes and instructions. 8051 addressing modes, MCS-51 instruction set, 8051 instructions and simple programs, using stack pointer.

4.MCS-51 Interrupts, timer/counters and serial communication. Interrupts, interrupts in MCS-51, timers and counters, serial communication.

5.Interfacing of MCS-51. Overview of MCS-51 microcontrollers, pin description, using flash memory, I/O ports interfacing.

6.Industrial applications of microcontroller. LED, relays, keyboard interfacing, interfacing of 7 segment display, LCD interfacing, programmable interrupt controllers, ADC and DAC interfacing, standard serial interfaces data transfer techniques, development aids and troubleshooting techniques, application examples.



Parallel I/O Ports

Understand and practice to define P0、P1、P2、P3 I/O addressing methods, input data, output data to light-emitting diodes(LED), and to do I/O programming.

Interrupts, Resets, and Exception Processing

Understand and practice the handling procedures for interrupts and resets, enable and disable an interrupts, set up interrupt vector table.


Understand and practice the timer function, and use timer function to measure the pulse width, period, frequency, the duty cycle of a signal, use timer function to capture the arrival time of an event and use it as a time reference.

keyboard interfacing

Understand and practice the keyboard scanning and debouncing.

Bus Cycles and Memory Expansion

Understand and practice the making Memory space assignments and design an address decoder, read the memory cycle timing diagrams.

LED interfacing

Understand and practice the output data to seven segment display (LED).

LCD interfacing

Understand and practice the output data to liquid-crystal display (LCD).

A/D Converter

Understand and practice the A/D conversion process, measure and display the voltage using an external A/D converter and seven segment displays.


Project Design and Implementation:

    Two students make up of a designing group, to design and implement a microcontroller system, and requested the system at least include four functions, such as LED, relays, keyboard interfacing, interfacing of 7 segment display, LCD interfacing, programmable interrupt controllers, ADC and DAC interfacing, standard serial interfaces data transfer techniques.


Course Assessment:

Experiments, 40 points

Proposal of project design, 10 points

Project implements, 10 points

Project final demo and presentation, 20 points

Project report, 20 points