PIC18 Microcontroller
Features
3968 bytes of on-chip SRAM
256 bytes to 1KB of data EEPROM
4KB to 128KB flash memory
2MB program memory space
10 bit ADC
Harvard Architecture
Sofisticated time function
RISC type Architecture with 75 instructions
Serial communication interfaces
8-bit CPU
Input capture
Output compare
PWM
Real-time interrupt
Watchdog timer
SCI
I2C
SPI
CAN
Background debug mode
Memory protection capability
Instruction pipelining
operates upto 40MHz crystal oscillator
I/O PORTs
PORT A
PORT B
PORT C
PORT D
PORT E
Timers & Interrupt Sources
Reset
POR
BOR
RESET instruction
stack full
stack underflow
PWRT, OST
MCLR
WDT
PIC Status Register
C-Carry flag
DC-Digital Carry flag
Z-Zero flag
OV-Overflow flag
N-Negative flag
Registers
TRIS: Data Direction Register
PORT register: reads levels on pins of device
LAT: Data Latch Register
Special function register
WREG (Working Register)
Status register
stack pointer
PCL, PCH, PCU
File register memory pointer
PRODL, PRODH (Stores result of multiplication)
Timer register
Addressing modes
Immediate
Direct
Register Indirect
Indexed ROM
Instruction Set
Literal operations
Byte oriented operations
Bit oriented operations
Control instructions
Table read and write instructions