how to program multiple interrupts like oc5ISR and rtiISR?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to program multiple interrupts like oc5ISR and rtiISR?

1,748 次查看
dmek
Contributor I

I am having an issue trying to get both the buzzer and 7 segment display to work in the same code.

the Buzzer is using oc5ISR:

extern void near oc5ISR(void);
#pragma CODE_SEG __NEAR_SEG NON_BANKED
#pragma CODE_SEG DEFAULT // Change code section to DEFAULT.
typedef void (*near tIsrFunc)(void);
const tIsrFunc _vect[] @0xFFE4 = {
oc5ISR
};

 

while the 7 segment is using rtiISR:

extern void near rtiISR(void);
#pragma CODE_SEG __NEAR_SEG NON_BANKED
#pragma CODE_SEG __DEFAULT
typedef void (*near tIsrFunc)(void);
const tIsrFunc _vect[] @0xFFF0 = {
rtiISR
};

 

Its throwing an error when tIsrFunc_vect[] is redefined on the rtiISR. How do i go about fixing this issue?

Thanks in advance!

0 项奖励
回复
1 回复

1,652 次查看
Cyndrila
Contributor I

I am having an issue trying to get both the buzzer and 7 segment display to work in the same code.

the Buzzer is using oc5ISR:

extern void near oc5ISR(void);
#pragma CODE_SEG __NEAR_SEG NON_BANKED
#pragma CODE_SEG DEFAULT // Change code section to DEFAULT.
typedef void (*near tIsrFunc)(void);
const tIsrFunc _vect[] @0xFFE4 = {
oc5ISR
};

 

while the 7 segment is using rtiISR:

extern void near rtiISR(void);
#pragma CODE_SEG __NEAR_SEG NON_BANKED
#pragma CODE_SEG __DEFAULT
typedef void (*near tIsrFunc)(void);
const tIsrFunc _vect[] @0xFFF0 = {
rtiISR
};

 

Its throwing an error when tIsrFunc_vect[] is redefined on the rtiISR. How do i go about fixing this issue?

Thanks in advance!

I was looking for same exact thing ..!!

 

if you could find please tell me .. 

 

0 项奖励
回复