13.07.2015 Views

USB IO HID Datasheet - Delcom Products Inc.

USB IO HID Datasheet - Delcom Products Inc.

USB IO HID Datasheet - Delcom Products Inc.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Delcom</strong> <strong>Products</strong> <strong>Inc</strong>.<strong>USB</strong><strong>IO</strong><strong>HID</strong> <strong>Datasheet</strong>Revision 4 – 4/7/2009Generic I2C 8 Bit Address Selective Read. - Reads up to 8bytes of data at a specific 8bitaddress or register. This action requires two commands, first setup the command with writecommand 63, then call the read 61 command.Usage: Write Cmd 63: LSBData=0, MSBData=Length(bytes to read),HidData(0)=Add/Cmd(B0), HidData(1)=AddressLSB(B1), HidData(2)=0,HidData(3)=RdSelCmd(B2)Usage: Read Cmd 61: Read the data.I2C output:[START] [Add/Cmd(B0)] [AddressLSB(B1)] [START] [RdSelCmd(B2)] [Read Data0..7][STOP]Generic I2C 16 Bit Address Selective Read. - Reads up to 8bytes of data at a specific 16bitaddress or register. This action requires two commands, first setup the command with writecommand 63, then call the read 62 command.Usage: Write Cmd 63: LSBData=0, MSBData=Length(bytes to read),HidData(0)=Add/Cmd(B0), HidData(1)=AddressLSB(B1), HidData(2)= AddressLSB(B2),HidData(3)=RdSelCmd(B3)Usage: Read Cmd 62: Read the data.I2C output:[START] [Add/Cmd(B0)] [AddressLSB(B1)] [AddressMSB(B2)] [START] [RdSelCmd(B3)][Read Data0..7] [STOP]5.12 64 Bit Read/Write commandThe 64 bit read/write commands allows the user to read or write 64 bits (8 Bytes) of data withone command to eight 8-bit hardware latches. Theses commands require extra hardware.See the <strong>USB</strong>64B<strong>IO</strong>-Sch.pdf schematic on our website. The command writes a 3bit addresson port1 then writes or reads a byte value on Port 0 with a wr/rd strobe on Port 1.5.13 SPI PortThe SPI functions allow the chip to interface to an SPI compliant device. The I2C portsupports a variable clock period from 20ns to 5.1ms. The default clock is 200ns and can bechanged with write command 91. The SCLK signal is on port 0 pin 7, the MOSI signal is onport 0 pin 6 and the MISO signal is on port 0 pin 5. This command supports a maximumtransfer of eight bytes per command. There are two SPI commands they are 90-Write SPIData and 90-Read SPI Data.The write 90 SPI command will send up to 64 bit of data over the SPI bus. At the same timethis command is writing the data out on the MOSI pin, the input values on MISO is capturedand can be later read with read command 90.In firmware version 23 and above we added the ability to change the output drive mode of theSPI pins. The default power up mode is CMOS. This can be changed to open drain using the110 write command, bit 1. The open drain mode is useful when connected to 3.3volt I2Cdevices.<strong>USB</strong><strong>IO</strong><strong>HID</strong>.pdf Copyright © DELCOM PRODUCTS INC. 2009. All Rights Reserved. Page 9 of 34<strong>Delcom</strong> <strong>Products</strong> <strong>Inc</strong>. 200 William St STE302 – Port Chester NY 10573 USA (914)934-5170 www.delcomproducts.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!