lpcware

(LPC2148) Fast interrupt and vectored interrupt both from timer0 peripherial?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by MikeHolt on Wed Sep 03 07:20:26 MST 2014
Hello,
I would like to use a FIQ for a capture-event (Pin 0.2) along with FreeRTOS, which uses a vectored interrupt from timer0 for tick-generation. The LPC2148 manual states: Each peripheral device has one interrupt line connected to the Vectored Interrupt Controller, but may have several internal interrupt flags. So is it possible to register both a fast and a vectored interrupt for timer0? I tried that already but got system freezes. What I also tried was to modify portISR in the following way:
if ( T0IR & portTIMER_MATCH_ISR_BIT ) { ... }
else { ... }
which works, but is not accurate/fast enough. I also cannot switch FreeRTOS to use timer1 for the tick-generation, as timer1 is already used for different purposes.
I would like to know if I just have to try a little harder or give up the FIQ right away. Any help is greatly appreciated.
Thanks, Mike

Outcomes