Answer the question
In order to leave comments, you need to log in
What is the simplest way to apply voltage to 7 pins in turn?
Hello.
In general, I study the work of AVR in assembler. Here, let's say I need to do sbi for each port. What is the easiest way to do this?
Here is an example with an error that shows my goal
ldi r16, 0x0
loopPortD:
sbi 0x12, r16 ; Тут ошибка ; Подать напряжение на PDx(0-7)
inc r16
cpi r16, 0x7
brne loopPortD
Answer the question
In order to leave comments, you need to log in
ldi r16, 1
loopPortD:
out PORTD, r16
; maybe a pause is needed here
lsl r16
brcc loopPortD
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question