PIC18 Microcontroller Architecture and Programming Fundamentals
Classified in Computers
Written on in
English with a size of 2.31 MB
1. PIC18 Architecture Details
Harvard Architecture
Features distinct program memory and data memory. Includes the MPU, Program Memory, Data Memory, I/O Ports, and support devices like timers.
Microprocessor Unit (MPU)
ALU (Arithmetic Logic Unit)
Performs operations such as addition, subtraction, and logical operations.
Registers
Includes WREG (8-bit accumulator), Program Counter (PC), Stack Pointer (SP), and File Select Registers (FSRs).
Memory
Offers 2 MB of program memory and 4 KB of data memory.
Bank Switching
Data memory is divided into 16 banks, with one 256-byte access bank.
2. Data Formats and Representations
Unsigned Integers
These are 8-bit values, ranging from 0 to 255.
Signed Integers
Represented using 2's complement, with a range from -128 to