Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;
  2. ; AssemblerApplication2.asm
  3. ;
  4. ; Created: 2-10-2017 22:15:00
  5. ; Author : Evander
  6. ;
  7.  
  8.  
  9. ; Replace with your application code
  10. .include "m328pdef.inc"
  11. .def leds = r16
  12. .def actuator = r17
  13.  
  14. ldi actuator, 0x00 ; Zet Switches op input
  15. out DDRB, actuator
  16. ldi leds, 0xff ; Zet leds op output
  17. out DDRD, leds
  18. rjmp begin
  19.  
  20. begin:
  21.     in actuator, PINB
  22.     out PORTD, actuator
  23.     rjmp begin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement