Programming PIC microcontrollers in C: 

Course summary: 

"Learn more about the C Programming course"


Module1 Module2 Module3 Module4
C program structure. Controlling individual port bits.  Variables types and Conditional statements. Dice project using arrays and while loops.
Microcontroller
Flash memory
RAM memory
Internal units
Videos

Theory
C Start
C Compiler & ICPROG
Ports

DOWNLOAD 1.1
Program 1.1

Int/Ext controls

Start Learning C

main function
Braces
port direction
Infinite loop
Action code
Semicolons
Whitespace

Practical
Circuit diagram

Summary
Exercises
Theory
Operators &
expressions

Logical operators
Bitwise operators

DOWNLOAD 2.1
Program 2.1

Bitwise styles
Comments

DOWNLOAD 2.2
Program 2.2 

Practical
Circuit diagram

Summary
Exercises
Theory
Variables
Variable types
Choosing vars.
Declaration
Using variables
Variable assignment

Conditionals:

if-else

Invert (or NOT)
switch
Cond. expr ?:

Practical
The circuit

DOWNLOAD 3.1
Program 3.1

DOWNLOAD 3.2
Program 3.2

Summary
Exercises
Theory
Random number
Key debounce


Arrays
Array declaration

while
break
while(expr) ;
do while(expr);

Practical
The dice circuit

DOWNLOAD 4.1
Program 4.1

Summary
Exercises




Module5
Module6
Module7 Module8
Tidying up the dice project: Functions. Talking to the PC: RS232. Local statics
and compact operators.
Enumerated Types, typedef and Preprocessing.
Theory
Functions
void functions
Return values

Increment
Decrement

for loop
break again
continue
static variables

Practical
DOWNLOAD 5.1
Program 5.1


Summary
Exercises
Theory
Strings
String terminator
#include libraries
string.h

Formatting numbers
Using formatting

Practical
USART

The circuit
Hyperterminal

Download 6.1
Program 6.1

Download 6.2
Program 6.2

Summary
Exercises


Theory
Static variables
Scope
Local scope
File scope
Globals
Static functions
Compact operators

Practical Download 7.1
Program 7.1

Summary
Exercises
Theory
State machines
State diagram
Typedef
Enumerated types

The preprocessor
#include
#define (const)
#define (macros)

Conditional compilation


Practical
Download 8.1
Program 8.1


Summary
Exercises




Module9 Module10 Module11
Pointers and pass by reference. Structures, casting & PWM. Multiple project file structure.  
Theory
Pointers
Address operator
Derefererence

Pointers and arrays

Pointer Arguments

Practical
The circuit

Download 9.1
Program 9.1


Summary
Exercises
Theory
Casting
'struct' definition

2nd project data structure (struct)

PWM
duty cycle
PWM Average
PIC PWM module

Practical
The circuit

Download 10.1
Program 10.1


Summary
Exercises
Theory
Header files
Source files

Static functions 


Practical

Download 10.1
Program 10.1


Summary
Exercises
 





New! Comments

Have your say about what you just read! Leave me a comment in the box below.



Privacy Policy | Contact | About Me

Site Map | Terms of Use





Subscribe to the MicroZine Newsletter and collect your free microcontroller Ebooks, download project code and more...


Visit our Facebook Page:

   Click Here

Recent Articles

  1. All about the MC78M05BDTRKG Linear Voltage Regulator

    How to use MC78M05BDTRKG for maximum current without using too large a heatsink pad and how to select the optimum input voltage.

    Read more

  2. Fixed point: A fast and easy way to save tons of microcntroller flash memory

    How to use fixed point maths to save microcontroller memory by avoiding use of the floating point library.

    Read more

  3. How to use the DHT22 (or DHT11) with an Arduino; Full code, description and device differences.

    Essential Guide to the DHT22/11 humidity sensor with library code guide and Full Arduino Tutorial. Learn how to Easily determine Humidity, Dew point and Heat Index.

    Read more

  4. The Essential I2C Tutorial: All you need to know about I2C...

    I2C tutorial: Learn all about the 2 wire I2C serial protocol. Learn how easy it is to use, how it works and when to use it...

    Read more

  5. [Arduino] : Using the 74HC595 shift register with shiftOut().

    The Essential Guide to the 74HC595; What it is and how you can easily use one in any of your projects.

    Read more

  6. How to use a DS18B20 on the Arduino for easy temperature measurement

    How to Easily Use the DS18B20 Maxim One-Wire thermometer with Arduino example code showing external or parasitic power modes.

    Read more

Readers Comments

"I wanted to thank
you so so so much
for all the information
you have provided in
your site it's

SUPERB and FANTASTIC."

- Ranish Pottath

"This site really is
the best and my favorite.
I find here many useful
projects and tips."

- Milan

bursach<at>gmail.com<

"Awesome site,
very, very easy and nice
to navigate!"


- Matt
matt_tr<at>
wolf359.cjb.net


Learn Microcontrollers

"Interested in
Microcontrollers?"

Sign up for The
Free 7 day guide:

FREE GUIDE : CLICK HERE


"I am a newbie to PIC
and I wanted to say
 how great your
site has been for me."


- Dave

de_scott<at>bellsouth.net

"Your site is a great
and perfect work.
congratulations."


- Suresh

integratredinfosys<at>
yahoo.com

"I couldn't find the correct
words to define
yourweb site.

Very useful, uncovered,
honest and clear.

Thanks so much for
your time and works.
Regards."


- Anon

Back to Top