Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
usp:usp_spec [2012/12/04 19:31] adminusp: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)  |  Data  |  Data  |  Data  |  Checksum  | ^ Checksum Word (required)  |  Data  |  Data  |  Data  |  Checksum  |
  
-  *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).
usp/usp_spec.txt · Last modified: 2015/04/16 16:27 by 127.0.0.1
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0