What is the PID field byte for a PID code of '0010' in a USB packet structure?

  • Thread starter Thread starter Liamt
  • Start date Start date
  • Tags Tags
    Pid
Click For Summary

Discussion Overview

The discussion revolves around determining the PID field byte for a PID code of '0010' within the context of USB packet structure. Participants explore the implications of the PID code's bit length and its representation in a byte format.

Discussion Character

  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant seeks assistance in calculating the PID field byte corresponding to the PID code '0010'.
  • Another participant points out that the PID code requires only 4 bits for storage, while microcomputer memory is organized in 8-bit bytes.
  • A participant provides links to technical resources detailing the USB packet structure, noting that the PID is 4 bits long and is followed by its complement.
  • The same participant reiterates the importance of understanding the USB packet structure and asks what would be seen in the first byte of the packet based on the PID code.
  • A later reply expresses gratitude for the provided information, indicating some level of understanding gained from the discussion.

Areas of Agreement / Disagreement

The discussion does not reach a consensus on the exact representation of the PID field byte, as participants provide different perspectives and resources without a definitive answer to the initial question.

Contextual Notes

Participants reference specific technical documents for clarification, but there are unresolved aspects regarding how the PID code translates into the byte format, particularly concerning the complement and byte alignment.

Liamt
Messages
3
Reaction score
0
Hi i need help answering a question I am stuck on if anyones able to assist

if a PID code is ‘0010’ what should the PID field byte be?

Im really struggling on how to work it out
 
Technology news on Phys.org
Can you give a context here? What do you mean by PID code?

If its 0010 then that requires only 4 bits to store. Microcomputer memory is organized by bytes which are 8-bit entities.
 
jedishrfu said:
Can you give a context here? What do you mean by PID code?

If its 0010 then that requires only 4 bits to store. Microcomputer memory is organized by bytes which are 8-bit entities.

Basically the initial question is , The diagram below shows the structure of a USB token packet. Identify the function of each field.
then the next question is the one above 'if a pid code is 0010 ,what should the PID field byte be?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
6K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K