EasyManuals Logo

Atmel AVR User Manual

Atmel AVR
191 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #25 background imageLoading...
Page #25 background image
Mnemonic Operands Description Op Flags
#Clocks
AVR
#Clocks
AVRxm
#Clocks
AVRxt
#Clocks
AVRrc
BRLO k Branch if
Lower
if (C = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRMI k Branch if
Minus
if (N = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRPL k Branch if Plus if (N = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRGE k Branch if
Greater or
Equal, Signed
if (N V= 0)
then PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRLT k Branch if Less
Than, Signed
if (N V= 1)
then PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRHS k Branch if Half
Carry Flag
Set
if (H = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRHC k Branch if Half
Carry Flag
Cleared
if (H = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRTS k Branch if T
Flag Set
if (T = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRTC k Branch if T
Flag Cleared
if (T = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRVS k Branch if
Overflow Flag
is Set
if (V = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRVC k Branch if
Overflow Flag
is Cleared
if (V = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRIE k Branch if
Interrupt
Enabled
if (I = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRID k Branch if
Interrupt
Disabled
if (I = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
Table 4-4. Data Transfer Instructions
Mnemonic
Operands Description Op Flags
#Clocks
AVR
#Clocks
AVRxm
#Clocks
AVRxt
#Clocks
AVRrc
MOV Rd, Rr Copy Register Rd Rr None 1 1 1 1
MOVW Rd, Rr Copy Register
Pair
Rd+1:Rd Rr+1:Rr None 1 1 1 N/A
LDI Rd, K Load
Immediate
Rd K None 1 1 1 1
LDS Rd, k Load Direct
from data
space
Rd (k) None 2
(1)
2
(1)
3
(1)
2
LD Rd, X Load Indirect Rd (X) None 2
(1)
1
(1)
2
(1)
1 / 2
LD Rd, X+ Load Indirect
and Post-
Increment
Rd
X
(X)
X + 1
None 2
(1)
1
(1)
2
(1)
2 / 3
LD Rd, -X Load Indirect
and Pre-
Decrement
X
Rd
X - 1
(X)
None 2
(1)
2
(1)
2
(1)
2 / 3
LD Rd, Y Load Indirect Rd (Y) None 2
(1)
1
(1)
2
(1)
1 / 2
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
25

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR and is the answer not in the manual?

Atmel AVR Specifications

General IconGeneral
Architecture8-bit RISC
SRAMUp to 16 KB
Clock SpeedUp to 20 MHz
Operating Voltage1.8V to 5.5V
ADC10-bit ADC
Communication InterfacesSPI, I2C, USB
PackagesDIP, SOIC, QFN
Special FeaturesWatchdog Timer
Flash Memory1KB to 256KB
EEPROM64B to 4KB

Related product manuals