Pic - TPT Iete
Pic - TPT Iete
Pic - TPT Iete
TO
PIC MICROCONTROLLERS
• 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
• 28/40-Pin 8-Bit CMOS FLASH
Microcontrollers Core Features:
• High performance RISC CPU
• Only 35 single word instructions to learn
• All single cycle instructions except for program
• branches which are two cycle
• Operating speed: DC - 20 MHz clock input
• DC - 200 ns instruction cycle
• Up to 8K x 14 words of FLASH Program
Memory,
• Up to 368 x 8 bytes of Data Memory (RAM)
• Up to 256 x 8 bytes of EEPROM Data Memory
• Pin-out compatible to the PIC16C73B/74B/76/77
• Interrupt capability (up to 14 sources)
• Eight level deep hardware stack
• Direct, indirect and relative addressing modes
• Power-on Reset (POR)
• Power-up Timer (PWRT) and
• Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
• oscillator for reliable operation
• Programmable code protection
• Power saving SLEEP mode
• Selectable oscillator options
• Low power, high speed CMOS FLASH/EEPROM
technology
• Fully static design
• In-Circuit Serial Programming (ICSP) via two
pins
• Single 5V In-Circuit Serial Programming capability
• In-Circuit Debugging via two pins
• Processor read/write access to program memory
• Wide operating voltage range: 2.0V to 5.5V
• High Sink/Source Current: 25 mA
• Commercial, Industrial and Extended
temperature
• ranges
• • Low-power consumption:
• - < 0.6 mA typical @ 3V, 4 MHz
• - 20 μA typical @ 3V, 32 kHz
• - < 1 μA typical standby current
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.
• Instruction set Simplicity :
The instruction set is so simple that it
consists of just 35 instructions
• Integration of operational features:
Power-on-reset and brown-out
protection ensure that the chip operates
only when the supply voltage is within
specifications. A watch dog timer resets
the PIC if the chip malfunctions or
deviates from its normal operation at any
time.
• Programmable timer options:
Three timers can characterize inputs,
control outputs and provide internal
timing for the program execution.
• Powerful output pin control:
A single instruction can select and drive
a single output pin high or low in its 0.2
s instruction execution time. The PIN
can drive a load of up to 25A.
• I/O port expansion:
With the help of built in serial peripheral
interface the number of I/O ports can be
expanded. EPROM/DIP/ROM options
are provided.
• I/O port expansion:
This is the most important aspect in the
PIC controllers.With the help of built in
Serial Peripheral Interface(SPI) the
number of I/O ports can be expanded.
EPROM/DIP/ROM options are provided.
• Interrupt control:
Up to 12 independent interrupt sources
can control when the CPU will deal with
each sources.
PIC 16C6X/7X CONTROLLERS
PERIPHERAL FEATURES
• The PIC16CXX/17CXX is a family of low-cost,
high-performance, CMOS, fully-static, 8-bit
microcontrollers.
• There are Three Timers : Namely Timer 0,
Timer 1, Timer 2
• Timer 0: 8-bit timer/counter with 8-bit prescaler
• Timer 1: 16-bit timer/counter with prescaler can
be incremented during sleep via external
crystal/clock
• Timer 2: 8-bit timer/counter with 8-bit period
register, pre-scaler and post-scaler
Contd…
• 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…
Select bank 1.
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 :