Overflow problem with SCTimer/PWM using capture registers.

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

Overflow problem with SCTimer/PWM using capture registers.

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

Hi,

I have been running code on a lpc845 using the SCTimer/PWM peripheral.

I need to capture and read the pulse from 4 different sources.
I have used the following technique to measure the pulse:
capture the counter value on the rising edge of the pulse, then capture the counter value on the falling edge of the pulse and do the difference to get the real value of the pulse.
The system works but when the counter comes to overflow I clearly do not have the exact reading of the pulse anymore. Does anyone have any idea how to solve this issue?

0 件の賞賛
返信
3 返答(返信)

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

hi
I used all 8 events to detect the fronts of 4 pulses to read the pulse_width, how can I detect a match?

0 件の賞賛
返信

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

If that, there is no method. 

0 件の賞賛
返信

1,524件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信