Difference between revisions of "Protocol decoder:Signature"

From sigrok
Jump to navigation Jump to search
(Created page with "{{Infobox protocol decoder | id = signature | name = Signature analysis | description = Annotate signature of logic patterns. | status = s...")
 
(Add some info by Shirow Miura. Source: https://hackmd.io/@tEk2WdkmQxG8SHsmxaIqQg/Hke6dUG_H)
 
Line 15: Line 15:


The '''signature''' protocol decoder can decode the HP "signature" protocol used for troubleshooting logic circuits.
The '''signature''' protocol decoder can decode the HP "signature" protocol used for troubleshooting logic circuits.
'''Signature Analysis (SA)''' gives you a four-character fingerprint (signature) from any logic pattern, which can be used to determine whether a node/IC is functioning properly or not. Some of Hewlett Packard gear provide valid signature in the service manual.
== Example ==
<small>
$ '''sigrok-cli -P signature:start=D0:stop=D1:clk=D2:data=D3 -i circuit_under_test.sr'''
signature-1: A3A5
signature-1: 6F9A
signature-1: 6F9A
signature-1: 6F9A
...
</small>
The first signature ('''A3A5''' in this case) is often wrong. This is called an '''unstable state'''. HP 5004A and others have an '''unstable''' indicator, which we don't have. But clearly '''6F9A''' is stable. You can determine stable/unstable by repetitivity.
<small>
signature-1: 13AA
signature-1: H344
signature-1: F405
signature-1: 8UP8
signature-1: 052H
signature-1: 5CH1
signature-1: U2FA
signature-1: 713P
signature-1: 0P5P
...
</small>
This is an entirely unstable example. Sometimes this is caused by a low samplerate. HP 5004A has 25MHz (equivalent) bandwidth. Samplerate should be at least 25MHz. In [[sigrok-cli]] '''--samplerate=24MHz''' is maybe OK, but sometimes not.
If you have a high enough samplerate but still get unstable value, maybe the circuit in that node is not working properly (or you forgot to switch to SA-Mode).
Another example of an unstable state (exact same probe point, but different samplerate):
[[File:Pv signature.png]]
CLOCK is below 1MHz in this example, however it doesn't mean 8MHz samplerate is enough. '''DATA is asynchronous''' with respect to CLOCK.
== Tips ==
* Signature is 0000 if all data are LO(0).
* Signature is 0001 if all data are HI(1), and CLOCK is 65535 cycles during START to STOP.
* Signature is 0003 if all data are HI(1), and CLOCK is 65536 cycles during START to STOP.
* Usually the service manual tells you what signature of GND and V+(5V etc). From this, you can confirm START/STOP/CLOCK is working properly.
* Do set up properly. Follow provided procedure (see manual). Edge mode of START/STOP/CLOCK may vary, even on the same board.
* Because the logic threshold depends on the acquisition hardware, this decoder does not perfectly mimic the HP 5004A. However if it shows the same signature as a service manual provided, that node is most likely OK.
== Known signature analyzers ==
* HP 5004A ([https://literature.cdn.keysight.com/litweb/pdf/05004-90001.pdf Operating and Service Manual])
* HP 5005A / 5005B
* HP 5006A
* [http://w140.com/tekwiki/wiki/SA501 Tektronix SA501]
* [http://w140.com/tekwiki/wiki/308 Sony/Tektronix 308]
* [https://devkits.handheldmuseum.com/Atari-CatBox/index.htm ATARI CAT BOX arcade board tester]
== Resources ==
* [http://hpmemoryproject.org/an/pdf/an_222.pdf Application Note 222: A DESIGNER'S GUIDE TO SIGNATURE ANALYSIS]
* [https://www.hpl.hp.com/hpjournal/pdfs/IssuePDFs/1977-05.pdf Hewlett Packard Journal: May 1977]
* [https://www.youtube.com/watch?v=R4_Kt8eCB0M Youtube: HP 8568a Pt5 Fault finding with Signature analyzer]
* [https://patents.google.com/patent/US4991175A/en Patent: US4991175A: Signature analysis] (this is of course expired)
* [https://www.electronics-notes.com/articles/test-methods/signature-analyzer/what-is-a-signature-analyzer-analysis.php Signature Analyzer | Digital Logic Analysis | Electronics Notes]


[[Category:Protocol decoder]]
[[Category:Protocol decoder]]

Latest revision as of 22:07, 28 November 2019

signature
Name Signature analysis
Description Annotate signature of logic patterns.
Status supported
License GPLv2+
Source code decoders/signature
Input logic
Output
Probes start, stop, clk, data
Optional probes
Options start_edge, stop_edge, clk_edge, annbits

The signature protocol decoder can decode the HP "signature" protocol used for troubleshooting logic circuits.

Signature Analysis (SA) gives you a four-character fingerprint (signature) from any logic pattern, which can be used to determine whether a node/IC is functioning properly or not. Some of Hewlett Packard gear provide valid signature in the service manual.

Example

$ sigrok-cli -P signature:start=D0:stop=D1:clk=D2:data=D3 -i circuit_under_test.sr
signature-1: A3A5
signature-1: 6F9A
signature-1: 6F9A
signature-1: 6F9A
...

The first signature (A3A5 in this case) is often wrong. This is called an unstable state. HP 5004A and others have an unstable indicator, which we don't have. But clearly 6F9A is stable. You can determine stable/unstable by repetitivity.

signature-1: 13AA
signature-1: H344
signature-1: F405
signature-1: 8UP8
signature-1: 052H
signature-1: 5CH1
signature-1: U2FA
signature-1: 713P
signature-1: 0P5P
...

This is an entirely unstable example. Sometimes this is caused by a low samplerate. HP 5004A has 25MHz (equivalent) bandwidth. Samplerate should be at least 25MHz. In sigrok-cli --samplerate=24MHz is maybe OK, but sometimes not.

If you have a high enough samplerate but still get unstable value, maybe the circuit in that node is not working properly (or you forgot to switch to SA-Mode).

Another example of an unstable state (exact same probe point, but different samplerate):

Pv signature.png

CLOCK is below 1MHz in this example, however it doesn't mean 8MHz samplerate is enough. DATA is asynchronous with respect to CLOCK.

Tips

  • Signature is 0000 if all data are LO(0).
  • Signature is 0001 if all data are HI(1), and CLOCK is 65535 cycles during START to STOP.
  • Signature is 0003 if all data are HI(1), and CLOCK is 65536 cycles during START to STOP.
  • Usually the service manual tells you what signature of GND and V+(5V etc). From this, you can confirm START/STOP/CLOCK is working properly.
  • Do set up properly. Follow provided procedure (see manual). Edge mode of START/STOP/CLOCK may vary, even on the same board.
  • Because the logic threshold depends on the acquisition hardware, this decoder does not perfectly mimic the HP 5004A. However if it shows the same signature as a service manual provided, that node is most likely OK.

Known signature analyzers

Resources