Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
usp:usp_spec [2012/12/04 19:31] – admin | usp:usp_spec [2012/12/04 19:52] – [Master -> Slave Command Format] admin | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Terminology ===== | ===== Terminology ===== | ||
- | * Master - the device issuing commands. Master is running USP client software. Master is identified by | + | * Master - the device issuing commands. Master is running USP client software. Master is identified by ModuleID = 0. |
* Slave - the device listening for USP commands. Slave is running USP server software. | * Slave - the device listening for USP commands. Slave is running USP server software. | ||
Line 33: | Line 33: | ||
^ Checksum Word (required) | ^ Checksum Word (required) | ||
- | *A command consists of two or more 32-bit words. The first 32-bit word is divided into 4 fields. The highest 8 bits (bits 31-24) identify the command. The next 16 bits (bits 23-8) is the Unit ID or Address. The next 8 bits specify the number of 32 bit words in the command including the first and last word. | + | *A command consists of two or more 32-bit words. The first 32-bit word is divided into 4 fields. The highest 8 bits (bits 31-24) identify the command. The next 16 bits (bits 23-8) is the ModuleID-Hi and ModuleID-Lo. The next 8 bits specify the number of 32 bit words in the command including the first and last word. |
*The command word is followed by optional 1 – N data words. The interpretation of data depends on command. | *The command word is followed by optional 1 – N data words. The interpretation of data depends on command. | ||
*The last word contains 3 bytes of data (bits 21-16) and simple additive checksum (bits 7-0). | *The last word contains 3 bytes of data (bits 21-16) and simple additive checksum (bits 7-0). |