# Decoder or extension for two pulse width decoding

**URL:** <https://discuss.saleae.com/t/decoder-or-extension-for-two-pulse-width-decoding/1593>\
**Category:** Downloads / Releases\
**Created:** [May 11, 2022, 3:30am UTC](https://discuss.saleae.com/t/decoder-or-extension-for-two-pulse-width-decoding/1593 "2022-05-11T03:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnrf](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@johnrf](https://discuss.saleae.com/u/johnrf)\
**Post date:** [May 11, 2022, 3:30am UTC](https://discuss.saleae.com/t/decoder-or-extension-for-two-pulse-width-decoding/1593/1 "2022-05-11T03:30:45Z")

</div>

I’m not sure the technical name for my data, however its very simple.

Simply if:

- a pulse \<300 ms it’s a 0
- a pulse \> 300 ms it’s a 1

Could an existing decoder / extension decode such a signal?

Thanks  
John

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [May 11, 2022, 11:29pm UTC](https://discuss.saleae.com/t/decoder-or-extension-for-two-pulse-width-decoding/1593/2 "2022-05-11T23:29:01Z")

</div>

@johnrf Good question! We don’t have anything out of the box that supports that exact use case. However, our pre-installed “Addressable LEDs” might come close.

It follows various LED strip protocol formats. As an example, the WS2811 LED strip specification is decoded by our Addressable LED analyzer as follows:

- Pulse is 0.5us = 0 (+/- some error tolerance)
- Pulse is 1.2us = 1 (+/- some error tolerance)

Not exactly fitting for your requirements, but if you have experience with C++, we provide our source code for our LED analyzer below, which you can modify and use as a starting point for a custom analyzer that supports your specific protocol requirements:

> **[GitHub - saleae/async-rgb-led-analyzer: Saleae Async RGB LED Analyzer](https://github.com/saleae/async-rgb-led-analyzer)**
>
> Saleae Async RGB LED Analyzer. Contribute to saleae/async-rgb-led-analyzer development by creating an account on GitHub.

Here’s a link to our Protocol Analyzer SDK as well:

> **[Protocol Analyzer SDK](https://support.saleae.com/saleae-api-and-sdk/protocol-analyzer-sdk)**

You can also take a look at our list of Community Shared custom analyzers as well, but based on a quick look at the list, I think our LED analyzer would be the best starting point give how similar it is to your requirement.

> **[Community Shared Analyzers](https://support.saleae.com/community/community-shared-protocols)**
