Professional Documents
Culture Documents
LANGUAGE
Bahria University
Islamabad
PROGRAMMING
“PIC Microcontroller and Embedded Systems”, Muhammad
Ali Mazidi, Rolin D. Mckinlay, Danny Causey Prentice Hall,
2008.
CPU
1.
Arithmetic
Logic
Unit(ALU)
Logic
Unit(ALU)
(1)
CPU
2. Registers
CPU
3. Control
Unit
CPU
3. Control
Unit
PIC file
register
PIC File
register
(SFR)
PIC File
register
(GP RAM)
Language
instructions
(DECF)
Data
Format
Representat
ion
(1. HEX)
Data
Format The lowercase b will also work. ' is the single quote
Representat key
ion
(2. Binary)
Data
Format To define ASCII strings, more then one character,
Representat we use the DB, define byte directive( we will study
ion DB later).
(3. ASCII)
Assembler
Directives
EQU
Examples
Assembler
Directives • EQU for RAM address assignment
EQU
Examples
Assembler
Directives
EQU
Examples
PIC18
Instruction
size of the
PIC18
Instruction
size of the
PIC18