Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Microcontroller Architecture
General architecture and pin descriptions
Clock Generator
Reset
Ports
Memory Organization
Timer
Introduction to Microcontroller
What is Microcontroller?
1.2 C vs General-Purpose P
Microcontroller Microprocessor
Devices Microchips PICs Intels x86 family (8086,
series, Atmels AVR 80286, 80386, 80486 &
series the Pentium) or
(Motorolas PowerPC
family)
Components Internal CPU, RAM, External RAM, ROM, and
ROM, I/O ports and I/O ports
timers
Application Perform specific Perform more tasks that
function: A small set of related to general
signal processing requirements: calculations
functions for digital of software, personal
signal processor computer
Microcontroller vs Microprocessor
C vs General-Purpose P (Cont..)
CPU / P
C
CPU / P DATA BUS
Control Unit
CONTROL BUS
Microcontroller vs Microprocessor
C vs General-Purpose P (Cont..)
ROM EEPROM
RAM
Microprocessor
Serial I/O
Baseline
PIC Microcontroller Family
Mid Range
PIC Microcontroller Family
18F Architecture
PIC Microcontroller Family
http://www.microchip.com
PIC Microcontroller Family
Advantages of PIC:
30 to 100 times faster than other Cs
(program memory is integrated to the chip)
Smaller size (on-board memory)
Easy to program, reusable and inexpensive
PIC Microcontroller Family
Architecture:
Program &
CPU Data Memory
Von Neumann architecture
Data Program
Memory CPU Memory
Harvard architecture
Review
PIC16F877 Architecture
Microcontroller Architecture
RC Oscillator
Reset
Value registers upon reset
Power-on Reset (POR)
Register Reset value (hex)
MCLR Reset during normal PC 000000
operation WREG 00
CPU (Cont..)
CPU (Cont..)
8-bit
8-bit
Carry bit
STATUS
ALU register
Z, DC, C flags
8-bit
Microcontroller Architecture
Ports
Memory organization
Memory organization
Microcontroller Architecture
Program memory
Data memory
The data memory is partitioned into multiple banks which contain the
General Purpose Registers and the Special Function Registers.
Bits RP1 (STATUS<6>) and RP0 (STATUS<5>) are the bank select
bits
EEPROM Memory