PIC Microcontroller Architecture
PIC Microcontroller Architecture
Architecture
Von Neumann Architecture
Fetches instructions
and data from same
memory CPU
8-Bits
Limits operating
Program
bandwidth and Data
Memory
Harvard Architecture
Two separate
memory spaces for
instruction and data
CPU
Increases throughput 8-Bits
Data
Different program 12/14/16-Bits
Program
Memory
are possible
Instructions
Long Word Instructions
Wider instruction bus
Movlw #imm<8>
Single Word Instructions 1100XX k k k k k k k k
Opcodes are 14 bits wide
No multi byte instruction
Single Cycle Instruction
Entire instruction is fetched in a
single cycle
Instructions
Instruction Pipeline
{ Two stage pipeline
{ Overlaps Fetch & Execute Cycles
{ Each takes one Tcy
Orthogonal Instructions
{ Any operation on any register using any
addressing mode
Architecture
8 bit ALU
Capable of
ALU
{ Addition & Subtraction
{ Logical & Shift operations
W Register
Single operand instruction
{ Working register General Purpose
20
Registers (RAM)
{ File Register
ALU & W Register
STATUS register
CARRY
DIGIT CARRY
ZERO
POWER DOWN
TIMEOUT
REGISTER PAIR 0
REGISTER PAIR 1
INDIRECT REGISTER PAIR
STATUS Register
Architecture
RAM
Program Counter
Program
Memory File
Registers
8k x 14 8 Level Stack
WREG
Instruction Register
Instruction Decoder
Architecture – A
subset
OPTION Register
PCON Register