PID Codes

Hi i have a question for an assignment im struggling with if anyone could help, If a PID code is ‘0010’ what should the PID field byte be?

Discussion is locked
Reply to: PID Codes
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: PID Codes
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
- Collapse -
Clarification Request
My background is motor control.

So to me a PID loop is "A proportional–integral–derivative controller (PID controller or three term controller) is a control loop feedback mechanism widely used in industrial control systems and a variety of other applications requiring continuously modulated control. A PID controller continuously calculates an error value e ( t ) {\displaystyle e(t)} e(t) as the difference between a desired setpoint (SP) and a measured process variable (PV) and applies a correction based on proportional, integral, and derivative terms (denoted P, I, and D respectively) which give the controller its name." (Wikipedia.)

So the code for PID values are usually more than one byte or field. Tell more.

- Collapse -

Thanks for the reply, i don't have any experience with PID's i only know what wikipedia and the limited resources i was given have told me. I don't know how to work out what the field byte should be all i was given in the question is the code is 0010

- Collapse -
It may help to reveal what class this is for.
- Collapse -

the initial question is a) The diagram below shows the structure of a USB token packet. Identify the function of each field.
then the question i need answering is if a PID code is ‘0010’ what should the PID field byte be?

- Collapse -
Re: PID code

I expect the answer is somewhere in"USB+token+packet" . But I realise this isn't a very good answer.

Are you going to write drivers for a USB-controller, or a device connected to a USB port on a PC? Or maybe some BIOS?

- Collapse -
Working with so little detail

May be frustrating as you get way off base answers. What class is this? Where can I see this diagram?

- Collapse -

1101 0010

- Collapse -
Wasn't it?....


- Collapse -
Another guess

The op is looking for a hex byte.

- Collapse -
So far

I think they will only get a hex.

- Collapse -
Actually ...

a byte is 2 hex's, like D2 in your first post above. I don't think the OP is happy with a half answer. Or maybe he is, since he doesn't complain.

- Collapse -
In programming circles here.

001100010010011110100001101101110011 would be the binary stream.
00 11 00 01 00 10 01 11 10 10 00 01 10 11 01 11 00 11 could be a hex stream or octal or a bunch of pennies and dimes.

I was hoping the OP would have come back with more detail.

- Collapse -
Hex byte

xxxx xxxx ......00-FF

Where do you see half an answer?

- Collapse -
My mistake.

I replied to you. I meant to reply to Bob: he wrote "I think they will only get a hex". That's one. Your 1101 0010 is two indeed.

CNET Forums