Diferencia entre revisiones de «Obijuan:Notas sobre AVR»
De WikiRobotics
(Página creada con «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: * http://electronics.stackexcha...») |
|||
Línea 8: | Línea 8: | ||
* https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set | * https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set | ||
* http://www.avr-tutorials.com/ | * http://www.avr-tutorials.com/ | ||
+ | |||
+ | == 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 |
Revisión del 02:41 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:
- http://electronics.stackexchange.com/questions/32130/documentation-on-avr-as
- http://www.nongnu.org/avr-libc/
- AVR instruction set: http://www.atmel.com/images/atmel-0856-avr-instruction-set-manual.pdf
- https://en.wikipedia.org/wiki/Atmel_AVR_instruction_set
- http://www.avr-tutorials.com/
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