Hands-On Technical Training (HOTT) Workshop:
Introduction to Microcontroller Programming in C 1
Table of Contents 1
How to Use this Training Material if provided on CD or in Zipped File: 3
Workshop objectives: 3
What is an Embedded Controller? 4
What is a Microcontroller? 4
Microcontroller Advantages 4
Microcontroller Disadvantages 4
Microcontroller Architecture Example 5
Microcontroller Selection Considerations 5
Lab Setup for this Workshop 7
Programming Language Considerations 7
A Brief Introduction to the C Programming Language 8
Data Types 8
Declaring Variables and Assigning an Initial Value 8
Comparison 10
Logical Connectors 11
The if else Statement 11
Loops 12
The for Loop 13
Functions in C 13
Freescale IDE Software Installation 16
Hardware Familiarization and Connection to PC 16
Understanding the RS08 I/O 17
Launching & Exploring the IDE 19
Creating a new project 19
Configuring the Microcontroller Chip for Proper Operation with the Development Board 23
Editing and Downloading a Program 25
Modifying the Program to Slow Down the LED1 Blink Rate 28
Debug Tools: Monitoring, I/O, Breakpoints, and Other Neat Stuff 30
Monitoring the Program & I/O 30
Using Breakpoints 31
Stand-alone uC Circuit Example:
Minimum Circuit Required for the Hello World Example Program 32
Links to Executable Programming Examples Provided with this Training Material (CD or unzipped directory) 33
Additional Resources 35
Documents Provided with this Training Material (CD or unzipped directory) 35
Online Resources 35
Support 35
Purchasing Your Own Demo Kits and Microcontrollers 35