This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

6713BPYP 进不了中断



我用的是6713BPYP,  .global _vectors
   .global _vector0
   .global _vector1
   .global _vector2
   .global _vector3
   .global _ext_int4;_vector4
   .global _vector7
   .global _ext_int6;_vector6
   .global _vector7     
   .global _vector8     
   .global _vector9
   .global _vector10
   .global _vector11
   .global _vector12
   .global _vector13
   .global _timer0
   .global _vector15

我的中断4是每秒4800个采样脉冲,中断6是一个秒脉冲,

我的CMD文件如下:

-c

-stack 0x02000

MEMORY
{
    VECS: o = 00000000h       l = 00200h /* reset & interrupt vectors     */
    PMEM: o = 00000200h       l = 017E00h /* intended for initialization   */
    BMEM: o = 00018000h          l = 00018000h /* .bss, .sysmem, .stack, .cinit */
}

SECTIONS
{
    .vectors    >       VECS
    .text       >       PMEM
    .switch     >       PMEM
    .cinit      >       PMEM
    .const      >       PMEM
    .bss        >       BMEM    fill = 0
    .tables     >       BMEM
    .data       >       BMEM
    .stack      >       BMEM
    .sysmem     >       BMEM
    .cio        >       BMEM
    .far        >       BMEM
}

程序能正常跑很长时间,但是会出现进步了中断4的现象,但是这个时候,程序主循环还是在正常运行的,想请教下,是什么可能的情况导致进不了中断呢