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 #24 background imageLoading...
Page #24 background image
Mnemonic Operands Description Op Flags
#Clocks
AVR
#Clocks
AVRxm
#Clocks
AVRxt
#Clocks
AVRrc
EIJMP Extended
Indirect Jump
to (Z)
PC(15:0)
PC(21:16)
Z
EIND
None 2 2 2 N/A
JMP k Jump PC k None 3 3 3 N/A
RCALL k Relative Call
Subroutine
PC PC + k + 1 None 3 / 4
(1)
2 / 3
(1)
2 / 3 3
(1)
ICALL Indirect Call to
(Z)
PC(15:0)
PC(21:16)
Z
0
None 3 / 4
(1)
2 / 3
(1)
2 / 3 3
(1)
EICALL Extended
Indirect Call to
(Z)
PC(15:0)
PC(21:16)
Z
EIND
None 4
(1)
3
(1)
2 / 3 N/A
CALL k Call
Subroutine
PC k None 4 / 5
(1)
3 / 4
(1)
3 / 4 N/A
RET Subroutine
Return
PC STACK None 4 / 5
(1)
4 / 5
(1)
4 / 5 6
(1)
RETI Interrupt
Return
PC STACK I 4 / 5
(1)
4 / 5
(1)
4 / 5 6
(1)
CPSE Rd,Rr Compare,
skip if Equal
if (Rd = Rr)
PC
PC + 2 or 3 None 1 / 2 / 3 1 / 2 / 3 1 / 2 / 3 1 / 2
CP Rd,Rr Compare Rd - Rr Z,C,N,V,S,H 1 1 1 1
CPC Rd,Rr Compare with
Carry
Rd - Rr - C Z,C,N,V,S,H 1 1 1 1
CPI Rd,K Compare with
Immediate
Rd - K Z,C,N,V,S,H 1 1 1 1
SBRC Rr, b Skip if Bit in
Register
Cleared
if (Rr(b) = 0)
PC
PC + 2 or 3 None 1 / 2 / 3 1 / 2 / 3 1 / 2 / 3 1 / 2
SBRS Rr, b Skip if Bit in
Register Set
if (Rr(b) = 1)
PC
PC + 2 or 3 None 1 / 2 / 3 1 / 2 / 3 1 / 2 / 3 1 / 2
SBIC A, b Skip if Bit in
I/O Register
Cleared
if (I/O(A,b) =
0) PC
PC + 2 or 3 None 1 / 2 / 3 2 / 3 / 4 1 / 2 / 3 1 / 2
SBIS A, b Skip if Bit in
I/O Register
Set
If (I/O(A,b) =1)
PC
PC + 2 or 3 None 1 / 2 / 3 2 / 3 / 4 1 / 2 / 3 1 / 2
BRBS s, k Branch if
Status Flag
Set
if (SREG(s) =
1) then PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRBC s, k Branch if
Status Flag
Cleared
if (SREG(s) =
0) then PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BREQ k Branch if
Equal
if (Z = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRNE k Branch if Not
Equal
if (Z = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRCS k Branch if
Carry Set
if (C = 1) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRCC k Branch if
Carry Cleared
if (C = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
BRSH k Branch if
Same or
Higher
if (C = 0) then
PC
PC + k + 1 None 1 / 2 1 / 2 1 / 2 1 / 2
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
24

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