4

私がこれまでに見たすべてのサンプル AVR プログラムは、次のようなコードで始まります。

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

割り込みを使用していない場合は、を使用せずにrjmpプログラムを開始でき$0000ますか?

4

1 に答える 1

7

$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.
于 2009-06-05T16:44:23.957 に答える