You are on page 1of 20

PIC Microcontrollers

Overview
What are PICs Applications Using a PIC Architecture PIC Families Summary

What are PICs?


Peripheral Interface Controller Developed by Microchip Technology in 1975 Microcontrollers NOT Microprocessors Microprocessor system with number of components (EEPROM, RAM, I/O Support)

http://o.mneina.googlepages.com/what_is_microcontroller.htm

Applications
DIY Projects Mini-robot Temperature Sensor and many more

DC-Motor-based Mini-robot

(http://www.youritronics.com/)

Temperature Sensor

(http://amazon.com)

PIC Project Book

Why Use PIC?


Variety of choices (8-bit to 32-bit) Affordable (8-bit: $0.41, 32-bit: $6.00) Low Power Reasonable Size Convenient Packaging
Through Hole (Dip) Surface Mount (QFN/SPDIP)

Resources and References

http://upload.wikimedia.org/wikipedia/commons/4/4c/PIC_microcontrollers.jpg

Using A PIC
Tools:
MPLab IDE
C and assembly environment Debugger included C compiler included Free Variable cost Ex. ICDE2, PICKit2, many more Libraries by Microchip

Programmers

Software Development Tools

Using A PIC
Documentation
Datasheets Available from Microchip Large Specific Documents Similar to MPC Documentation Other resources Books Hobby sites

Using A PIC
Documentation Examples:

Using A PIC
Documentation Examples:

Using A PIC
C Code Examples:
Using Microchip Libraries to initialize UART (on PIC 18F):

Initializing USART by manipulating registers:

Architecture

PIC16C8X (8bit)
http://o.mneina.googlepages.com/what_is_microcontroller.htm

Architecture
Subset of MIPS ISA
35-80 instructions Flash/EEPROM-based Instruction Memory Separate Data Memory One accumulator In-order non-pipelined and multi-cycle (Most systems)

Memory Low-performance

PIC Families
Divided into families
8-bit: 8F, 16F, 18F 16-bit: 24F, ds33F 32-bit: 32F Power Consumption Speed Package size Memory Capacity

Minor differences

PIC Families
8-bit:
Max Speed 20 MIPS (mill. instr / sec) Generally 4 cycle processor Memory Range <1kB to 128kB instruction up to 32 kB data Max speed 40 MIPS 2 Cycle Processor Memory Range <1kB to 256kB instruction up to 32kB data Max speed 80 MIPS 5 stage pipeline, out of order Memory Range 32kB to 512kB instruction up to 32kB data

16-bit:

32-bit:

Summary
Popular in many areas Low cost and Low-powered solution Accessible resources Subset of MIPS Variety of families

Questions?
Thank you for your attention

References
Microchip Technology (Manufacturer):
http://microchip.com

The PIC Tutorial:


http://o.mneina.googlepages.com/what_is_microcontroller.htm

Embedded Systems/PIC Microcontroller


http://en.wikibooks.org/wiki/Embedded_Systems/PIC_Microcontroller

Wikipedia Entry: PIC Microcontroller


http://en.wikipedia.org/wiki/PIC_microcontroller