Jump to content
  • 0

Logic Analyzer: 1-Wire Custom Script


Empower

Question

I'd like to create a logic analyzer decoder for a custom 1-wire protocol.  Are there any custom example scripts available for 1-wire protocol?  My protocol is basically a 25 nsec high pulse is a logic "0" and 75 ns high pulse is a logic "1" pulse.  The wire is normally high.  I've found the SPI and UART examples but am not sure how to make these useful for time-based 1-wire protocols.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

@attila The specs for this custom 1-wire are still internal, so let me share the relevant specifics instead.  There are 3 "symbols per the table below. 

image.png.027cca402b1cc713625e90e50f16f507.png

Each symbol requires >=25 ns low signal between them.  Generic timing for the symbols is shown in the image below.

image.thumb.png.072d4b59ad5eecc0005fb751b8f004d2.png

Data is sent in byte (8-bit) increments.  Here is an example transmission of byte value 0b00000001.  Transmission can be continuous; for example, 4-bytes can be sent without an "end" between each byte.

image.thumb.png.0ad7c295e609df4e999b4448f29f990d.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...