|
$ KANJICODE NONE
$ XREF
NAME 78F0537DA ;78F0537DA
$ IC ( IODEFINE1.INC ) ;定义IO
;********************************************
;* *
;* VECTOR TABLE *
;* REFER PAGE 487 INTERRUPT SOURCE LIST *
;* *
;********************************************
VECTOR CSEG AT 0H
DW START ;RESET,POC,LVI,WDT INPUT
INTLVI ORG 0004H
DW START ;LOW-VOLTAGE DETECTION
INTP0 ORG 0006H
DW START ;PIN(P12.0) INPUT EDGE DETECTION
INTP1 ORG 0008H
DW START ;PIN(P3.0) INPUT EDGE DETECTION
INTP2 ORG 000AH
DW START ;PIN(P3.1) INPUT EDGE DETECTION
INTP3 ORG 000CH
DW START ;PIN(P3.2) INPUT EDGE DETECTION
INTP4 ORG 000EH
DW ISR_ZERO ;PIN(P3.3) INPUT EDGE DETECTION
INTP5 ORG 0010H
DW START ;PIN(P1.6) INPUT EDGE DETECTION
INTSRE6 ORG 0012H
DW RXDERR ;<==UART6 RECEPTION ERROR GENERATION
INTSR6 ORG 0014H
DW RECEIVE ;<==END OF UART6 RECEPTION
INTST6 ORG 0016H
DW TRANS ;<==END OF UART6 TRANSMISSION
INTST0 ORG 0018H
DW SAA_TRANS ;END OF UART0 TRANSMISSION
INTTMH1 ORG 001AH
DW START ;MATCH BETWEEN TMH1 AND CMP01
INTTMH0 ORG 001CH
DW START ;MATCH BETWEEN TMH0 AND CMP00
INTTM50 ORG 001EH
DW TM200US ;<==MATCH BETWEEN TM50 AND CR50
INTTM000 ORG 0020H
DW START ;MATCH BETWEEN TM00 AND CR000
INTTM010 ORG 0022H
DW ISR_CAPT ;<==MATCH BETWEEN TM00 AND CR010
INTAD ORG 0024H
DW START ;END OF A/D CONVERSION
INTSR0 ORG 0026H
DW SAA_RECEIVE ;END OF UART0 RECEPTION OR RECEPTION ERROR GENERATION
INTWTI ORG 0028H
DW START ;WATCH TIMER REFERENCE TIME INTERVAL SIGNAL
INTTM51 ORG 002AH
DW START ;MATCH BETWEEN TM51 AND CR51
INTKR ORG 002CH
DW START ;KEY INTERRUPT DETECTIOIN
INTWT ORG 002EH
DW START ;WATCH TIMER OVERFLOW
INTP6 ORG 0030H
DW START ;PIN(P14.0) INPUT EDGE DETECTION
INTP7 ORG 0032H
DW START ;PIN(P14.1) INPUT EDGE DETECTION
INTIIC0 ORG 0034H
DW START ;END OF IIC0 COMMUNICATION
INTCSI11 ORG 0036H
DW START ;END OF CSI11 COMMUNICATION
INTTM001 ORG 0038H
DW START ;MATCH BETWEEN TM01 AND CR001
INTTM011 ORG 003AH
DW START ;MATCH BETWEEN TM01 AND CR011
BRK_ ORG 003EH
DW START ;BRK INSTRUCTION EXECUTION
;********************************************
;* *
;* MAIN PROGRAM *
;* *
;********************************************
MAIN CSEG AT 00080H
OPTION: DB 00H,01H,00H,00H,03H
START:
;------------------------------
; 設定振盪器
;------------------------------
DI
BF RSTS,$$
SET1 AMPH
MOV OSTS,#05H
这是的部分源程序;
请问选项字节这么写有什么问题吗;
现在我的程序是可以烧录的,可是无法硬件仿真;
总是会报错误;Ra78KO error E3206:Segment "Main" can not allocate to memory-ignored
我怀疑是存储器配置有问题,但是不知道具体哪儿有问题;
请这位大侠帮忙看一下,谢谢!!!! |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|