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
AI Thread Summary
The discussion centers around understanding the PID (Packet Identifier) code in the context of USB token packets. The original question asks what the PID field byte should be if the PID code is '0010'. It is clarified that the PID code requires only 4 bits for storage, while microcomputer memory is organized in 8-bit bytes. Technical references are provided to explain the USB packet structure, specifically noting that the PID is 4 bits long and is followed by its complement. The conversation concludes with appreciation for the assistance received in clarifying the PID field byte calculation.
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?
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
Back
Top