ES Chapter3 2
ES Chapter3 2
Embedded Systems
Muhammad Ali Mazidi, Rolin McKinlay and Danny Causey
Back ……………….
……………….
DECF fileReg, f
BNZ Back
Backward
The PIC uCs
jump 3-29
GOTO to itself
Label and $ can be used to keep uC busy
(jump to the same location)
HERE GOTO HERE
GOTO $
Section 3-2
The PIC uCs 3-31
Call instruction
Call a
subrutine
Call Rcall
4-byte instruction 2-byte instruction
Long Call Relative Call
The PIC uCs 3-32
CALL Instruction
110S
Section 3-3
The PIC uCs 3-44
Delay Calculating for PIC18
Two factors can affect the accuracy of
the delay
1. The duration of the clock period, which is
function of the Crystal freq
Connected to OSC! And OSC2
2. The instruction cycle duration
Most of the PIC18 instructions consumes 1
cycle
• Use Harvard Architecture
• Use RISC Architecture
• Use the pipeline concept between fetch and execute.
The PIC uCs 3-45
Figure 3-9. Pipeline vs. Non-pipeline
The PIC uCs 3-46
PIC multistage pipeline
Superpipeline is used to speed up
execution.
The process of executing instructions is
split into small steps
Limited to the slowest step