📄 56805_vector_pram.asm
字号:
;----------------------------------------------------------------------
; Metrowerks Embedded Runtime Support
;
; 56805_vector.asm
;
; sample code
; Metrowerks, a Motorola Company
;
;
;
; Routines
; --------
;
; These are the interrupt vectors for the DSP56805
;
;
;----------------------------------------------------------------------
section rtlib
org p:
M56805_intRoutine:
nop
rti
M56805_illegal:
debug ; illegal instruction interrupt ($04)
nop
nop
M56805_HWSOverflow:
debug ; hardware stack overflow interrupt ($08)
nop
nop
M56805_PLL:
debug ; PLL lost of lock interrupt ($28)
nop
nop
M56805_intDef:
nop
rti
endsec
section interrupt_vectors
org p:
jmp Finit_M56805_ ; RESET ($00)
jmp M56805_intRoutine ; COP Watchdog reset ($02)
jmp M56805_intRoutine ; reserved ($04)
jmp M56805_illegal ; illegal instruction ($06)
jmp M56805_intRoutine ; Software interrupt ($08)
jmp M56805_HWSOverflow ; hardware stack overflow ($0A)
jmp M56805_intRoutine ; OnCE Trap ($0C)
jmp M56805_intRoutine ; reserved ($0E)
jmp FisrIRQA ; external interrupt A ($10)
jmp FisrIRQB ; external interrupt B ($12)
jmp M56805_intRoutine ; reserved ($14)
jmp M56805_intRoutine ; boot flash interface ($16)
jmp M56805_intRoutine ; program flash interface ($18)
jmp M56805_intRoutine ; data flash interface ($1A)
jmp M56805_intRoutine ; mscan transmitter ready ($1C)
jmp M56805_intRoutine ; mscan receiver full ($1E)
jmp M56805_intRoutine ; mscan error ($20)
jmp M56805_intRoutine ; mscan wakeup ($22)
jmp M56805_intRoutine ; program flash interface 2($24)
jmp M56805_intRoutine ; GPIO E ($26)
jmp M56805_intRoutine ; GPIO D ($28)
jmp M56805_intRoutine ; reserved ($2A)
jmp M56805_intRoutine ; GPIO B ($2C)
jmp M56805_intRoutine ; GPIO A ($2E)
jmp M56805_intRoutine ; SPI transmitted empty ($30)
jmp M56805_intRoutine ; SPI receiver full/error ($32)
jmp M56805_intRoutine ; Quad decoder #1 home sw ($34)
jmp M56805_intRoutine ; Quad decoder #1 idx pulse($36)
jmp M56805_intRoutine ; Quad decoder #0 home sw ($38)
jmp M56805_intRoutine ; Quad decoder #0 idx pulse($3A)
jmp M56805_intRoutine ; Timer D Channel 0 ($3C)
jmp M56805_intRoutine ; Timer D Channel 1 ($3E)
jmp M56805_intRoutine ; Timer D Channel 2 ($40)
jmp M56805_intRoutine ; Timer D Channel 3 ($42)
jmp M56805_intRoutine ; Timer C Channel 0 ($44)
jmp M56805_intRoutine ; Timer C Channel 1 ($46)
jmp M56805_intRoutine ; Timer C Channel 2 ($48)
jmp M56805_intRoutine ; Timer C Channel 3 ($4a)
jmp M56805_intRoutine ; Timer B Channel 0 ($4c)
jmp M56805_intRoutine ; Timer B Channel 1 ($4e)
jmp M56805_intRoutine ; Timer B Channel 2 ($50)
jmp M56805_intRoutine ; Timer B Channel 3 ($52)
jmp FisrTimerA0Compare ; Timer A Channel 0 ($54)
jmp M56805_intRoutine ; Timer A Channel 1 ($56)
jmp M56805_intRoutine ; Timer A Channel 2 ($58)
jmp M56805_intRoutine ; Timer A Channel 3 ($5a)
jmp M56805_intRoutine ; SCI #1 Transmit complete ($5c)
jmp M56805_intRoutine ; SCI #1 transmitter ready ($5e)
jmp M56805_intRoutine ; SCI #1 receiver error ($60)
jmp M56805_intRoutine ; SCI #1 receiver full ($62)
jmp M56805_intRoutine ; SCI #0 Transmit complete ($64)
jmp M56805_intRoutine ; SCI #0 transmitter ready ($66)
jmp M56805_intRoutine ; SCI #0 receiver error ($68)
jmp M56805_intRoutine ; SCI #0 receiver full ($6a)
jmp M56805_intRoutine ; ADC B Conversion complete($6c)
jmp M56805_intRoutine ; ADC A Conversion complete($6e)
jmp M56805_intRoutine ; ADC B zero crossing/error($70)
jmp M56805_intRoutine ; ADC A zero crossing/error($72)
jmp M56805_intRoutine ; Reload PWM B ($74)
jmp M56805_intRoutine ; Reload PWM A ($76)
jmp M56805_intRoutine ; PWM B Fault ($78)
jmp M56805_intRoutine ; PWM A Fault ($7a)
jmp M56805_PLL ; PLL loss of lock ($7c)
jmp M56805_intRoutine ; low voltage detector ($7e)
endsec
M56805_OMRSetting equ $0103
section rtlib
org x:
global FM56805_int_Addr
FM56805_int_Addr dc M56805_intDef ; Address of the unhandled exception
M56805_argc equ 0
global FM56805_argv
global FM56805_arge
FM56805_argv:
FM56805_arge: dc 0
endsec
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -