ARMmbed / ci-test-shield

mbed CI Test Shield
Apache License 2.0
9 stars 36 forks source link

Compute PWM high state duration in micro secondes to avoid instability #90

Closed ABOSTM closed 5 years ago

ABOSTM commented 5 years ago

Issue: Instability in test results detected when testing https://github.com/ARMmbed/mbed-os/pull/10824 When computing 10ms period with duty cycle 10%, we try to measure 1ms only. Thus we cannot use 1ms precision measurement(read_ms()). It used to cause instability in test results.

fix: Compute PWM high state duration in micro seconds instead of milli seconds to avoid instability.

jeromecoutant commented 5 years ago

@donatieng @c1728p9 @MarceloSalazar

jeromecoutant commented 5 years ago

Hi Any update ?

0xc0170 commented 5 years ago

@ARMmbed/mbed-os-hal Can anyone review?

jeromecoutant commented 5 years ago

Any update ? Thx