Hi,
i am using a TimerInterrupt, a SCI interrupt and the ADC-Interrupt for the mainISR.
In the hal_tutorial.pdf there is said, that i have to give a higher priority to the ADC interrupt, when using sci. This sounds gread and i want to do this. Actually it doesn't work.
I changed the following code lines:
void HAL_enableAdcInts(HAL_Handle handle)
{
HAL_Obj *obj = (HAL_Obj *)handle;
// enable the PIE interrupts associated with the ADC interrupts
PIE_enableAdcInt(obj->pieHandle,ADC_IntNumber_1HP);
// enable the ADC interrupts
ADC_enableInt(obj->adcHandle,ADC_IntNumber_1);
// enable the cpu interrupt for ADC interrupts
CPU_enableInt(obj->cpuHandle,CPU_IntNumber_1);
return;
} // end of HAL_enableAdcInts() function
And the Init vector table
pie->TINT0 = &timer0ISR;
pie->ADCINT1_HP = &mainISR;
pie->SCIRXINTB =&sciBRxISR;
The problem: Main isr is not triggered, th DRV doesn't initialize. At EOC of Channel 7 i trigger another conversion. This also doesn't work.
As my timer also is also enabled to CPU_IntNumber_1 i thought this might be the problem. But also changing the IntNumber of the Timer interrupt doesn't work.
Am i missing sth? I looked into the manual of the processor and so on but i can't find the problem.
Changing ADC interrupt to IntNumber 1 doesn't work. Then i Change the IntNumber of the Timer Interrupt to 5 the Timer interrupt doesn'T work. Is there any other Setting i have to check?
Everything works when sci has intNumber 9 and ADC hat IntNumber10