How to turn on pins 13 and 12 at the same time?
ldi r18,0x20 ; bit 5 (pin 13) = high
out 5,r18 ; output to port B
ldi r18,0x10 ; bit 4 (pin 12) = high
out 5,r18 ; output to port B
How to turn on pins 13 and 12 at the same time?
ldi r18,0x20 ; bit 5 (pin 13) = high
out 5,r18 ; output to port B
ldi r18,0x10 ; bit 4 (pin 12) = high
out 5,r18 ; output to port B
Copyright © 2021 Jogjafile Inc.
Just bitwise OR the values together to set both;