PIC 12F/16F/18F quick start

From DP

Revision as of 10:45, 22 November 2010 by Ian (Talk | contribs)
Jump to: navigation , search

Contents

Features

  • Huge selection of chips, many still in DIP packages
  • One inexpensive device (PICkit/ICD, see eBay for clones) programs and debugs most PICs
  • Previously famous for a generous sampling program (now dead)

Reference

Programmers, IDEs, compilers

IDE and compiler

  • Microchip's IDE called MPLAB
  • MPLABX is Microchip's new cross-platform IDE and compilers for Windows, Linux, and Mac
  • SDCC is an open source compiler for some PICs
  • There are many third-party C, BASIC, and Pascal compilers too

Some projects require a C compiler. We use Microchip's free demonstration compilers with MPLAB. The demo compilers have certain optimizations that expire after 60 days, but we don't use those anyway.

Bootloaders

PICs do not ship with a bootloader, but there are many that you can program yourself. After the bootloader is installed, a programmer is no longer needed for simple firmware updates.

Basic circuit

Power and reset

Programming connections

Crystal

Peripherals

IO

USB

Ethernet