Flag Interrupt of CTIMER on LPC845

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

Flag Interrupt of CTIMER on LPC845

1,009件の閲覧回数
anto
Contributor II

hi
I have set the CTIMER peripheral of the LPC845 to read 3 pulses via cap0 cap1 and cap2. I have set the CCR register to trigger the interrupt on both rising and falling edges. How do I detect the type of interrupt that was triggered, whether falling or rising?  I haven't found any register for this.

0 件の賞賛
返信
1 返信

1,003件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello anto, 

Sorry there isn't the register. Some suggestions:

how about read the signal high/low in interrupt function.

or  the initialize state is know, then through the interrupt number judge rising or falling. 

or Use SCtimer six capture, CAP0 control signal 1 rising, CAP1 control signal1 falling.  CAP2 control signal 2rising, CAP3 control signal2 falling.  CAP4 control signal 3 rising, CAP5 control signal3 falling. 

 

BR

Alice

 

 

0 件の賞賛
返信