Mat*_*och 4 assembly avr atmel
我见过的所有AVR程序都是以如下代码开头的:
.org $0000
rjmp Reset
; ...
Reset:
; Start of program
Run Code Online (Sandbox Code Playgroud)
如果我没有使用任何中断,我可以不用rjmp并启动程序$0000吗?
在$ 0000中断向量之后立即在程序存储器位置.我想如果你没有使用任何中断,你可以在没有rjmp的情况下启动你的程序.来自ATmega 128数据表:
If the program never enables an interrupt source, the interrupt vectors are
not used, and regular program code can be placed at these locations. This is
also the case if the Reset Vector is in the Application section while the
interrupt vectors are in the Boot section or vice versa.
Run Code Online (Sandbox Code Playgroud)