Diferencia entre revisiones de «Obijuan:Notas sobre AVR»

De WikiRobotics
Saltar a: navegación, buscar
 
Línea 12: Línea 12:
  
 
* Más información sobre prog. en assembler: http://www.nongnu.org/avr-libc/user-manual/assembler.html
 
* Más información sobre prog. en assembler: http://www.nongnu.org/avr-libc/user-manual/assembler.html
 +
* http://www.atmel.com/webdoc/AVRLibcReferenceManual/assembler_1ass_example.html
  
 
== Ejemplo hola mundo ==
 
== Ejemplo hola mundo ==

Revisión actual del 07:00 26 dic 2015

Goal: learn more about the AVR core. Learn how to program in assembler. Implement an AVR core for the lattice FPGAs

some links to process:

Ejemplo hola mundo

Codigo:

; This is an AVR assembly code

 .org 0x00
 
end:
 rjmp end 

Para ensamblar:

$ avr-as test.asm -o test.out

Para generar el .hex:

$ avr-objcopy -j .text -j .data -O ihex test.out test.hex