High-Level View of a
PIC18 Microcontroller
Data
Stack RAM EEPROM
“File Registers”
Program
ROM PC: Program Counter SFRs
Program Bus
Data Bus
CPU
Interrupt Other Peripherals:
Oscillator Digital
Control Timers, ADC, CCP, I2C,
(Clock) I/O Ports
Logic Serial Communication
FOSC = 40MHz, 1
20MHz, 10MHz, etc.
I/O Pins
High-Level View of a
PIC18 Microcontroller
8 bits 21 bits 8 bits 8 bits
Data
Stack RAM EEPROM
“File Registers”
Program
ROM PC: Program Counter SFRs
Program Bus
Data Bus
CPU
Interrupt Other Peripherals:
Oscillator Digital
Control Timers, ADC, CCP, I2C,
(Clock) I/O Ports
Logic Serial Communication
FOSC = 40MHz, 2
20MHz, 10MHz, etc.
I/O Pins
ROM & RAM Sizes
PIC18F452 Actual Sizes
PIC18 Family MAX Sizes
256 Bytes
8 bits 21 bits 8 bits 8 bits
1.5
32KB 31 Data
Stack KB
2MB Bytes 4KB RAM EEPROM
“File Registers”
Program 1KB
ROM PC: Program Counter SFRs
Program Bus
Data Bus
CPU
Interrupt Other Peripherals:
Oscillator Digital
Control Timers, ADC, CCP, I2C,
(Clock) I/O Ports
Logic Serial Communication
3
I/O Pins