Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
;build 10.device atmega644.nolist.include "m644.inc".listldi r16, 0xFF ;set all pins to act as groundsts ddrA, r16sts ddrB, r16sts ddrC, r16sts ddrD, r16sts portA, r16sts portB, r16sts portC, r16sts portD, r16ldi r16, 0x00sts pinA, r16 ;set the pins too just in casests pinB, r16sts pinC, r16sts pinD, r16ldi r16, 0xFF ;set all pin D to outputsts portD, r16infloop:rjmp infloop