我见过的所有示例AVR程序的代码开始如以下内容:

.org $0000
    rjmp Reset
    ; ...
Reset:
    ; Start of program

如果我没有利用任何中断的我能做到不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.
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top