English
Language : 

ATMEGA8U2_14 Datasheet, PDF (293/310 Pages) ATMEL Corporation – 125 Powerful Instructions – Most Single Clock Cycle Execution
Mnemonics
ROL
ROR
ASR
SWAP
BSET
BCLR
BST
BLD
SEC
CLC
SEN
CLN
SEZ
CLZ
SEI
CLI
SES
CLS
SEV
CLV
SET
CLT
SEH
CLH
MOV
MOVW
LDI
LD
LD
LD
LD
LD
LD
LDD
LD
LD
LD
LDD
LDS
ST
ST
ST
ST
ST
ST
STD
ST
ST
ST
STD
STS
LPM
LPM
LPM
SPM
IN
OUT
PUSH
POP
NOP
SLEEP
WDR
BREAK
Operands
Description
Rd
Rotate Left Through Carry
Rd
Rotate Right Through Carry
Rd
Arithmetic Shift Right
Rd
Swap Nibbles
s
Flag Set
s
Flag Clear
Rr, b
Bit Store from Register to T
Rd, b
Bit load from T to Register
Set Carry
Clear Carry
Set Negative Flag
Clear Negative Flag
Set Zero Flag
Clear Zero Flag
Global Interrupt Enable
Global Interrupt Disable
Set Signed Test Flag
Clear Signed Test Flag
Set Twos Complement Overflow.
Clear Twos Complement Overflow
Set T in SREG
Clear T in SREG
Set Half Carry Flag in SREG
Clear Half Carry Flag in SREG
DATA TRANSFER INSTRUCTIONS
Rd, Rr
Move Between Registers
Rd, Rr
Copy Register Word
Rd, K
Load Immediate
Rd, X
Load Indirect
Rd, X+
Load Indirect and Post-Inc.
Rd, - X
Load Indirect and Pre-Dec.
Rd, Y
Load Indirect
Rd, Y+
Load Indirect and Post-Inc.
Rd, - Y
Load Indirect and Pre-Dec.
Rd,Y+q
Load Indirect with Displacement
Rd, Z
Load Indirect
Rd, Z+
Load Indirect and Post-Inc.
Rd, -Z
Load Indirect and Pre-Dec.
Rd, Z+q
Load Indirect with Displacement
Rd, k
Load Direct from SRAM
X, Rr
Store Indirect
X+, Rr
Store Indirect and Post-Inc.
- X, Rr
Store Indirect and Pre-Dec.
Y, Rr
Store Indirect
Y+, Rr
Store Indirect and Post-Inc.
- Y, Rr
Store Indirect and Pre-Dec.
Y+q,Rr
Store Indirect with Displacement
Z, Rr
Store Indirect
Z+, Rr
Store Indirect and Post-Inc.
-Z, Rr
Store Indirect and Pre-Dec.
Z+q,Rr
Store Indirect with Displacement
k, Rr
Store Direct to SRAM
Load Program Memory
Rd, Z
Load Program Memory
Rd, Z+
Load Program Memory and Post-Inc
Store Program Memory
Rd, P
In Port
P, Rr
Out Port
Rr
Push Register on Stack
Rd
Pop Register from Stack
MCU CONTROL INSTRUCTIONS
No Operation
Sleep
Watchdog Reset
Break
7799D–AVR–11/10
ATmega8U2/16U2/32U2
Operation
Rd(0)C,Rd(n+1) Rd(n),CRd(7)
Rd(7)C,Rd(n) Rd(n+1),CRd(0)
Rd(n)  Rd(n+1), n=0..6
Rd(3..0)Rd(7..4),Rd(7..4)Rd(3..0)
SREG(s)  1
SREG(s)  0
T  Rr(b)
Rd(b)  T
C1
C0
N1
N0
Z1
Z0
I1
I 0
S1
S0
V1
V0
T1
T0
H1
H0
Rd  Rr
Rd+1:Rd  Rr+1:Rr
Rd  K
Rd  (X)
Rd  (X), X  X + 1
X  X - 1, Rd  (X)
Rd  (Y)
Rd  (Y), Y  Y + 1
Y  Y - 1, Rd  (Y)
Rd  (Y + q)
Rd  (Z)
Rd  (Z), Z  Z+1
Z  Z - 1, Rd  (Z)
Rd  (Z + q)
Rd  (k)
(X) Rr
(X) Rr, X  X + 1
X  X - 1, (X)  Rr
(Y)  Rr
(Y)  Rr, Y  Y + 1
Y  Y - 1, (Y)  Rr
(Y + q)  Rr
(Z)  Rr
(Z)  Rr, Z  Z + 1
Z  Z - 1, (Z)  Rr
(Z + q)  Rr
(k)  Rr
R0  (Z)
Rd  (Z)
Rd  (Z), Z  Z+1
(Z)  R1:R0
Rd  P
P  Rr
STACK  Rr
Rd  STACK
(see specific descr. for Sleep function)
(see specific descr. for WDR/timer)
For On-chip Debug Only
Flags
Z,C,N,V
Z,C,N,V
Z,C,N,V
None
SREG(s)
SREG(s)
T
None
C
C
N
N
Z
Z
I
I
S
S
V
V
T
T
H
H
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
#Clocks
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
3
3
-
1
1
2
2
1
1
1
N/A
293