Overflow problem with SCTimer/PWM using capture registers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Overflow problem with SCTimer/PWM using capture registers.

1,526 Views
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 Kudos
Reply
3 Replies

1,515 Views
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 Kudos
Reply

1,504 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

If that, there is no method. 

0 Kudos
Reply

1,521 Views
Alice_Yang
NXP TechSupport
NXP TechSupport
0 Kudos
Reply