Become a subscriber (Free)

Join 29,000 other subscribers to receive subscriber sale discounts and other free resources.
Don't worry -- youre-mail address is totally secure. I promise to use it only to send you MicroZine.

PIC Tutorial page

PIC Tutorial information on compilers, programming, device information, peripherals, protocols and techniques.

In the Devices section there is a tutorial on the 12F675 which is also useful for the other PIC devices since the 12F675 has many of the same internal peripherals as the other PICs.

In the Hardware section there is a short introduction to PIC microcontrollers which summarizes the main peripheral blocks so that you can get familiar with the PIC micro more easily.  

It gives a useful overview of each block. You can also find notes on ICSP there.

The Software section has a short introduction to C programming and there is a useful guide to I2C in the Protocols section.

The Techniques section collects together circuit examples and links to projects that use a specific peripheral block.

PIC Tutorial Links

PIC Programming

PIC Overview.
ICSP Setup
MPLAB X - hex file how-to.
ICPROG - hex file how-to.


Forth (Atmega and PIC)


Setting up RS232


Project Techniques

Multiplexing [8x8 dot matrix ]
Timer 1 [ frequency counter ]
CCP (capture) [ Ultrasonic ]
Software Tri PWM  [ rgb led ]
Soft PWM [ pic-pwm-interrupt ]
Ultrasonic range finding [ pic-sonar ]
Comparator [ comparator ]


Frequency counting

Reciprocal Frequency counting


A tutorial on the 12F675

Although this device is small (an 8 pin chip) it has lots of peripherals (many more than the 16F84) which are used in different ways in this pic tutorial. It  starts off showing you simple projects progressing on to more interesting ones which use each peripheral.  

It should give you a solid start in using any PIC microcontroller as you can transfer the techniques learned here to any PIC device.


An introducrory circuit for the 16F84 with C program source.


An introduction to PIC microcontrollers.

Summarizes the main peripherals of the mid-range PIC micro and details of devices used in site projects.


Describes what they are and how to use them.

ICSP - In Circuit Serial Programming.

Description of ICSP signals and typical circuit connections for programming a pic micro.


A Quick PIC Compile tutorial for the MikroC compiler.

A very quick compilation tutorial just to show how to re-compile files found on this site that use the mikroC compiler.


How I2C works.

A PIC tutorial showing signals and use of the I2C protocol.

How SPI works.

A short tutorial showing signals and use of the SPI protocol.

How RS232 works.

Shows how RS232 works at the physical bit level describing bit details and showing signals you can expect to see at the microcontroller pins.

Using and setting up RS232 in a microcontroller system.

Some simple rules to follow to ensure your RS232 system works.


Using PIC micros as frequency counters (with project links).

Shows you what frequency counting is and how to use PIC micros to obtain a frequency measurement using Timer 1.

Using PIC micros as ultrasonic range finders.

Here you can create an ultrasonic range finder and learn about it (general information on ultrasonic range finding is contained within the project page).

Also shows you how to use the PIC CCP module in capture mode.

Software Tri PWM

A project that creates three interrupt driven software pulse width modulators for driving an RGB tri color LED.  Its not a full implementation as each PWM has the same period but it works well.


Two projects; the above is for multiplexing an 8x8 dot matrix display and this for multiplexing a seven segment display.

Pulse width modulation

PWM what it is and what it's for.

Soft PWM

How to create a Pulse Width Modulation signal without an internal PWM peripheral.  Two methods 1st - one timer, 2nd - two timers.

New! Comments

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

Jump from PIC tutorial to
Best Microcontroller Projects Home Page.

Privacy Policy | Contact | About Me

Site Map | Terms of Use

Visit our Facebook Page:

   Click Here

Recent Articles

  1. PIC PWM: Easy Pulse width Modulation on the PIC Micro.

    PIC PWM : What its for and how to use it. Including an example showing typical setup of a PIC PWM module with register settings.

    Read more

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

    How to use I2C. In this tutorial you will 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

  3. PIC LCD volt meter : How to use the ADC for voltage measurement.

    A 0-5V LCD volt meter project using an HD44870 display and one PIC micro ADC.

    Read more

  4. PIC Programming using ICSP

    PIC programming : How to use ICSP for programming a PIC microcontroller giving some ICSP connection diagrams and it also shows how to use MPLAB X and ICPROG.

    Read more

  5. PIC ICSP In Circuit Serial Programming

    How to program PIC ICSP, IN-Circuit, live and still have a working programmer and operational circuit!

    Read more

  6. An Ultrasonic Distance meter project: How to make one using a microcontroller.

    Understand how an Ultrasonic Distance meter works by building one your self – including Free software to drive the microcontroller and display.

    Read more

Sign up for MicroZine
''The'' Microcontroller Newsletter

Enter your first Name and primary email address in the form below:

And receive absolutely FREE a full project for:

"Measuring Analogue Voltages
Without An ADC"

(Using only one pin).

Instant Download:
You Can
Get It Right Now

Warning: This project could be  Removed 
at any time.  

It will  NOT be 
available indefinitely SO
To avoid 
disappointment  get it:


Don't worry -- your e-mail address is totally secure. I promise to use it only to send you MicroZine
Remember this is a project with full description and fully debugged C Source code - and it's not available from the main website.

You can only get it through this newsletter.

To get exclusive access Enter your first name Name and primary email address Now in the form above.:

But wait !

There's more...

You'll receive more
free and exclusive reports as well as site information and site product updates

Scroll up to the form above and sign up NOW. Don't forget it's FREE and if you don't like it, you can unsubscribe at any time.

Click Here Now to use the form above to get your Valuable information absolutely free.

Readers Comments

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


- Ranish Pottath

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

- Milan


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

- Matt

Learn Microcontrollers

"Interested in

Sign up for The
Free 7 day guide:


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

- Dave


"Your site is a great
and perfect work.

- Suresh


"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.

- Anon

Back to Top