Created
March 18, 2012 09:26
-
-
Save inkrement/2070147 to your computer and use it in GitHub Desktop.
ATMEL 1280 port a leds on asm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Christian Hotz-Behofsits 2012 | |
; i/o example in asm (atmega 1280) | |
; set leds on button event | |
.NOLIST | |
.INCLUDE "m1280def.inc" | |
.LIST | |
.section .text | |
.org 0x0000 | |
Reset: | |
rjmp main | |
main: | |
ser R16 | |
out DDRA, R16 | |
out PORTA, R16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment