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 #21 background imageLoading...
Page #21 background image
3. Conditional Branch Summary
Test Boolean Mnemonic
Complementar
y Boolean Mnemonic Comment
Rd > Rr Z•(N ⊕ V) = 0 BRLT
(1)
Rd ≤ Rr Z+(N ⊕ V) =
1
BRGE* Signed
Rd ≥ Rr (N ⊕ V) = 0 BRGE Rd < Rr (N ⊕ V) = 1 BRLT Signed
Rd = Rr Z = 1 BREQ Rd ≠ Rr Z = 0 BRNE Signed
Rd ≤ Rr Z+(N ⊕ V) = 1 BRGE
(1)
Rd > Rr Z•(N ⊕ V) = 0 BRLT* Signed
Rd < Rr (N ⊕ V) = 1 BRLT Rd ≥ Rr (N ⊕ V) = 0 BRGE Signed
Rd > Rr C + Z = 0 BRLO
(1)
Rd ≤ Rr C + Z = 1 BRSH* Unsigned
Rd ≥ Rr C = 0 BRSH/
BRCC
Rd < Rr C = 1 BRLO/BRCS Unsigned
Rd = Rr Z = 1 BREQ Rd ≠ Rr Z = 0 BRNE Unsigned
Rd ≤ Rr C + Z = 1 BRSH
(1)
Rd > Rr C + Z = 0 BRLO* Unsigned
Rd < Rr C = 1 BRLO/BRCS Rd ≥ Rr C = 0 BRSH/BRCC Unsigned
Carry C = 1 BRCS No carry C = 0 BRCC Simple
Negative N = 1 BRMI Positive N = 0 BRPL Simple
Overflow V = 1 BRVS No overflow V = 0 BRVC Simple
Zero Z = 1 BREQ Not zero Z = 0 BRNE Simple
Note:  Interchange Rd and Rr in the operation before the test, i.e., CP Rd,Rr → CP Rr,Rd.
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
21

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