Page 1 of 1

Execute the following program using the following numbers LDI R21,0x LDI R22,0x LDI R23,0xFF OUT DDRB

Posted: Fri May 20, 2022 12:03 pm
by answerhappygod
Execute the following program
using the following numbers
LDI
R21,0x
LDI
R22,0x
LDI
R23,0xFF
OUT
DDRB,R23 ; Port B is output
ADD R21,
R22
BRVC NEXT
LDI
R23,0xAA
OUT
PORTB,R23 ; send 0xAA to PORTB
LDI
R21,0x00 ; Clear R21
NEXT: