AVRのプログラムは、常に相対ジャンプ命令で開始する必要がありますか?
質問
私が今まで見てきたすべての例の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.
所属していません StackOverflow