문제

내가 본 모든 예제 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