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 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 ..