{"product_id":"84-channels-multifunction-servo-controller","title":"84 Channels Multifunction Servo Controller","description":"\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ctable cellspacing=\"0\" cellpadding=\"0\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"182\" align=\"right\"\u003e\u003cem\u003eServo Channels \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd width=\"19\" height=\"21\" align=\"left\"\u003e\n\u003cp\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd width=\"448\"\u003e\u003cem\u003eup to 84 \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003e\u003cem\u003eLogic Outputs \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"left\"\u003e\u003cem\u003eup to 84 \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003e\u003cem\u003eLogic Inputs \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"left\"\u003e\u003cem\u003eup to 84 \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003e\u003cem\u003e10-bit Analogue Inputs \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"left\"\u003e\u003cem\u003eup to 36 \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003e\u003cem\u003eServo Refresh Rate \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"left\"\u003e\u003cem\u003e20us under all conditions \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003e\u003cem\u003ePosition Control \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"left\"\u003e\u003cem\u003eDirectly programmable in uS \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003e\u003cem\u003eSpeed Control \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd align=\"left\"\u003e\u003cem\u003eFrom maximum down to 20 seconds for full rotation \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"182\" align=\"right\"\u003e\u003cem\u003eLogic Power \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd width=\"19\" align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd width=\"448\" align=\"left\"\u003e\u003cem\u003eDirect from the USB Bus \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"182\" align=\"right\"\u003e\u003cem\u003eServo Power \u003c\/em\u003e\u003c\/td\u003e\n\u003ctd width=\"19\" align=\"center\"\u003e\u003cem\u003e-\u003c\/em\u003e\u003c\/td\u003e\n\u003ctd width=\"448\" align=\"left\"\u003e\u003cem\u003eSeparate terminals for voltage of your choice in groups of 8 servo's \u003c\/em\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"right\"\u003eControl Interface\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e-\u003c\/td\u003e\n\u003ctd align=\"left\"\u003eUSB\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eOverview\u003c\/strong\u003e\u003cbr\u003e The SD84 is an 84 channel servo controller module.  It will drive up to 84 RC servo's and maintain a 20mS refresh rate, regardless  of the number of servo's used or their positions (pulse widths). It controls  both the speed and position of the servo's. It's controlled by sending commands to  the on-board processors over the USB bus. Each of the 84 channels can be a  Digital Input, Digital Output or Servo Output. Additionally, 36 of the channels  can be 10-bit Analogue inputs, making this a great animatronics controller.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003cbr\u003e Up to 84 channels of digital inputs.\u003cbr\u003e Up to 84 channels of digital outputs.\u003cbr\u003e Up to 84 channels of servo outputs.\u003cbr\u003e Up to 36 channels of 10-bit analogue inputs.\u003cbr\u003e Controlled and Powered from the USB bus.\u003cbr\u003e Drivers available for  Windows, Apple,  Linux and Open BSD.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eThe SD84 has 84 sets of 3-pin headers, in groups  of 4 at a time. In all cases, the pin nearest the outside of the PCB is 0v  Ground. The middle pin is +V power for the servo from the associated 2-pin screw  terminals. The inside pin, nearest the CPU's is the signal pin.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePower\u003cbr\u003e \u003c\/strong\u003eThe logic circuitry on the SD84 module is powered from the USB bus and does  not require any external power. You need to provide external power for the  servo's or any other circuitry you want to connect to the I\/O's. The servo's are powered in  groups of 8 servo's. PL1 provides the power for servo's 1 to 8 on ch1 to ch8.  The only exception is PL5 which powers 12 servo's ch33 to ch44 inclusive. The  bar lines on the diagram above indicate which servo's are powered from which  screw terminals. Each group can be powered from a different voltage, but note  that the 0v grounds are all common and connected together on the PCB.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eConnecting Servo's\u003c\/strong\u003e\u003cbr\u003e The servo's are plugged directly onto the SD84, with the ground pin (black wire  on a hitec servo) nearest the outside of the PCB.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/sd84c.jpg\" border=\"0\" alt=\"\" width=\"400\" height=\"256\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eFirst Step - Get The Drivers\u003c\/strong\u003e\u003cbr\u003e The SD84 module uses the \u003ca href=\"http:\/\/www.ftdichip.com\/Products\/FT232R.htm\" target=\"_blank\"\u003eFTDI  FT232R USB chip\u003c\/a\u003e to handle all the USB protocols. The documentation provided  by FTDI is very complete, and is not duplicated here. Before using the SD84, you  will need to install FTDI's Virtual COM Port ( VCP ) Drivers. These drivers  appear to the system as an extra Com Port ( in addition to any existing hardware  Com Ports ). Application software accesses the USB device in the same way as it  would access a standard Windows Com Port using the Windows VCOMM API calls or by  using a Com Port  Library. Drivers are available for Windows, Apple,  Linux and Open BSD systems directly from the \u003ca href=\"http:\/\/www.ftdichip.com\" target=\"_blank\"\u003eFTDI  website\u003c\/a\u003e. You should get and install the drivers now, before you connect the SD84  to your computer. The Drivers page is \u003ca href=\"http:\/\/www.ftdichip.com\/FTDrivers.htm\" target=\"_blank\"\u003ehere\u003c\/a\u003e. \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWhich COM port?\u003cbr\u003e \u003c\/strong\u003eAfter installing the drivers, and plugging in the SD84 module to a spare USB  port, you will want to know which COM port it has been assigned to. This will  vary from system to system depending on how many COM ports you currently have  installed. To find out where it is with Windows98, right click on your \"My  Computer\" desktop icon and select the \"Device Manager\" tab. Now  scroll down and open the \"Ports (COM \u0026amp; LPT)\" tab. You should see  the USB serial port listed - COM2 in the example below. If you want to change  the COM port number - just right click on it, select properties, select advanced  and select the COM port number from the available list. With Windows XP, select  \"Start\", then right click \"My computer\", then select  \"Properties\", then the \"Device Manager\" tab. \u003cbr\u003e The COM port should be set up for 115200 baud, 8 data bits, no parity and two  stop bits. \u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/win98.dm.jpg\" border=\"0\" alt=\"\" width=\"410\" height=\"448\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cbr\u003e With the drivers installed you can now connect the SD84 and Windows will  register the drivers.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eInternal Registers\u003c\/strong\u003e\u003cbr\u003e There are three internal registers associated with each of the 84  channels. \u003cbr\u003e A \"Mode\" register (1 Byte) that defines the current mode of the  channel, INPUT, OUTPUT_LOW, OUTPUT_HIGH, SERVO or ANALOGUE. \u003cbr\u003e A \"Servo\" register (2 Bytes) that defines the position of the servo in  uS. The \"Servo\" register is an integer (two bytes). The speed and low byte\/high byte of the position.\u003cbr\u003e A \"Speed\" register (1 Byte) that defines the speed that the servo's  change position.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eCommands\u003c\/strong\u003e\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable style=\"width: 450px; background-color: #ffffcc; height: 311px;\" border=\"1\" cellspacing=\"0\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003eDec\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003eHex\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\" align=\"center\"\u003eDescription\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\" align=\"center\"\u003eResponse\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x01\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_SERVO\"\u003eSET_SERVO\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eSets the position (in uS) of 1 to 84 servo's\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError          Codes\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"38\" align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"38\" align=\"center\"\u003e0x02\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"38\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_SERVO\"\u003eGET_SERVO\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"38\"\u003eReturns the current position (in uS) of a single servo\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"38\"\u003e2 Bytes, Servo Position, \u003cbr\u003e Low byte first, then the high byte.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x03\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#SET_SPEED\"\u003eSET_SPEED\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eSets the movement speed of 1 to 84 servo's\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError          Codes\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"38\" align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"38\" align=\"center\"\u003e0x04\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"38\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#SET_MODE\"\u003eSET_MODE\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"38\"\u003eSets the mode of 1 to 84 channels,\u003cbr\u003e not analogue - see SET AD CNT command.\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"38\"\u003e1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError          Codes\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e5\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x05\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_MODE\"\u003eGET_MODE\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eReturns the current mode of a single channel\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e1 Byte, Mode - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Channel%20Modes\"\u003eChannel          modes\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"38\" align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"38\" align=\"center\"\u003e0x06\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"38\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#SET_AD_CNT\"\u003eSET_AD_CNT\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"38\"\u003eSet the number of analogue channels from 0 to 36. \u003cbr\u003e This          also sets the Mode for the channel to Analogue\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"38\"\u003e1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError          Codes\u003c\/a\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"20\" align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"20\" align=\"center\"\u003e0x07\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"20\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_AD_CNT\"\u003eGET_AD_CNT\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"20\"\u003eReturns the number of analogue channels currently set.\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"20\"\u003e1 Byte, Number of analogue channels.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e8\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x08\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_INPUT\"\u003eGET_INPUT\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eReturns the status of a single input\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e1 Byte, 0x00 for low, 0xFF for high\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e9\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x09\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_ADC\"\u003eGET_ADC\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eReturns the current value of a single analogue channel\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e2 Bytes, low byte first, then the high byte\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x0A\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_VERSION\"\u003eGET_VERSION\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eReturns version number of the selected processor chip (1          to 4)\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e2 Bytes, Module type first, then version          number\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e \u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e \u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003e \u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x15\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_BULK\"\u003eGET_BULK\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eUsed for Factory Testing - returns 21 encoded          inputs\u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e3 Bytes, all 21 inputs on selected CPU\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e22\u003c\/td\u003e\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e0x16\u003c\/td\u003e\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#TEST\"\u003eTEST\u003c\/a\u003e\u003c\/td\u003e\n\u003ctd width=\"722\" height=\"19\"\u003eUsed for Factory Testing - \u003c\/td\u003e\n\u003ctd width=\"598\" height=\"19\"\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"SET_SERVO\"\u003eSET_SERVO\u003c\/a\u003e (0x01)\u003c\/strong\u003e\u003cbr\u003e This command sets the position of the servos in uS. Normal range for a servo is  1000uS to 2000uS with 1500uS being the center position. Most servo's will go  beyond this though. On a \u003ca href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php\/products_id\/8\" target=\"_blank\"\u003e Hitec HS422 servo\u003c\/a\u003e, we can set the position from 800 to  2200 to give a nice wide range of movement. Take care though as its easy to make  the servo run into its internal stops if you give it pulse widths at the upper  or lower extremes. The SD84 places no restrictions on the value written, so be  careful. Each servo value is a 16-bit integer, sent low byte first, then the  high byte. To set ch1 to 1500uS (Center the servo) The command format is:\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eFirst Channel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eLow Byte\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eHigh Byte\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x01\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x01\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x02\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xDC\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x05\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe first three bytes are synchronization bytes and are required  by all command frames. \u003cbr\u003e Next is the SET_SERVO command 0x01. \u003cbr\u003e Next is the First Servo channel number. In this case channel 1.\u003cbr\u003e Next is the byte count. 2 bytes per channel for servo position setting.\u003cbr\u003e Next is the low byte of the position. 1500 decimal is 0x05DC in hex, so we send  0xDC.\u003cbr\u003e Finally we send the high byte, 0x05\u003c\/p\u003e\n\u003cp\u003eAny number of  contiguous channels can be set with one  SET_SERVO command. For example to set channels 37 and 38 to 1000uS (0x03E8) and  2000uS (0x07D0), you would send:\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eFirst Channel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCh37 low byte\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCh37 high byte\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCh38 low byte\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCh38 high byte\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x01\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e37\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xE8\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x03\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xD0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x07\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eIf you wanted to do the same for channels 37 and 51, you would have to send  two command frames. You could not do it all in one frame because the channels  are not contiguous.\u003cbr\u003e After the final byte is sent, the SD84 will reply with a single byte error code.  If all is well this will be OK. See error codes for  details.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_SERVO\"\u003eGET_SERVO\u003c\/a\u003e (0x02)\u003c\/strong\u003e\u003cbr\u003e This command gets the position of the servo in uS. \u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eChannel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x02\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e23\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003cp\u003e0x00\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe above example will return the position of servo channel 23. Note the byte  count must be zero (0x00) because you are not sending any data to the SD84. The  response from the SD84 will be two bytes, low byte first, then the high byte.  For example if you had set the position to 1500uS (0x05DC in hex) you would  receive 0xDC, 0x05.\u003cbr\u003e Unlike the SET_SERVO command, GET_SERVO can only work with a single channel. To  retrieve the position of multiple channels you must get them individually.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"SET_SPEED\"\u003eSET_SPEED\u003c\/a\u003e (0x03)\u003c\/strong\u003e\u003cbr\u003e Sets the speed the servo's will move to the new positions.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eFirst Channel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSpeed\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x03\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e71\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe above example would set ch71 speed to 10.\u003cbr\u003e The speed register controls the speed at which the servo moves to its new  position. The servo pulses are automatically refreshed every 20mS. If the Speed  register is zero (0x00) then the servo is simply set to the requested position.  On power up the Speed registers are set to zero to give full speed, so unless  you need to slow them down the Speed registers can be ignored. If the Speed  register is set to something other than zero then that value is added to the  current position every 20mS until the target position is reached. If you wish to  move from 1000 to 2000 and the Speed register is set to 10, then it will take 2  seconds to reach the set position. The formula for the time it will take to make  the move is:\u003cbr\u003e ((Target position-Start position)\/Speed Reg)*20mS\u003cbr\u003e Here are some examples:\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eStart Position \u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e Target Position \u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e Speed Reg \u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003e Time for Move\u003c\/strong\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e2000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2000mS (2Sec)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e1000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2000mS (2Sec)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e1000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003cp\u003e1\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e20000mS (20Sec)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e1000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2000\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e100\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e200mS (0.2Sec)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e1234\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1987\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e69\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e220mS (0.22Sec)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eAs with the SET_SERVO command, the SET_SPEED command can set up to 84  channels.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eFirst Channel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSpeed1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSpeed2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSpeed3\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x03\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e71\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e9\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e11\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe above example would set ch71 speed to 9, ch72 speed to 10 and ch73 speed  to 11. Don't forget to make sure the byte count is the same as the number of  data bytes being sent, 3 bytes in this example.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"SET_MODE\"\u003eSET_MODE\u003c\/a\u003e (0x04)\u003c\/strong\u003e\u003cbr\u003e This command is used to set the Mode of up to 84 channels. \u003cem\u003e\u003cstrong\u003eNote! \u003c\/strong\u003ethis command cannot select or deselect Analogue mode\u003c\/em\u003e, you must  use the SET_AD_CNT to do that. The reason for this is explained in the SET_AD_CNT section. This command will select between INPUT, OUTPUT_LOW, OUTPUT_HIGH or  SERVO modes. See Channel Modes for details.\u003c\/p\u003e\n\u003cp\u003eThe following example will set ch1 to INPUT_MODE, ch2 to OUTPUT_MODE0, ch3 to  OUTPUT_MODE1 and ch4 to SERVO_MODE.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eFirst Channel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eMode1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eMode2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eMode3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eMode4\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x04\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e23\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e22\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e25\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eAs always, make sure the byte count matches the amount of data bytes your  sending. After the final byte is sent, the SD84 will reply with a single byte  error code. If all is well this will be OK. See error  codes for details.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_MODE\"\u003eGET_MODE\u003c\/a\u003e (0x05)\u003c\/strong\u003e\u003cbr\u003e This command gets the current MODE of a single channel. See Channel  Modes.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eChannel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x05\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e15\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003cp\u003e0x00\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe above example will return the current mode of channel 15. Note the byte  count must be zero (0x00) because you are not sending any data to the SD84. The  response from the SD84 will be 1 byte which is the mode. Unlike the SET_MODE  command, GET_MODE can only work with a single channel. To retrieve the current  mode of multiple channels you must get them individually.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"SET_AD_CNT\"\u003eSET_AD_CNT\u003c\/a\u003e (0x06)\u003c\/strong\u003e\u003cbr\u003e This command sets the number of analogue channels available. The SD84 uses 4  PIC18F2520 processor chips, each providing 21 channels of which 9 can  alternatively be analogue inputs. These 9 analogue channels appear scattered  around on the SD84, see the connection diagram at the  top of this page, because the pin numbers on the processor on which they appear  is fixed. A limitation of the processor chip is that these pins cannot randomly  be analogue inputs, they have to be assigned in order, starting at AN1. If AN8  is Analogue then so must AN1 to AN7. You can see then, that changing a channel  to analogue can potentially also change a number of other channels. This is why  writing to the Mode register to change to or from analogue mode is prevented.\u003c\/p\u003e\n\u003cp\u003eThe SET_AD_CNT command configures the processor chips for the requested  number of analogue channels, starting with AN1. If you select 5 analogue  channels then it is AN1 to AN5 that are analogue. The Mode register for channels  21, 22, 20, 18 and 28 will be set to analogue. These are the channels that AN1  to AN5 appear on. If you had previously selected 10 analogue channels (AN1 to  AN10) and then select 5 (AN1 to AN5) then channels 27, 29, 26, 30 and 11 (AN6 -  AN10) will be changed back to digital and will be Inputs.   \u003cbr\u003e Analogue and Digital Channels Cross Reference.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eAN\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCH\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e   \u003c\/td\u003e\n\u003ctd align=\"center\"\u003eAN\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCH\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e   \u003c\/td\u003e\n\u003ctd align=\"center\"\u003eAN\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCH\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e   \u003c\/td\u003e\n\u003ctd align=\"center\"\u003eAN\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCH\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e11\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e19\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e84\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e28\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e73\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e22\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e11\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e20\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e83\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e29\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e72\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e20\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e12\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e9\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e82\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e30\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e71\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e18\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e13\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e22\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e80\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e31\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e69\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e5\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e28\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e14\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e38\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e23\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e48\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e32\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e58\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e27\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e15\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e37\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e24\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e47\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e33\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e57\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e29\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e16\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e39\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e25\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e49\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e34\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e59\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e8\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e26\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e17\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e36\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e26\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e46\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e35\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e56\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e9\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e30\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e18\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e40\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e27\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e50\u003c\/td\u003e\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e36\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e60\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eTo set the number of analogue channels use the following command:\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eChannel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eAnalogue Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x06\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0 (ignored)\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe above command will set AN1 to AN10 as analogue inputs. The Mode of the  corresponding Channels 21, 22, 20, 18, 28, 27, 29, 26, 30 and 11 will be set to  ANALOG_MODE. \u003cbr\u003e The SD84 will reply with a single byte error code. If all is well this will be  OK. See error codes for details.\u003c\/p\u003e\n\u003cp\u003eThe normal initialization procedure would be to first set the number of  analogue channel required by using the SET_AD_CNT command, and then set the  remaining digital channels to input, output or servo modes as required. This can  be done for all channels with a single mode command. The analogue channels will  not be affected by the Mode command so it does not matter what they are set to,  however you will get a WARNING code returned instead of the OK code.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_AD_CNT\"\u003eGET_AD_CNT\u003c\/a\u003e (0x07)\u003c\/strong\u003e\u003cbr\u003e This command returns the quantity of analogue channels currently selected.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eChannel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x07\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0 (ignored)\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe SD84 will respond with the current analogue channel count, 0 - 36.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_INPUT\"\u003eGET_INPUT\u003c\/a\u003e (0x08)\u003c\/strong\u003e\u003cbr\u003e Returns the status of the single selected input channel.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x08\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e12\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe above example will return 1 Byte, 0 (0x00) if the input on channel 12 is  low or 255 (0xFF) if the input is high. GET_INPUT can only work with a single  channel. To retrieve the status of multiple channels you must get them  individually.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_ADC\"\u003eGET_ADC\u003c\/a\u003e (0x09)\u003c\/strong\u003e\u003cbr\u003e Returns the analogue value of the selected channel. Note the Channel  number is the AN analogue number, not the digital channel number. In  the example below  this is AN21-CH82.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eChannel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x09\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eAnalogue inputs are converted on demand. The above example will return 2 Bytes, low byte first then the high byte. The  SD84 uses 10-bit AD conversion so you will get a number in the range 0-1023.  Results are only valid for analogue channels that have previously been set to  analogue mode using the SET_AD_CNT command. \u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_VERSION\"\u003eGET_VERSION\u003c\/a\u003e (0x0A)\u003c\/strong\u003e\u003cbr\u003e This command is used to return the firmware version number for the SD84. There  are 4 CPU's on the SD84 and you can specify which CPU you want the version  number from - they will all be the same.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCPU Number\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x0A\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe command format is shown above. In this example the version number from  CPU2 will be returned. The command returns 2 bytes. The first is the module  type, this will always be 84 for the SD84. The second byte is the firmware  revision number, currently 4 at the time of writing. Valid CPU Numbers are 1-4.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_BULK\"\u003eGET_BULK\u003c\/a\u003e (0x15)\u003c\/strong\u003e\u003cbr\u003e This command is used for factory testing of the SD84. It is potentially useful  though, and so is documented here. It returns 3 bytes which encode all 21 inputs  for the selected processor. If you are familiar with the PIC processors, these 3  bytes are ports A, B, and C (in that order). The command format is:\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCPU Number\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x15\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eIn this example the 3 bytes will come from CPU1. Valid CPU Numbers are 1-4.\u003cbr\u003e The table below shows which channel each bit represents.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e \u003c\/td\u003e\n\u003ctd colspan=\"8\" align=\"center\"\u003eByte 1 - PortA\u003c\/td\u003e\n\u003ctd colspan=\"8\" align=\"center\"\u003eByte 2 - PortB\u003c\/td\u003e\n\u003ctd colspan=\"8\" align=\"center\"\u003eByte 3 - PortC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e5\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e 0 \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e5\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e5\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eCPU1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e17\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e16\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e18\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e19\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e20\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e22\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e23\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e24\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e25\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e26\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e27\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e28\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e29\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e30\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e x \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e x \u003c\/td\u003e\n\u003ctd align=\"center\"\u003e31\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e32\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e12\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e13\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e14\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e15\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eCPU2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e6\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e5\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e7\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e8\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e9\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e10\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e11\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e33\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e34\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e35\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e36\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e37\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e38\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e39\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e40\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e41\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e42\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e4\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eCPU3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e79\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e78\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e80\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e81\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e82\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e83\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e84\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e43\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e44\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e45\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e46\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e47\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e48\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e49\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e50\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e51\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e52\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e74\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e75\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e76\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e77\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eCPU4\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e68\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e67\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e69\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e70\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e71\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e72\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e73\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e53\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e54\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e56\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e57\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e58\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e59\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e60\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003ex\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e61\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e62\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e64\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e63\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e65\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e66\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eThe bit will be high if the input is high.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"TEST\"\u003eTEST\u003c\/a\u003e (0x16)\u003c\/strong\u003e\u003cbr\u003e This command is used, together with GET_BULK documented above, for factory  testing of the SD84. It is of no other use, but documented here for the sake of  completeness. \u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003eSync1\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync2\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eSync3\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eChannel\u003c\/td\u003e\n\u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x55\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0x16\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e67\u003c\/td\u003e\n\u003ctd align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eIt first sets the number of analogue channels to zero, so everything is  digital.\u003cbr\u003e It then sets every channel to drive low (OUTPUT_MODE0).\u003cbr\u003e It then sets every channel to input (INPUT_MODE).\u003cbr\u003e It then sets the selected channel to drive high (OUTPUT_MODE1).\u003cbr\u003e And finally returns code OK. The sequence is performed without any delays, as  fast as the processors will go.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"Channel%20Modes\"\u003eChannel Modes\u003c\/a\u003e\u003c\/strong\u003e\u003cbr\u003e Available modes for the channels are:\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"1\" cellspacing=\"0\" width=\"512\" bgcolor=\"#ffffcc\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"49\" align=\"center\"\u003eDecimal\u003c\/td\u003e\n\u003ctd width=\"38\" align=\"center\"\u003eHex\u003c\/td\u003e\n\u003ctd width=\"134\" align=\"center\"\u003eMode\u003c\/td\u003e\n\u003ctd width=\"273\" align=\"center\"\u003eDescription\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"49\" align=\"center\"\u003e21\u003c\/td\u003e\n\u003ctd width=\"38\" align=\"center\"\u003e0x15\u003c\/td\u003e\n\u003ctd width=\"134\" align=\"center\"\u003eOUTPUT_MODE0\u003c\/td\u003e\n\u003ctd width=\"273\" align=\"center\"\u003eOutput low, Logic 0 \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"49\" align=\"center\"\u003e22\u003c\/td\u003e\n\u003ctd width=\"38\" align=\"center\"\u003e0x16\u003c\/td\u003e\n\u003ctd width=\"134\" align=\"center\"\u003eOUTPUT_MODE1\u003c\/td\u003e\n\u003ctd width=\"273\" align=\"center\"\u003eOutput High, Logic 1\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"49\" align=\"center\"\u003e23\u003c\/td\u003e\n\u003ctd width=\"38\" align=\"center\"\u003e0x17\u003c\/td\u003e\n\u003ctd width=\"134\" align=\"center\"\u003eINPUT_MODE\u003c\/td\u003e\n\u003ctd width=\"273\" align=\"center\"\u003eCan read High or Low\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"49\" align=\"center\"\u003e24\u003c\/td\u003e\n\u003ctd width=\"38\" align=\"center\"\u003e0x18\u003c\/td\u003e\n\u003ctd width=\"134\" align=\"center\"\u003eANALOG_MODE\u003c\/td\u003e\n\u003ctd width=\"273\" align=\"center\"\u003eCan read 0-1023 (10-bit conversion)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"49\" align=\"center\"\u003e25\u003c\/td\u003e\n\u003ctd width=\"38\" align=\"center\"\u003e0x19\u003c\/td\u003e\n\u003ctd width=\"134\" align=\"center\"\u003eSERVO_MODE\u003c\/td\u003e\n\u003ctd width=\"273\" align=\"center\"\u003eOutputs servo pulse, 20mS repetition rate.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003e\u003ca name=\"Error%20Codes\"\u003eError Codes\u003c\/a\u003e\u003c\/strong\u003e\u003cbr\u003e The SD84 can reply with the following possible error codes.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable style=\"width: 450px; background-color: #ffffcc;\" border=\"1\" cellspacing=\"0\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"51\" align=\"center\"\u003eDecimal\u003c\/td\u003e\n\u003ctd width=\"39\" align=\"center\"\u003eHex\u003c\/td\u003e\n\u003ctd width=\"84\" align=\"center\"\u003eError Code\u003c\/td\u003e\n\u003ctd width=\"541\"\u003eDescription\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"51\" align=\"center\"\u003e0\u003c\/td\u003e\n\u003ctd width=\"39\" align=\"center\"\u003e0x00\u003c\/td\u003e\n\u003ctd width=\"84\" align=\"center\"\u003eOK\u003c\/td\u003e\n\u003ctd width=\"541\"\u003eCommand processed OK\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"51\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd width=\"39\" align=\"center\"\u003e0x01\u003c\/td\u003e\n\u003ctd width=\"84\" align=\"center\"\u003eWARNING\u003c\/td\u003e\n\u003ctd width=\"541\"\u003eAttempt to change to or from Analogue mode by writing to          mode register is ignored.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"51\" align=\"center\"\u003e2\u003c\/td\u003e\n\u003ctd width=\"39\" align=\"center\"\u003e0x02\u003c\/td\u003e\n\u003ctd width=\"84\" align=\"center\"\u003eRANGE\u003c\/td\u003e\n\u003ctd width=\"541\"\u003eRange of channels is less than 1 or more than 84.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"51\" align=\"center\"\u003e3\u003c\/td\u003e\n\u003ctd width=\"39\" align=\"center\"\u003e0x03\u003c\/td\u003e\n\u003ctd width=\"84\" align=\"center\"\u003eMODE\u003c\/td\u003e\n\u003ctd width=\"541\"\u003eUnknown Mode received\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eDemonstration Program\u003cbr\u003e \u003c\/strong\u003eWe have a small demonstration program to allow you to quickly evaluate the  SD84.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/sd84Demo.jpg\" border=\"0\" alt=\"\" width=\"392\" height=\"261\"\u003e\u003c\/p\u003e\n\u003cp\u003eIt allows you to set the number of analogue channels, set modes,  move servo's and read digital or analogue inputs. The program is written in  Visual C++ V6. You can download just the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/sd84.exe\" target=\"_blank\"\u003esd84.exe\u003c\/a\u003e or the complete \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/sd84source.zip\" target=\"_blank\"\u003esource code\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eSD84 PCB Drilling Plan\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cimg style=\"border: 0px initial initial;\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/sd84drill.gif\" alt=\"\" width=\"450\" height=\"146\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169868038489,"sku":"SD84\/A","price":79.04,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890036687193,"sku":"SD84","price":79.04,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/sd84_5.jpg?v=1695766396","url":"https:\/\/xernuqvalzi.pro\/products\/84-channels-multifunction-servo-controller","provider":"Robot Italy","version":"1.0","type":"link"}