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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

499件の閲覧回数
lpcware
NXP Employee
NXP Employee
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
ラベル(1)
0 件の賞賛
返信
0 返答(返信)