Consider each of the following instructions or groups of
instructions on the Atmel AVR
ATmega324A. How many bit combinations are used by each of these
instructions or groups of
instructions?
(a) the ADIW instruction?
(b) the NEG instruction?
(c) the AND instruction?
(d) the STD instruction?
(e) the SEZ instruction?
(f) all of the branch (BRxx) instructions?
(g) all six of the multiplication instructions?
Answer :
Solution:
Instructions are one 16-bit word long
(a) the ADIW instruction?
(b) the NEG instruction?
Rd and Rr are registers in the range R0–R31 ( 8-bit registers ).
(c) the AND instruction?
Rd and Rr are registers in the range R0–R31 ( 8-bit registers ).
(d) the STD instruction?
Rd and Rr are registers in the range R0–R31 ( 8-bit registers ).
(e) the SEZ instruction?
(f) all of the branch (BRxx) instructions?
s is a bit number in the status register (0 = C, 1 = Z, etc.,)
Rd and Rr are registers in the range R0–R31 ( 8-bit registers ).
K is an 8-bit immediate constant;
b is a bit number in a general-purpose or I/O register (0 = least significant, 7 = most significant)
(g) all six of the multiplication instructions?
NOTE : PLEASE GIVE ME UP VOTE. THANK YOU.
Get Answers For Free
Most questions answered within 1 hours.