English
Language : 

ATTINY1634_14 Datasheet, PDF (248/259 Pages) ATMEL Corporation – 8-bit AVR Microcontroller with 16KB In-system
28. Instruction Set Summary
Mnemonics
Operands
Arithmetic AND Logic Instructions
ADD
Rd, Rr
ADC
Rd, Rr
ADIW
Rdl,K
SUB
Rd, Rr
SUBI
Rd, K
SBC
Rd, Rr
SBCI
Rd, K
SBIW
Rdl,K
AND
Rd, Rr
ANDI
Rd, K
OR
Rd, Rr
ORI
Rd, K
EOR
Rd, Rr
COM
Rd
NEG
Rd
SBR
Rd,K
CBR
Rd,K
INC
Rd
DEC
Rd
TST
Rd
CLR
Rd
SER
Rd
Branch Instructions
JMP
k
RJMP
k
IJMP
CALL
k
RCALL
k
ICALL
RET
RETI
CPSE
Rd,Rr
CP
Rd,Rr
CPC
Rd,Rr
CPI
Rd,K
SBRC
Rr, b
SBRS
Rr, b
SBIC
P, b
SBIS
P, b
BRBS
s, k
BRBC
s, k
BREQ
k
BRNE
k
BRCS
k
BRCC
k
Description
Add two registers
Add with carry two registers
Add immediate to word
Subtract two registers
Subtract constant from register
Subtract with carry two registers
Subtract with carry constant from register
Subtract immediate from word
Logical AND registers
Logical AND register and constant
Logical OR registers
Logical OR register and constant
Exclusive OR registers
One’s complement
Two’s complement
Set bit(s) in register
Clear bit(s) in register
Increment
Decrement
Test for zero or minus
Clear register
Set register
Direct jump
Relative jump
Indirect jump to (Z)
Direct subroutine
Relative subroutine call
Indirect call to (Z)
Subroutine return
Interrupt return
Compare, skip if equal
Compare
Compare with carry
Compare register with immediate
Skip if bit in register cleared
Skip if bit in register is set
Skip if bit in I/O register cleared
Skip if bit in I/O register is set
Branch if status flag set
Branch if status flag cleared
Branch if equal
Branch if not equal
Branch if carry set
Branch if carry cleared
Operation
Flags
#Clocks
Rd ← Rd + Rr
Rd ← Rd + Rr + C
Rdh:Rdl ← Rdh:Rdl + K
Rd ← Rd - Rr
Rd ← Rd - K
Rd ← Rd - Rr - C
Rd ← Rd - K - C
Rdh:Rdl ← Rdh:Rdl - K
Rd ← Rd • Rr
Rd ← Rd • K
Rd ← Rd v Rr
Rd ← Rd v K
Rd ← Rd ⊕ Rr
Rd ← 0xFF − Rd
Rd ← 0x00 − Rd
Rd ← Rd v K
Rd ← Rd • (0xFF - K)
Rd ← Rd + 1
Rd ← Rd − 1
Rd ← Rd • Rd
Rd ← Rd ⊕ Rd
Rd ← 0xFF
Z,C,N,V,H
1
Z,C,N,V,H
1
Z,C,N,V,S
2
Z,C,N,V,H
1
Z,C,N,V,H
1
Z,C,N,V,H
1
Z,C,N,V,H
1
Z,C,N,V,S
2
Z,N,V
1
Z,N,V
1
Z,N,V
1
Z,N,V
1
Z,N,V
1
Z,C,N,V
1
Z,C,N,V,H
1
Z,N,V
1
Z,N,V
1
Z,N,V
1
Z,N,V
1
Z,N,V
1
Z,N,V
1
None
1
PC ← k
PC ← PC + k + 1
PC ← Z
PC ← k
PC ← PC + k + 1
PC ← Z
PC ← STACK
PC ← STACK
if (Rd = Rr) PC ← PC + 2 or 3
Rd − Rr
Rd − Rr − C
Rd − K
if (Rr(b)=0) PC ← PC + 2 or 3
if (Rr(b)=1) PC ← PC + 2 or 3
if (P(b)=0) PC ← PC + 2 or 3
if (P(b)=1) PC ← PC + 2 or 3
if (SREG(s) = 1) then PC←PC+k + 1
if (SREG(s) = 0) then PC←PC+k + 1
if (Z = 1) then PC ← PC + k + 1
if (Z = 0) then PC ← PC + k + 1
if (C = 1) then PC ← PC + k + 1
if (C = 0) then PC ← PC + k + 1
None
None
None
None
None
None
None
I
None
Z, N,V,C,H
Z, N,V,C,H
Z, N,V,C,H
None
None
None
None
None
None
None
None
None
None
3
2
2
4
3
3
4
4
1/2/3
1
1
1
1/2/3
1/2/3
1/2/3
1/2/3
1/2
1/2
1/2
1/2
1/2
1/2
248 ATtiny1634 [PRELIMINARY DATASHEET]
9296C–AVR–07/14