Professional Documents
Culture Documents
Pipelining
LECTURE# 06
MICROPROCESSOR SYSTEMS AND INTERFACING
AVR uses
◦ Crystal oscillator connected to the XTAL1 and XTAL2 pins
◦ or internal oscillator provides machine clock cycles.
◦ Oscillator cycle is equal to machine cycle
Time
Pipelining in AVR
The AVR offers three-stages of pipeline, which are:
1. Operand fetch,
2. ALU operation Execution
3. and results write-back
0x303
0x302
0x401
0x303
0x302
0x320
Instructions Instructions
R16
R18
R19
R16
R18
R19
L1: LDI R16, 0x23 L1: LDI R18, 0x32
LDI R18, 107 LDI R16, 107
STS 0x401, R18 LDS R16, 0x320
STS 0x302, R16 LDS R18, 0x302
LDS R19, 0x303 STS R19, 0x303
SUB R19, R18 ADD R16, R18
STS 0x303, R19 STS 0x303, R16
0x303
0x302
0x401
0x303
0x302
0x320
Instructions Instructions
R16
R18
R19
R16
R18
R19
L1: LDI R16, 0x23 L1: LDI R18, 0x32
LDI R18, 107 LDI R16, 107
STS 0x401, R18 LDS R16, 0x320
STS 0x302, R16 LDS R18, 0x302
LDS R19, 0x303 STS 0X303, R19
SUB R19, R18 ADD R16, R18
STS 0x303, R19 STS 0x303, R16