0
Example that was testing, configure output ports and input ports, to be able to perform a sum, but are not working:
ldi r21, 0x0a
ldi r22, 0x0b
out PINB, r16
out DDRB, r16
out PORTB, r17
add r21, r22
mov r17, r21
0
Example that was testing, configure output ports and input ports, to be able to perform a sum, but are not working:
ldi r21, 0x0a
ldi r22, 0x0b
out PINB, r16
out DDRB, r16
out PORTB, r17
add r21, r22
mov r17, r21
0
To read a door door the correct is:
In r16, pinb
Browser other questions tagged assembly
You are not signed in. Login or sign up in order to post.
Reply on mobile is not good ...
– user1084
Correcting the question because I did not understand your answer...
– MagShania
Part of this example: http://www.avr-tutorials.com/digital/digital-input-output-assembly-programming-atmel-8-bits-avr-microcontrollers
– user1084