📄 sfr_245.inc
字号:
;-------------------------------------------------------
; UART0/SSI0 Receive Interrupt
;-------------------------------------------------------
s0ric .equ 004ah
;
ilvl0_s0ric .btequ 0,s0ric ; Interrupt priority level select bit0
ilvl1_s0ric .btequ 1,s0ric ; Interrupt priority level select bit1
ilvl2_s0ric .btequ 2,s0ric ; Interrupt priority level select bit2
ir_s0ric .btequ 3,s0ric ; Interrupt request bit
;
;-------------------------------------------------------
; A/D Interrupt Control Register
;-------------------------------------------------------
adic .equ 004bh
;
ilvl0_adic .btequ 0,adic ; Interrupt priority level select bit0
ilvl1_adic .btequ 1,adic ; Interrupt priority level select bit1
ilvl2_adic .btequ 2,adic ; Interrupt priority level select bit2
ir_adic .btequ 3,adic ; Interrupt request bit
;
;-------------------------------------------------------
; DMA0 Interrupt Control Register
;-------------------------------------------------------
dm0ic .equ 004ch
;
ilvl0_dm0ic .btequ 0,dm0ic ; Interrupt priority level select bit0
ilvl1_dm0ic .btequ 1,dm0ic ; Interrupt priority level select bit1
ilvl2_dm0ic .btequ 2,dm0ic ; Interrupt priority level select bit2
ir_dm0ic .btequ 3,dm0ic ; Interrupt request bit
;
;-------------------------------------------------------
; UART3 Transmit Interrupt Control Register
;-------------------------------------------------------
s3tic .equ 004dh
;
ilvl0_s3tic .btequ 0,s3tic ; Interrupt priority level select bit0
ilvl1_s3tic .btequ 1,s3tic ; Interrupt priority level select bit1
ilvl2_s3tic .btequ 2,s3tic ; Interrupt priority level select bit2
ir_s3tic .btequ 3,s3tic ; Interrupt request bit
;
;-------------------------------------------------------
; DMA1 Interrupt Control Register
;-------------------------------------------------------
dm1ic .equ 004eh
;
ilvl0_dm1ic .btequ 0,dm1ic ; Interrupt priority level select bit0
ilvl1_dm1ic .btequ 1,dm1ic ; Interrupt priority level select bit1
ilvl2_dm1ic .btequ 2,dm1ic ; Interrupt priority level select bit2
ir_dm1ic .btequ 3,dm1ic ; Interrupt request bit
;
;-------------------------------------------------------
; UART2 Transmit Interrupt Control Register
;-------------------------------------------------------
s2tic .equ 004fh
;
ilvl0_s2tic .btequ 0,s2tic ; Interrupt priority level select bit0
ilvl1_s2tic .btequ 1,s2tic ; Interrupt priority level select bit1
ilvl2_s2tic .btequ 2,s2tic ; Interrupt priority level select bit2
ir_s2tic .btequ 3,s2tic ; Interrupt request bit
;
;-------------------------------------------------------
; DMA2 Interrupt Control Register
;-------------------------------------------------------
dm2ic .equ 0050h
;
ilvl0_dm2ic .btequ 0,dm2ic ; Interrupt priority level select bit0
ilvl1_dm2ic .btequ 1,dm2ic ; Interrupt priority level select bit1
ilvl2_dm2ic .btequ 2,dm2ic ; Interrupt priority level select bit2
ir_dm2ic .btequ 3,dm2ic ; Interrupt request bit
;
;-------------------------------------------------------
; UART1/SSI1 Transmit Interrupt Control Register
;-------------------------------------------------------
s1tic .equ 0051h
;
ilvl0_s1tic .btequ 0,s1tic ; Interrupt priority level select bit0
ilvl1_s1tic .btequ 1,s1tic ; Interrupt priority level select bit1
ilvl2_s1tic .btequ 2,s1tic ; Interrupt priority level select bit2
ir_s1tic .btequ 3,s1tic ; Interrupt request bit
;
;-------------------------------------------------------
; DMA3 Interrupt Control Register
;-------------------------------------------------------
dm3ic .equ 0052h
;
ilvl0_dm3ic .btequ 0,dm3ic ; Interrupt priority level select bit0
ilvl1_dm3ic .btequ 1,dm3ic ; Interrupt priority level select bit1
ilvl2_dm3ic .btequ 2,dm3ic ; Interrupt priority level select bit2
ir_dm3ic .btequ 3,dm3ic ; Interrupt request bit
;
;-------------------------------------------------------
; UART0/SSI0 Transmit Interrupt Control Register
;-------------------------------------------------------
s0tic .equ 0053h
;
ilvl0_s0tic .btequ 0,s0tic ; Interrupt priority level select bit0
ilvl1_s0tic .btequ 1,s0tic ; Interrupt priority level select bit1
ilvl2_s0tic .btequ 2,s0tic ; Interrupt priority level select bit2
ir_s0tic .btequ 3,s0tic ; Interrupt request bit
;
;-------------------------------------------------------
; Timer A0 Interrupt Control Register
;-------------------------------------------------------
ta0ic .equ 0054h
;
ilvl0_ta0ic .btequ 0,ta0ic ; Interrupt priority level select bit0
ilvl1_ta0ic .btequ 1,ta0ic ; Interrupt priority level select bit1
ilvl2_ta0ic .btequ 2,ta0ic ; Interrupt priority level select bit2
ir_ta0ic .btequ 3,ta0ic ; Interrupt request bit
;
;-------------------------------------------------------
; UART3 Receive Interrupt Control Register
;-------------------------------------------------------
s3ric .equ 0055h
;
ilvl0_s3ric .btequ 0,s3ric ; Interrupt priority level select bit0
ilvl1_s3ric .btequ 1,s3ric ; Interrupt priority level select bit1
ilvl2_s3ric .btequ 2,s3ric ; Interrupt priority level select bit2
ir_s3ric .btequ 3,s3ric ; Interrupt request bit
;
;-------------------------------------------------------
; USB Suspend Interrupt Control Register
;-------------------------------------------------------
suspic .equ 0056h
;
ilvl0_suspic .btequ 0,suspic ; Interrupt priority level select bit0
ilvl1_suspic .btequ 1,suspic ; Interrupt priority level select bit1
ilvl2_suspic .btequ 2,suspic ; Interrupt priority level select bit2
ir_suspic .btequ 3,suspic ; Interrupt request bit
;
;-------------------------------------------------------
; Timer A3 Interrupt Control Register
;-------------------------------------------------------
ta3ic .equ 0057h
;
ilvl0_ta3ic .btequ 0,ta3ic ; Interrupt priority level select bit0
ilvl1_ta3ic .btequ 1,ta3ic ; Interrupt priority level select bit1
ilvl2_ta3ic .btequ 2,ta3ic ; Interrupt priority level select bit2
ir_ta3ic .btequ 3,ta3ic ; Interrupt request bit
;
;-------------------------------------------------------
; USB Resume Interrupt Control Register
;-------------------------------------------------------
rsmic .equ 0058h
;
ilvl0_rsmic .btequ 0,rsmic ; Interrupt priority level select bit0
ilvl1_rsmic .btequ 1,rsmic ; Interrupt priority level select bit1
ilvl2_rsmic .btequ 2,rsmic ; Interrupt priority level select bit2
ir_rsmic .btequ 3,rsmic ; Interrupt request bit
;
;-------------------------------------------------------
; Timer A4 Interrupt Control Register
;-------------------------------------------------------
ta4ic .equ 0059h
;
ilvl0_ta4ic .btequ 0,ta4ic ; Interrupt priority level select bit0
ilvl1_ta4ic .btequ 1,ta4ic ; Interrupt priority level select bit1
ilvl2_ta4ic .btequ 2,ta4ic ; Interrupt priority level select bit2
ir_ta4ic .btequ 3,ta4ic ; Interrupt request bit
;
;-------------------------------------------------------
; USB Reset Interrupt Control Register
;-------------------------------------------------------
rstic .equ 005ah
;
ilvl0_rstic .btequ 0,rstic ; Interrupt priority level select bit0
ilvl1_rstic .btequ 1,rstic ; Interrupt priority level select bit1
ilvl2_rstic .btequ 2,rstic ; Interrupt priority level select bit2
ir_rstic .btequ 3,rstic ; Interrupt request bit
;
;-------------------------------------------------------
; USB SOF Interrupt Control Register
;-------------------------------------------------------
sofic .equ 005bh
;
ilvl0_sofic .btequ 0,sofic ; Interrupt priority level select bit0
ilvl1_sofic .btequ 1,sofic ; Interrupt priority level select bit1
ilvl2_sofic .btequ 2,sofic ; Interrupt priority level select bit2
ir_sofic .btequ 3,sofic ; Interrupt request bit
;
;-------------------------------------------------------
; USB VBUS Detect Interrupt Control Register
;-------------------------------------------------------
vbsic .equ 005ch
;
ilvl0_vbsic .btequ 0,vbsic ; Interrupt priority level select bit0
ilvl1_vbsic .btequ 1,vbsic ; Interrupt priority level select bit1
ilvl2_vbsic .btequ 2,vbsic ; Interrupt priority level select bit2
ir_vbsic .btequ 3,vbsic ; Interrupt request bit
;
;-------------------------------------------------------
; USB Function Interrupt Control Register
;-------------------------------------------------------
usbfic .equ 005dh
;
ilvl0_usbfic .btequ 0,usbfic ; Interrupt priority level select bit0
ilvl1_usbfic .btequ 1,usbfic ; Interrupt priority level select bit1
ilvl2_usbfic .btequ 2,usbfic ; Interrupt priority level select bit2
ir_usbfic .btequ 3,usbfic ; Interrupt request bit
;
;-------------------------------------------------------
; INT2 Interrupt Control Register
;-------------------------------------------------------
int2ic .equ 005eh
;
ilvl0_int2ic .btequ 0,int2ic ; Interrupt priority level select bit0
ilvl1_int2ic .btequ 1,int2ic ; Interrupt priority level select bit1
ilvl2_int2ic .btequ 2,int2ic ; Interrupt priority level select bit2
ir_int2ic .btequ 3,int2ic ; Interrupt request bit
pol_int2ic .btequ 4,int2ic ; Interrupt polarity select bit
;
;-------------------------------------------------------
; INT0 Interrupt Control Register
;-------------------------------------------------------
int0ic .equ 005fh
;
ilvl0_int0ic .btequ 0,int0ic ; Interrupt priority level select bit0
ilvl1_int0ic .btequ 1,int0ic ; Interrupt priority level select bit1
ilvl2_int0ic .btequ 2,int0ic ; Interrupt priority level select bit2
ir_int0ic .btequ 3,int0ic ; Interrupt request bit
pol_int0ic .btequ 4,int0ic ; Interrupt polarity select bit
;
;-------------------------------------------------------
; DMA2 Source Pointer Register
;-------------------------------------------------------
sar2 .equ 0180h
sar2l .equ sar2 ; DMA2 source address low byte
sar2m .equ sar2+1 ; DMA2 source address middle byte
sar2h .equ sar2+2 ; DMA2 source address high byte
;
;-------------------------------------------------------
; DMA2 Destination Pointer Register
;-------------------------------------------------------
dar2 .equ 0184h
dar2l .equ dar2 ; DMA2 destination address low byte
dar2m .equ dar2+1 ; DMA2 destination address middle byte
dar2h .equ dar2+2 ; DMA2 destination address high byte
;
;-------------------------------------------------------
; DMA2 Transfer Counter Register
;-------------------------------------------------------
tcr2 .equ 0188h
tcr2l .equ tcr2 ; DMA2 transfer counter low
tcr2h .equ tcr2+1 ; DMA2 transfer counter high
;
;-------------------------------------------------------
; DMA2 Control Register
;-------------------------------------------------------
dm2con .equ 018ch
;
dmbit_d2 .btequ 0,dm2con ; Transfer unit bit select bit
dmasl_d2 .btequ 1,dm2con ; Repeat transfer mode select bit
dmas_d2 .btequ 2,dm2con ; DMA2 request bit
dmae_d2 .btequ 3,dm2con ; DMA2 enable bit
dsd_d2 .btequ 4,dm2con ; Source address direction select bit
dad_d2 .btequ 5,dm2con ; Destination address direction select bit
;
;-------------------------------------------------------
; DMA3 Source Pointer Register
;-------------------------------------------------------
sar3 .equ 0190h
sar3l .equ sar3 ; DMA3 source address low byte
sar3m .equ sar3+1 ; DMA3 source address middle byte
sar3h .equ sar3+2 ; DMA3 source address high byte
;
;-------------------------------------------------------
; DMA3 Destination Pointer Register
;-------------------------------------------------------
dar3 .equ 0194h
dar3l .equ dar3 ; DMA3 destination address low byte
dar3m .equ dar3+1 ; DMA3 destination address middle byte
dar3h .equ dar3+2 ; DMA3 destination address high byte
;
;-------------------------------------------------------
; DMA3 Transfer Counter Register
;-------------------------------------------------------
tcr3 .equ 0198h
tcr3l .equ tcr3 ; DMA3 transfer counter low
tcr3h .equ tcr3+1 ; DMA3 transfer counter high
;
;-------------------------------------------------------
; DMA3 Control Register
;-------------------------------------------------------
dm3con .equ 019ch
;
dmbit_d3 .btequ 0,dm3con ; Transfer unit bit select bit
dmasl_d3 .btequ 1,dm3con ; Repeat transfer mode select bit
dmas_d3 .btequ 2,dm3con ; DMA3 request bit
dmae_d3 .btequ 3,dm3con ; DMA3 enable bit
dsd_d3 .btequ 4,dm3con ; Source address direction select bit
dad_d3 .btequ 5,dm3con ; Destination address direction select bit
;
;-------------------------------------------------------
; USB Function Address Register
;-------------------------------------------------------
usba .equ 0280h
;
;-------------------------------------------------------
; USB Power Management Register
;-------------------------------------------------------
usbpm .equ 0282h
;
suspend .btequ 0,usbpm ; suspend flag
wakeup .btequ 1,usbpm ; remote wakeup bit
;
;-------------------------------------------------------
; USB Interrupt Status Register
;-------------------------------------------------------
usbis .equ 0284h
usbisl .equ usbis ; low byte
usbish .equ usbis+1 ; high byte
;
intst0 .btequ 0,usbis ; EP1 IN interrupt status flag
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -