AT86RF401E ATMEL [ATMEL Corporation], AT86RF401E Datasheet - Page 45

no-image

AT86RF401E

Manufacturer Part Number
AT86RF401E
Description
Smart RF Wireless Data Microtransmitter
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Table 22. Instruction Set
1424F–RKE–12/03
Mnemonics
Arithmetic and Logic Instructions
ADD
ADC
ADIW
SUB
SUBI
SBC
SBCI
SBIW
AND
ANDI
OR
ORI
EOR
COM
NEG
SBR
CBR
INC
DEC
TST
Operands
Rd, Rr
Rd, Rr
Rdl,K
Rd, Rr
Rd, K
Rd, Rr
Rd, K
Rdl,K
Rd, Rr
Rd, K
Rd, Rr
Rd, K
Rd, Rr
Rd
Rd
Rd,K
Rd,K
Rd
Rd
Rd
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
• Bit[4] – S: Sign Bit, S = N V
The S-bit is always an exclusive or between the negative flag N and the two’s comple-
ment overflow flag V. See Table 22 for detailed information.
• Bit[3] – V: Two’s Complement Overflow Flag
The two’s complement overflow flag V supports two’s complement arithmetics. See
Table 22 below for detailed information.
• Bit[2] – N: Negative Flag
The negative flag N indicates a negative result after the different arithmetic and logic
operations. See Table 22 below for detailed information.
• Bit[1] – Z: Zero Flag
The zero flag Z indicates a zero result after the different arithmetic and logic operations.
See Table 22 below for detailed information.
• Bit[0] – C: Carry Flag
The carry flag C indicates a carry in an arithmetic or logic operation. See Table 22 for
detailed information.
Operation
Rd
Rd
Rdh:Rdl
Rd
Rd
Rd
Rd
Rdh:Rdl
Rd
Rd
Rd
Rd
Rd
Rd
Rd
Rd
Rd
Rd
Rd
Rd
Rd + Rr
Rd + Rr + C
Rd - Rr
Rd - K
Rd - Rr - C
Rd - K - C
Rd Rr
Rd K
Rd v Rr
Rd v K
Rd
$FF
$00
Rd v K
Rd ($FF - K)
Rd + 1
Rd
Rd Rd
Rdh:Rdl + K
Rdh:Rdl - K
1
Rr
Rd
Rd
Flags
Z,C,N,V,H
Z,C,N,V,H
Z,C,N,V,S
Z,C,N,V,H
Z,C,N,V,H
Z,C,N,V,H
Z,C,N,V,H
Z,C,N,V,S
Z,N,V
Z,N,V
Z,N,V
Z,N,V
Z,N,V
Z,C,N,V
Z,C,N,V,H
Z,N,V
Z,N,V
Z,N,V
Z,N,V
Z,N,V
AT86RF401
#Clocks
1
1
2
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
45

Related parts for AT86RF401E