I would like to count fault code pulses that are 250mS active low duration with 250mS between pulses at the end of the pulse train there is a 1.25sec active high. The pulse train repeat to start a new pulse train. Pulse codes continue until the fixture is repaired. We intent to use a nRF52840 in our design. The application presently flashes an LED on fault alert codes. It is our intent to decode this fault count with the nRF52840 and advertise the decoded fault via BLE to a Mesh of other peer fixtures. A gateway will ID the faulty unit for corrective action.
Below is an white board image of active low fault codes with the 1.25sec active high pulse between repeat fault codes. Looking forward to your assistance as to how to do this with possible timers or capture and compare. I like to reference example code. Thank you, Al Cyr