Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; AssemblerApplication2.asm
- ;
- ; Created: 2-10-2017 22:15:00
- ; Author : Evander
- ;
- ; Replace with your application code
- .include "m328pdef.inc"
- .def leds = r16
- .def actuator = r17
- ldi actuator, 0x00 ; Zet Switches op input
- out DDRB, actuator
- ldi leds, 0xff ; Zet leds op output
- out DDRD, leds
- rjmp begin
- begin:
- in actuator, PINB
- out PORTD, actuator
- rjmp begin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement