Author Topic: USB NRZI data encoding  (Read 2119 times)

0 Members and 1 Guest are viewing this topic.

Offline promachTopic starter

  • Frequent Contributor
  • **
  • Posts: 878
  • Country: us
USB NRZI data encoding
« on: August 17, 2020, 11:44:18 am »
Why the following USB signalling bits do not seem to follow NRZI data encoding ?



 

Offline hexreader

  • Frequent Contributor
  • **
  • Posts: 269
  • Country: england
Re: USB NRZI data encoding
« Reply #1 on: August 17, 2020, 12:11:47 pm »
My guess is that you are looking at the "bits" field in your diagram rather than the waveforms at the top.

NRZI applies to the waveforms on the USB bus, not the data bits.
 
The following users thanked this post: promach

Offline promachTopic starter

  • Frequent Contributor
  • **
  • Posts: 878
  • Country: us
Re: USB NRZI data encoding
« Reply #2 on: August 17, 2020, 01:07:18 pm »
what the spec labels "NRZI" is the signalling bits line in Sigrok, and what the spec labels "data" is the signalling symbols. ??
 

Offline hexreader

  • Frequent Contributor
  • **
  • Posts: 269
  • Country: england
Re: USB NRZI data encoding
« Reply #3 on: August 17, 2020, 02:48:22 pm »
My understanding of "symbols" is poor, but I see that user FVM has answered you on the edaboard forum. I trust him to have given the correct answer.
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2454
  • Country: gb
Re: USB NRZI data encoding
« Reply #4 on: August 17, 2020, 02:59:29 pm »
 

Offline GeorgeOfTheJungle

  • Super Contributor
  • ***
  • !
  • Posts: 2699
  • Country: tr
Re: USB NRZI data encoding
« Reply #5 on: August 17, 2020, 04:17:12 pm »
Low speed USB uses Manchester encoding IIRC.
The further a society drifts from truth, the more it will hate those who speak it.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11780
  • Country: us
    • Personal site
Re: USB NRZI data encoding
« Reply #6 on: August 17, 2020, 04:46:50 pm »
You can see from the capture that it is NRZI encoded. Even in the SYNC sequence you can see that 0 is encoded as a transition between the states, and for the last "1" in the SYNC the state remain "K".
« Last Edit: August 18, 2020, 02:19:02 am by ataradov »
Alex
 
The following users thanked this post: promach

Offline promachTopic starter

  • Frequent Contributor
  • **
  • Posts: 878
  • Country: us
Re: USB NRZI data encoding
« Reply #7 on: August 18, 2020, 02:04:23 am »
Low speed USB uses Manchester encoding or NRZI encoding ?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11780
  • Country: us
    • Personal site
Re: USB NRZI data encoding
« Reply #8 on: August 18, 2020, 02:18:31 am »
All of them use NRZI with bit stuffing to prevent long runs of 1s. There is no Manchester anywhere in USB.  You can clearly see it on your log.
Alex
 
The following users thanked this post: promach


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf