HOME

PIC C-Language Course

“All that was great in the past was ridiculed, condemned, combated, suppressed — only to emerge all the more powerfully, all the more triumphantly from the struggle.”
Nikola Tesla

HOME

 

PIC C-Language for the PIC 16Fxxx and PIC 18Fxxx

Material listed below will be covered in the C-Language course. Programming exercises will be performed on the development board starting in week 1. This material will take between 8 and 10 hours per week for 5 weeks to complete.  The QL-200 trainer board is required to complete all of the programming exercises in the course. We will provide you with a PIC 18F4580 or PIC 18F4585 microcontroller chip and a DS1820 Temperature module. You will be using the MikroElektronika PIC Pro - C Compiler. It is available free for a fully functional version with a 2K program limit. You can purchase an unrestricted version from Applied Micro Training for $219 plus shipping. Available to Applied Micro Training students only through a special arrangement with MikroElektronika. Major programming assignments will be submitted to the instructor for review and evaluation weekly.

 





Compiler Download
Installation
Using the QL-200 Programmer
Computer Number Systems & Codes
PIC Architecture related to the C Language
C Language suitability on the PIC 16Fxxx versus the PIC 18Fxxx
Key Hardware Features
Microcontrollers versus Microprocessors

PIC Configuration bits and other settings
Global chip level configuration bits using the C compiler
Port configuration
Internal Peripheral configuration
Configuration access via C statements

Intro to PIC C programming
C Function Declaration & Definition
Data Types
C-Varialbles
Intro to Control Flow
Structure of a C Program
C-Program Template


Control Flow in Detail
IF statement
IF else statement
IF else IF statement

Looping in Detail


For statement
While-Do statement
Do-While statementNested Looping


 

 

 

 







Debugging and Troubleshooting C Language Code
Functions
Creating Functions and passing data in and out of functions
Arrays
Individual Push buttons and related code
4X4 Push Button matrix and related code
Switch Statement
Basic State Machines
Driving and Multiplexing 7 Segment LED Displays

Standard Libraries
Application/Vendor libraries
Creating your own libraries
Strings and string functions
Character Based LCD routines
Buzzer routines
Real Time Clock interface and routines
Temperature Module DS1820 interface & routines
On chip A/D configuration and usage
On chip PWM configuration and usage

Timer/Counters configuration and usage
Serial I/O using RS 232
Introduction to Pointers
Additional device oriented libraries
Interfacting to Assembly Language
I2C interface and programming to EEPROM
SPI interface and programming to EEPROM

Challenging Project Assignments

Instructor review and evaluation of major programming assignments!

 

 


 

 


HOME