Science Fair Projects Ideas - PIC microcontroller

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

PIC microcontroller

PIC, is a family of RISC microcontrollers made by Microchip Technology , derived from the PIC1650 originally developed by General Instrument 's Microelectronics Division.

Microchip Technology does not use PIC as an acronym (in fact they call their chips PICmicros). It is generally regarded that PIC stands for Peripheral Interface Controller, although General Instruments' original acronym for the PIC1650 was "Programmable Intelligent Computer".

The original PIC was built to be used with GI's new 16-bit CPU, the CP1600. While generally a good CPU, the CP1600 had poor I/O performance, and the 8-bit PIC was developed in 1975 to improve performance of the overall system by offloading I/O tasks from the CPU. The PIC used simple microcode stored in ROM to perform its tasks, and although the term wasn't used at the time, it is a RISC design that runs one instruction per cycle (4 oscillator cycles).

In 1985 GI spun off their microelectronics division, and the new ownership cancelled almost everything — which by this time was mostly out-of-date. The PIC, however, was upgraded with EPROM to produce a programmable channel controller, and today a huge variety of PICs are available with various on-board peripherals (serial communication modules, UARTs, motor control kernels, etc.) and program memory from 512 words to 32k words and more (a "word" is one assembly language instruction, varying from 12-to-16 bits depending on the specific PICmicro family).

Contents

Coding for PICs

PICs use a RISC instruction set, which varies in length from about 35 instructions for the low-end PICs to about 70 instructions for the high-end PICs. Microchip provides a free IDE package called MPLAB , that also includes a software simulator as well as an assembler.

Third parties make C compilers for PICs. For the high-end 18F series, Microchip also sells a "C18" compiler. An open-source Pascal compiler, JAL, has also been released. An open-source Forth programming language compiler, PicForth , has also been released.

GPUTILS is an Open Source collection of tools, distributed under the GNU General Public License. GPUTILS includes an assembler and linker and works on Linux, Mac OS X, and Microsoft Windows.

Programming PICs

Devices called "programmers" are traditionally used to get program code into the target PIC. Most PICs that Microchip sells nowadays have ICSP (In Circuit Serial Programming) and/or LVP (Low Voltage Programming) capabilities, allowing the PIC to be programmed while it is sitting in the target circuit.

Bit Size

The bit size of PICs is a source of much confusion. All PICs handle data in 8-bit chunks, so they should be called 8-bit microcontrollers. But unlike most CPUs PICs use a Harvard architecture, so the size of an instruction can be different. In fact different PIC families uses different instruction sizes, which makes it a challenge to compare the code size of PICs to other microcontrollers. For example, say a microcontroller has 6144 bytes of program memory --- for a 12-bit PIC, this works out to 4096 words (or assembly instructions); for a 16-bit PIC, this is 3072 words.

Modern PICs

The old PROM and EPROM PICs are now gradually replaced by chips with Flash memory. Likewise the original 12-bit instruction set of the PIC1650 and its direct descendants has been superseded by 14-bit and 16-bit instruction sets. Microchip still sells OTP (one-time-programmable, or PROM) and UV-eraseable (EPROM) versions of most of its PICs for legacy support, or volume orders.

Features

Current PICs offer a wide range of inbuilt hardware, such as:

PICs on the Internet

PICs are well-documented on the Internet, mainly for two reasons. First some popular consumer products (pay-TV, PlayStation) used PICs as part of their security system, which attracted the attention of crackers. Second the (now obsolete, see PIC16F84) PIC16C84 was the first widely available microcontroller that could easily be re-programmed by hobbyists.

PIC clones

Every now and then there are companies that offer cheap and/or enhanced PIC versions. Most seem to disappear quite soon. Ubicom (formerly Scenix) seems to avoid this fate and produces PIC clones that run much faster than the originals.

Wireless PICs

The rfPIC microcontroller devices integrate the power of Microchip´s PICmicro devices with UHF wireless communication capabilities for low power RF applications. The devices offer small package outline and low external component count to fit the most space-constrained applications.

dsPICs

dsPICs are Microchip's newest family, which entered mass production in late 2004. These are Microchip's first inherent 16-bit (data) microcontrollers. They build on the PICs existing strengths by offering hardware MAC (multiply-accumulate), barrel shifting, bit reversion, (16x16)-bit multiplication and other digital signal processing operations.

8-bit PIC microcontroller product families

These links take you to product selection matrices at the manufacturer's site.

Commonly used PICs

  • PIC16F84 (Generally considered obsolete, but impossible to kill)
  • PIC16F84A (Nice upgrade to above, some versions do 20MhZ, 1:1 compatible)
  • PIC12F629/675
  • PIC16F628
  • The PIC16F87X family
  • PIC18F452

See also

External links

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice