how to program multiple interrupts like oc5ISR and rtiISR?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to program multiple interrupts like oc5ISR and rtiISR?

1,747 Views
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 Kudos
Reply
1 Reply

1,651 Views
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 Kudos
Reply