Print this page Print this page

Microcontrollers: Design and Implementation

Mark A. Strain, PE


Course Outline

Microcontrollers are simply microprocessors that include program and data memory and peripherals such as general-purpose input/output ports, timers, serial communications controllers, analog-to-digital converter, etc.

The purpose of this course is to describe a portion of the architecture of a simple microcontroller (namely the Atmel ATtiny2313A microcontroller) and to provide simple examples written in the C programming language that use an LED and a pushbutton. The examples utilize the timer circuit and the port registers and incorporate a timer interrupt and an external interrupt.

This course includes a multiple-choice quiz at the end, which is designed to enhance the understanding of the course materials.

Learning Objective

At the conclusion of this course the student will learn:

Intended Audience

This course is intended for all engineers.

Benefit to Attendees

Attendee of this course will be able to understand the basics of microcontrollers and microprocessors.

Course Introduction

In my course entitled "Microcontrollers: an Introduction" I discussed the architecture of microcontrollers.  I showed how the central processing unit fetches instructions (or a program) from memory and decomposes the instructions into components that the control unit and the arithmetic logic unit can use to perform the desired operation or function. Here I will discuss how to design a simple circuit incorporating a microcontroller with a small footprint, small pin count, and a small amount of internal memory (both program and data memory). I will give program examples using the C programming language.

Microcontrollers are simply microprocessors that include program and data memory and peripherals such as general-purpose input/output ports, timers, serial communications controllers, analog-to-digital converter, etc.

Course Content

This course is in the following PDF document:

Microcontrollers: Design and Implementation

Please click on the above underlined hypertext to view, download or print the document for your study. Because of the large file size, we recommend that you first save the file to your computer by right clicking the mouse and choosing "Save Target As ...", and then open the file in Adobe Acrobat Reader. If you still experience any difficulty in downloading or opening this file, you may need to close some applications or reboot your computer to free up some memory.

Course Summary

The Atmel ATtiny2313A microcontroller used for these exercises is packaged in a 20-pin DIP package. It is small compared with other microprocessors available, but there are other smaller devices available. For example the Atmel ATtiny10 is packaged in a 6-pin SOT-23 package, making this device ideal for small projects such as an electronic candle to simulate the flicker of the flame or a child's shoe that has LEDs that light up when he or she walks.

Although the Atmel AVR series of microcontrollers is a great product offering many features with a powerful core, this course is not meant to be an advertisement for the Atmel AVR series of microcontrollers. There are many similar microcontrollers available on the market, such as the Microchip PIC, Texas Instruments MSP430, Intel 8051, STMicroelectronics STM8, Freescale 68HC11, and multiple versions of the ARM core from many vendors.

Microcontrollers today can be designed and programmed to control and monitor almost anything. They have become an integrated part of our society, industry and culture.

Quiz

Once you finish studying the above course content, you need to take a quiz to obtain the PDH credits.


DISCLAIMER: The materials contained in the online course are not intended as a representation or warranty on the part of PDH Center or any other person/organization named herein. The materials are for general information only. They are not a substitute for competent professional advice. Application of this information to a specific project should be reviewed by a registered architect and/or professional engineer/surveyor. Anyone making use of the information set forth herein does so at their own risk and assumes any and all resulting liability arising therefrom.