TO Pic Microcontrollers
TO Pic Microcontrollers
TO Pic Microcontrollers
TO
PIC MICROCONTROLLERS
Do you Know this gentleman ???..
• None other than Steve Sanghi, the chairman,
president and CEO of Microchip Technology
Inc.
• Sanghi moved from India to U.S. to pursue a
Master’s degree at the University of
Massachusetts after bachelor’s degree in
engineering, from Punjab Engineering College.
• In 1993, Sanghi became president and CEO of
Microchip after seeking advice from venture
capital firms on starting his own company.
Since then, he has transformed Microchip
into a billion-dollar company specializing in
Microcontroller and analog semiconductors
used in devices ranging from remote
controls to cars. He also has been involved
in science and technology education
programs, and he’s been known to frequent
science fairs and question kids about their
projects.
Brief Introduction….
• The term PIC stands for “Peripheral
Interface Controller” .
• They have coined this name to identify
their single chip micro-controllers.
• These 8-bit micro controllers have become
very important now -a -days in industrial
automation and embedded applications
etc…..
PICs are popular with both
• industrial developers
• hobbyists alike due to their low cost,
• wide availability,
• large user base,
• extensive collection of application notes,
availability of low cost
• free development tools,
• serial programming (and re-programming with
flash memory) capability.
Microchip PIC microcontrollers are
available in various types.
first MCU available from General
Instruments in early 1980’
The micro-controller had a simple
processor executing 12-bit wide instructions
with basic I/O functions.
These devices are known as low-end
architectures.
It limited program memory and are meant
for applications requiring simple interface
functions and small program & data
memories.
Some of the low-end device numbers are
• 12C5XX
• 16C5X
• 16C505
Mid range PIC architectures
• built by upgrading low-end architectures
with more number of peripherals, more
number of registers and more
data/program memory.
Some of the mid-range devices are
• 16C6X
• 16C7X
• 16F87X
Program memory type is indicated by an
alphabet.
• C = EPROM
• F = Flash
• RC = Mask ROM
• One of the mid -range versions of PIC Cs
is PIC16C6x/7x.
• The 7x family has an enhancement of
Analog to Digital converter capability.
• packages. These are available in 28 pin
DIP,40 pin DIP ,44 pin surface mount
package…etc..
• In this 6x/7x family of Micro controllers ,
PIC 16C62A/PIC 16C74A are found with a
suffix A. some of PIC do not contain this A.
• The presence of A indicates the brown-out
reset feature, which causes a reset of the
PIC when the Power Supply voltage drops
below 4.0 V.
Salient features
• Speed :
When operated at its maximum clock rate
a PIC executes most of its instructions in
0.2 s or five instructions per
microsecond.
• Working Register:
Working Register is used by many instructions
as the source of an operand. It also serves as
the destination for the result of instruction
execution and it is similar to accumulator in
other cs and ps. It is a 8-bit regarding.
• Status Register:
It contains the arithmetic status of the ALU, the
RESET status and the bank select bits for the
data memory.
C: Carry/borrow bit
DC: Digit carry/borrow bit
Z: Zero bit
NOT_PD: Reset Status bit (Power-down
mode bit)
NOT_TO: Reset Status bit (tme- out bit)
RPO: Register bank Select
The bits 7 and 6 of Status Register are unused by
16c6x/7x.
Contd…
• PCL:
PCL is actually the lower 8-bits of the 13-bit
program counter. It can be read like any other
register.
• PCLATH (Program Counter Latch):
The upper 3-bits of PCLATH remains zero and
serves no purpose, it is only when PC2 is
written to that PCLATH is automatically written
into the PC at the same time.
Memory organisation :