diff options
author | Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de> | 2015-09-30 00:24:24 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-10-06 17:41:21 +0200 |
commit | a241cfb6e1fbf1f7c85109a54e914672b633f5f3 (patch) | |
tree | 564d9e52394b0315df99fbb50c14121c7bce0992 /decoders/spiflash/pd.py | |
parent | 0e3cb15e814f20b201709688ab4eaa6eee54dc40 (diff) | |
download | libsigrokdecode-a241cfb6e1fbf1f7c85109a54e914672b633f5f3.tar.gz libsigrokdecode-a241cfb6e1fbf1f7c85109a54e914672b633f5f3.zip |
usb_signalling: Track USB symbol width to compensate frequency errors
USB low/full speed allows for frequency tolerance of 1.5%/0.25%. At
maximum packet size (sync + PID + data + CRC16) of 12 bytes/1027 bytes
this amounts to 1.4 bits/20 bits, so the decoder has to lock to the
actual symbol frequency to avoid any symbol misdetections.
The signal is sampled twice, once at the symbol center and once at
the expected edge position. Comparing the symbol at both positions gives
an indication if the current bit width is too low or too high. Adjust
accordingly.
Diffstat (limited to 'decoders/spiflash/pd.py')
0 files changed, 0 insertions, 0 deletions