AVRのプログラムは、常に相対ジャンプ命令で開始する必要がありますか?

StackOverflow https://stackoverflow.com/questions/956851

  •  12-09-2019
  •  | 
  •  

質問

私が今まで見てきたすべての例の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