how to program multiple interrupts like oc5ISR and rtiISR?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to program multiple interrupts like oc5ISR and rtiISR?

1,642件の閲覧回数
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,546件の閲覧回数
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 件の賞賛
返信