p3p / pio-framework-arduino-lpc176x

10 stars 20 forks source link

Modifying LER with or'd bit_value or bitset_value worked #46

Closed descipher closed 3 years ago

descipher commented 3 years ago

Tested on LPC1768 (MKS SGEN L V1.0) running bugfix-2.0.x Tested both PWM pins P1.23 and P2.00.
Ran 100,000+ latches 0 missed over a span of two hours. Verification = logic analyzer data out to excel, mathematical count of input to output.

p3p commented 3 years ago

Have been looking at this today and can confirm this does look like it works but I don't have my original test case anymore .. so slightly worried that I'm just not reproducing the edge case bug that needed latching disabled.

It may be I never used the latch bits correctly although I do have old versions of the code that looks to be correctly updating that register.

descipher commented 3 years ago

👍 Thanks

p3p commented 3 years ago

Will wait and see if the weird latching issue that I'm sure I wasn't imagining reappears ^^

descipher commented 3 years ago

🤞