Академический Документы
Профессиональный Документы
Культура Документы
Program
Oscillator
Counter
2 Add the numbers
1 Get 2nd number
0,1,2,3,…
0 Get 1st number
Program Memory
Central Processor
ALU
72 106
8 71 0x6A
Data Memory
Some Terminology
• Memory mapped I/O
– I/O devices programmed through memory locations
• Von Neumann vs Harvard
– Separate or combined program and data memory
• Instruction Pipeline
– A technique used speed processing by pre-fetching and
preprocessing instructions
• Flash vs RAM vs OTP
– Types of program memory
Memory in the PIC
• Data
Program
memory
memory
– Called
FLASHfiles (register files)
– RAM
16 bit instructions
– 8
32k
bitbytes long
– 16kbytes
• 1536 instructions
– Stores
• Stores
• Instructions
– Counters
– With constants
– Variables
• Tables
– Data – Made ahead of time
– • Data
Intermediate results
– Long access time
• Data Memory addresses also mapped to special function
registers
Special
Function
Registers
This is how
you ‘control’
devices in the
PIC
The Compiler
C- compiler