想請教各位大大, 這是KEIL C中RTX51的一個範例程式, 我設定中斷在counter1, 2, 3, debug時只會跳到counter2, 然後counter2就無法跳到counter3了, 請問有大大知道是什麼原因嗎??謝謝喔
/******************************************************************************/
/*                          */
/*       RTX_EX2.C: A RTX-51 Application        */
/*                          */
/******************************************************************************/
#include <rtx51tny.h>      /* RTX-51 tiny functions & defines  */
#include <reg51.h>
#include <stdio.h>
//unsigned char code lab[]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10};
unsigned long counter0;        /* counter for task 0       */
unsigned long counter1;        /* counter for task 1       */
unsigned long counter2;        /* counter for task 2       */
unsigned long counter3;        /* counter for task 2       */
int i,j,k;
/*********************************** ..
訪客只能看到部份內容,免費 加入會員 或由臉書  Google  可以看到全部內容
 可以看到全部內容