I'm using a PIC32MX795512L in two slightly different situations and getting reliable interrupt activity.
Situation1
Using a timer to produce a fixed output frequency by toggling an output in a timer interrupt.
I have other lower priority interrupts running as well as the highest priority timer.
I get random jitter (pulse edges delayed by perhaps 300us) in the output frequency (680Hz) which i believe is down to the timer interrupt being delayed by another interrupt ie. I don't think the higher priority interrupt is prempting the lower priority interrupt.
Situation2
Using a second PIC to detect the first PIC output pulse train (generated above) using an alternately triggered external interrupt to generate an output.
I have other lower priority interrupts running as well as the highest priority external interrupt.
I get random delays on the output that sometimes completely miss a whole pulse cycle (ie a delay of more than 700us).
Again I don't think the higher priority interrupt is prempting the lower priority interrupt.
Do anyone know if interrupt priorities are actually working on this chip with this compiler?
Any suggestions what I could be doing wrong if the answer to the question above is positive?
Interrupt priorities
Re: Interrupt priorities
Post subject: Stuck in Single vector interrupt
appears to be about the same subject, was this ever fixed?
I'm trying the suggested fix from that post
appears to be about the same subject, was this ever fixed?
I'm trying the suggested fix from that post
Re: Interrupt priorities
I have tried this suggestion and in both situations it appears to fix the issue, I'm not particularly happy about it as it looks like a bodge and I have a horrible feeling it will bite me later with some knock-on effect on some other code.
Still interested what ME have to say about it as this looks like a 2 year old problem that they don't seem to have fixed.
Still interested what ME have to say about it as this looks like a 2 year old problem that they don't seem to have fixed.
Re: Interrupt priorities
This problem is more than 4 years old
still the same old mikro some things never get fixed and device support stay behind the times
P.Erasmus
Saratov,Russia
--------------------------------------------------------------
Saratov,Russia
--------------------------------------------------------------
Re: Interrupt priorities
Hi all
Did you try to enable Multi-vector Interrupt like
INTCONbits.MVEC =1;
Kind regards
praokb
Did you try to enable Multi-vector Interrupt like
INTCONbits.MVEC =1;
Kind regards
praokb
Re: Interrupt priorities
I would have assumed that setting multivector in the project setup would do that for me automatically, I need to check if that is actually whats not working.