Chapter 2 Micro Architecture
Chapter 2 Micro Architecture
EMBEDDED SYSTEM
CHAPTER 2 APPLICATION
MICROCONTROLLER
ARCHITECTURE
PENSYARAH:
NORHANIZA AZREEN BT MOHAMED MOKHTAR
PIC MICROCONTROLLER ???
PIC stands for Peripheral Interface Controller
It is the brain child of Microchip
Technology,USA.
A microcontroller is a compact microcomputer
designed to govern the operation of
embedded systems in motor vehicles, robots,
office machines, medical devices, mobile
radios, vending machines, home appliances,
and various other devices
A typical microcontroller includes a processor,
memory, and peripherals.
One of the earlier versions of PIC Microcontrollers
is PIC16C6x/7x. The 7x family has an
enhancement of Analog to Digital converter
capability.
These are available in 28 pin DIP, 40 pin DIP ,44
pin surface mount package…etc..some of PIC
controllers contain the letter A in their number.
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.0v.
The PIC 16F8XX Microcontrollers are basically
RISC microcontrollers with very small
instruction set of only 35 instructions and a
two-stage pipeline concept fetch and
execution of instructions.
There are four devices in 16F8xx family,
PIC16F873, PIC16F874, PIC16F876 and
PIC16F877.
PIC 16 ARCHITECTURE’S BLOCK
DIAGRAM
PIC microcontroller’s CPU
Speed :
When operated at its maximum clock rate a PIC executes most of its
instructions in 0.2 µs or five instructions per microsecond.
Watchdog Timer (WDT) with its own Commercial, Industrial and Extended
on-chip RC oscillator for reliable temperature ranges
operation
Low-power consumption: <2mA
Programmable code-protection @5V, 4MHz, 15µA typical @ 3V, 32
kHz, <1 Atypical standby current
Power saving SLEEP mode
MEMORY ORGANIZATION:
WREG register
- The PIC microcontroller has many other register
in addition to WREG register.
- They are called data memory space to
distinguish them from program ( code ) memory
space
- The data memory space in PIC is a read/write
(static RAM) memory
- In the PIC microcontroller literature, the data
memory is also called the file register.
File register
- The file register is read/write memory used by
the CPU for data storage, scratch pad, and
registers for internal use and functions.
- The PIC micro-controllers file register size ranges
from 32 bytes to several thousand bytes
depending on the chip
- The file register data RAM in PIC is divided into
two sections:
1. Special Function Registers (SFR)
2. General-Purpose Registers (GPR) or
General Purpose RAM (GP RAM)
1.Special function register (SFRs)