Home

TIMS-0102 USB to I2C/SPI User Manual

image

Contents

1. Example_5PI_read_eeprom_memory Yi The diagram for this VI is shown below This example VI shows the basics of SPI communications using the TIMS 0102 and the LabVIEW drivers Configure SPT Device Enable HEY at Read a byte From an EEPROM Address 40 Disable 5 at Clocking connector pin From memory location 0x00 connector pin Configuration Open Port Close Port The TIMS Port Open vi and TIMS Port Close vi are mandatory and Ports should not be left open indefinitely as some VI s cannot execute on open ports The TIMS Open Port vi creates reference that is used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally SPI Device configurations are set as in the example to specify the desired clock rates and edge settings These settings are stored in the TIMS 0102 EEPROM and are used for all 12C communications until the configuration is set again The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMSO102 Ext 5V Gontrol vi Software Specification Page 26 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manua
2. Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the Software Specification Page 47 of 84 solutions JOYA El i Bb Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point TIMS Ref The TIMS Reference used to communicate with a device To Address 0xD0 To Address specifies the TIM
3. ref out TIMS Device Handle TIMS_SPI_Device_Enable vi Software Specification Page 79 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The TIMS SPI Device comes with eight programmable device or chip select lines that are available at the output SPI DB 15F connector These chip select lines can be independently selected or used to generate a combination of a 4 bit address and single chip select line The following options are available ADR x0 nCS4 ADR x1 nCS4 ADR x2 nCS4 ADR x3 nCS4 ADR x4 nCS4 ADR x5 nCS4 ADR x6 nCS4 ADR x7 nCS4 ADR x8 nCS4 ADR x9 nCS4 ADR xA nCS4 ADR xB nCS4 ADR xC nCS4 ADR xD nCS4 ADR xE nCS4 ADR xF nCS4 nCSo nCS1 nCS2 nCS3 nCS4 nCS5 nCS6 nCS7 No Select When ADRxO nCS4 through ADRxF nCS4 is selected the corresponding SPI Device configuration is recalled and used in the following transaction The address lines are updated with the requested address and then the nCS4 i e nEN Not Enable is set low If nCSO through nCS7 is selected then SPI Device Configurations O through 7 is recalled and used in the following transaction The requested line nCSO nCS7 is set low Selecting the No Select option sets all line high Connector Pane To Address OxD0 ret in SPI Device Select error IN no error Controls and Indicators uz SPI Device Select Specifies which SPI device to address
4. error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displ
5. Jova Solutions Inc Connector Pane To Address OxD0 ret IN Ext Sw ON error IN no error Controls and Indicators Ed Ext 5V ON Selects the state of the 5V output line EE error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning Software Specification Page 41 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed eH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit i BE error out The error out cluster passes error or warning information out of a VI
6. TIMS 0102 USB to I2C SPI Interface Operating Manual The Rx Script return string contains the original script with extra characters inserted the contain errors or response data bytes from the slave If an error occurs a exclamation point is placed in the string where the error occurred Another example that reads 16 bytes beginning at location 0x10 Tx Script SAOOORA1 KPKPKPKPKPKPKPKPKPKPKPKPKPKPKNP Rx Script SADOORA1 00K 01K 02K 03K204K 05K 06K 07K 08K 09K 0A 0B 0C 0D 0E 0FNP O Jova Solutions Inc Connector Pane To Address OxD0 ret in ret out TX Script Rx Script error IN mo error 20 Subroutine Error timeout mE error out Controls and Indicators timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives
7. This saves quite a bit of time required to constantly process the reconfigure commands The SPI Device Configuration includes Tx Clocking The clock idle state can be configured to be high or low and transmission can be configured to be on the falling or rising edge Rx Clocking Rx Clocking can be configured so that when clocking in data from the slave data is sampled at either the Middle or End of the TX output period Target Clock Rate The TIMS SPI Device supports 255 clock speeds from 39 0625 KHz to 10 MHz including standard clock rates of 100 KHz 400 KHz and 1 MHz Jova Solutions Inc Connector Pane To Address 0x00 ret in SFI Device Ret Device Configuration error IN no error ref out Best Fred khz gt error out Controls and Indicators Ed Device Configuration TX Clocking RX Clocking Target SPI Clock Frequency KHz SPI Device Ref Specifies which of the 16 available device configurations to set error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE Software Specification Page 78 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI In
8. number function and user ID O Jova Solutions Inc Connector Pane To Address OxD0 TIMS Ret TIME Ref Out o Device Descriptor error in no error error out timeout mE Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning Software Specification Page 44 of 84 solutions JOYA El i BE Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout t
9. Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information Software Specification Page 81 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual about the error displayed ref out TIMS Device Handle TIMS_SPI_Device_lO vi This vi performs the chip select operation a data l O operations up to 255 bytes then a chip deselect operation Connector Pane To Address OxD0 ret in Tx DATA SFI Device Select error in no error timeout mE Controls and Indicators TX DATA uz FROM iz timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point error in no error The error in cluster can accept error inform
10. I2C protocol overhead 12C requires that 9 bits be sent for every 8 bits of data The operating system also affect overall throughput All devices on the USB bus share the overall bandwidth and the operating system must alternately service each device Reducing the number of USB devices connected to the same root hub as the TIMS 0102 will reduce the possibility of performance degradation 100 00 200 00 Awailable Clock Rates KHz 1 2 5 Addressing sa ER EIE EE wt 20 30 40 50 60 70 60 90 100 110 125 The TIMS 0102 supports both 7 and 10 bit I2C device addressing Available clock rates in the 80 KHz to 500 KHz range 1 2 6 Known Limitations The TIMS 0102 firmware version 1 0 supports only Master mode operation Multi master and slave mode operation will be supported in a future version of the firmware field upgradeable Custom solutions are available by contacting Jova Solutions Sales at 1 866 755 1400 1 3 SPI SIGNALS The TIMS 0102 has configurable clock rates and supports several SPI modes through configurable Tx and Rx clocking parameters The TIMS 0102 is Microwire compatible see section 1 3 6 1 3 1 Transmit Tx clocking The Tx clock idle state is configurable to be high or low Tx can also be configured for the falling or rising clock edge 1 3 2 Receive Rx clocking The Rx clocking can be configured so that it is sampled at the middle or end of the Tx output period 1 3 3 Drive Current The TIMS 0102 c
11. I2C Address 7 bik EEPROM Memory Location p error in I2C Bus Configuration error aut Example I C_read_eeprom_memory yi Software Specification Page 17 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual This example VI shows the basics of 12C communications using the TIMS 0102 and the LabVIEW drivers A Configure 12 Clock Enable EV at Read a byte From an EEPROM Address 40 Disable 54 at Open Port b 3 Rate connector pin from memory location 0x00 connector pin Close Port EEPROM 12C Address 7 bit TO sEEEBEBBEDEBEESEBEESBEES ER Acc al ID Eko EE le EE EE EE EEPROM Memory Location Bytes to Read Lus 1 The TIMS Port Open vi and TIMS Port Close vi are mandatory Ports should not be left open indefinitely as some Vls return errors when connecting to open ports The TIMS Open Port vi creates a reference that is used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally the 12C bus configuration is set as in the example to specify the desired clock and slew rates These settings are stored in the TIMS 0102 EEPROM and
12. Pane TE DATA EEPROM 2C Address 7 bit EEPROM Memory Location p error in st 22 Bus Configuration error out Controls and Indicators us TX DATA us FROM E EEPROM I2C Address 7 bit EEPROM Memory Location I2C Bus Configuration Slew Rate Target 12C Clock Rate Khz Timeout ms error in The error out cluster passes error or warning information out of a VI to be used by other Vls Software Specification Page 37 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either T
13. Software Specification Page 24 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 5 3 SPI VO Functions The TIMS 0102 SPI_Data_lO vi performs a basic SPI communication transaction This VI does not affect the device select lines they must be separately enabled TO ref in Ts DATA error in no error timeout ms ref ouk Ra DATA a error out TIMS SPI Data IO wi This VI is intended to be used when more than 256 Bytes need to be read or sent out between chip select enabled and chip select disabled as in the following VI Call this vi in a loop surrounded by calls to TIMS_SPI_Device_Enable vi A second SPI VI the TIMSO102 SPI Device O vi can also be used for performing a basic SPI communications transaction Le TO ref in Ts DATA SPI Device Select error in no error timeout ms TIMS SPI Device _10 vYi The TIMSO102 SPI Device lO vi performs the chip select operation a data VO operations up to 255 bytes then a chip deselect operation Software Specification Page 25 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 5 4 SPI Examples Several examples that use the SPI I O Function VI s can be found in the TIMS 0102 examples directories The first example Example SPI1 read eeprom memory viis shown below Ra DATA EEPROM Memory Location error in Device Configuration error aut
14. VI and TIMS Port Close vi are used for opening and closing communications ports to the TIMS 0102 module Device TIMS Ref Cut Sh Desc Method device error in no error errar out TIMS_0102 Open _Device vi The TIMS 0102 Open Device Vl creates a TIMS Reference which is a reference that is used by all other VI s in the driver library to communicate to that specific device The TIMS Reference can be opened by Device number TIMS Serial Number or USB Description 1 By device number If you have only one TIMS unit connected to your system this is the easiest method to use Supply 0 to the Device number If you have more than one device you can access the devices by supplying their device number NOTE The windows OS is responsible for enumerating the devices and therefore the assigned device numbers may change at any time We do not recommend using the device number when you have more than one TIMS device attached to your system 2 By TIMS Serial Number You can open by TIMS Serial Number as well This is the Serial Number printed on the label on the outside of your TIMS device 3 By USB Description If you have multiple models of TIMS units you can access the unit by specifying the USB description However this method is not recommended if you have multiple units of the same model attached to the system In this case the USB descriptions will be the same for similar models and it is impossible to predict which specific devic
15. When communicating with an SPI device the TIMS 0102 will use the config settings Software Specification Page 80 of 84 solutions JOYA i BE Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual correcponding to the address you provide here error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain
16. and call the TIMS_Status function immediately and inspect bit1 Tx Overflow If this bit is true the function attempted to return more than 256 bytes This issue is known and will have an associated error code warning generated in future versions of the TIMS driver 3 4 3 I2C Scripting Examples Several examples that use the I2C Scripting VI s can be found in the TIMS 0102 examples directories The first example Example_ I2C_script_read_eeprom_memory vi is shown below This achieves the same overall functionality as the Example_I2C read eeprom memory vi that uses the simple I O functions Res Script Memory Value loss error out EEPROM 12 Address 7 bik EEPROM Memory Location g error in I2C Bus Configuration Example_120C_script_read_eeprom_memory Yi The example VI diagram shows the build up and execution of the script as well as the parsing of the Rx script string Configure 12 Clack Enable 5Vat Read a byte From an EEPROM Address AO Disable 5 at BET GIE Rate connector pin From memory location 0x00 connector pin Clase Port 7 45 TIME 040 THE TE span babe RX Script Bs Uh error out error in EET RE EE ee po recerca he I2C Bus Configuration Guild EEFROM Read Script EEPROM 120 Memory EEPROM I2C STOP 2C START Address Address RESTART Address READ ee EE TIS 5D aa SCL SEL histo EEPROM 120 Address 7 bit uk EEPROM Memory Location EET The lower portion of th
17. and the clock rate is programmable from 39 0625 kHz to 10 MHz The TIMS 0102 operates as an I2C Master only with either 7 bit or 10 bit addressing JON A AE The SPI interface is a serial interface in which a master device Use reeyspytSt02 supplies clock pulses to exchange data serially with a slave ka a UM TT over two data wires In addition to the standard clock and data RE eso ST lines the TIMS 0102 comes with eight chip select lines These MEE ir de is chip select lines can be optionally configured so that four lines are used as an address with a separate chip select line The TIMS 0102 operates as an SPI Master only A complete LabVIEW driver library is provided for easy integration into higher level applications A low level Dynamic Link Library DLL is also provided for integration with other programming languages 1 TIMS 0102 I2C AND SPI INTERFACE MODULE HARDWARE The TIMS 0102 I2C and SPI interface module consists of electronic circuitry packaged in a 1 20 high by 4 50 wide by 3 25 deep including the connector plastic enclosure A single USB Type B connector is located on the rear panel The front panel contains both a DB 9S connector dedicated for I2C communications and a DB 15S connector for SPI or Microwire communications The functions of this module are e USB to I2C and USB to SPI communication between the host test controller and unit under test UUT e 12C electrical buffer for mixed sig
18. are used for all 12C communications until the configuration is set again The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMS0102_Ext_5V_Control vi This example uses the TIMS I2C Device_lO vi easy lO vi to send a command to and read a memory location from and EEPROM I2C device Software Specification Page 18 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 4 TIMS 0102 I2C SCRIPTING FUNCTIONS In addition to the simple 12C VO functions the TIMS 0102 also allows for I2C scripting to handle the more complex or obscure communication protocol requirements 12C scripting allows the user to build an I2C communication transaction out of the basic 12C protocol components The script is sent to the TIMS module that then executes the script at hardware speeds This gives you all the flexibility of using LabVIEW on a host computer to generate complex communications protocols yet ensures that the protocol is executed at the desired constant hardware generated clock rate This scripting mechanism allows the user to implement some other protocols not directly supported by the standard driver C Bus and I2C 10 bit addressing are examples of functionality that can be built using the scripting functions 3 4 1 I2C Script Building Functions An 2C script is a string made up of a series of characters each character representing an l2C communications
19. option Explain Error or Explain Warning gives more information about the error displayed EH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point TIMS Ref The TIMS Reference used to communicate with a device error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information Software Specification Page 51 of 84 solutions JOYA Test Instrument Module System TIMS 0102 U
20. protocol basic component Script character codes are case sensitive S Start P Stop R Restart K ACK N NAK Read Byte Wait 1 2 msec minimum of 1 msec not more than 2 msec 0 F Tx Hex character must be in pairs An example script to write to an 27 C01 EEPROM memory location and then read back the memory location value is as follows Tx Script SA00000P Software Specification Page 36 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Rx Script SA00000 This translates to 1 Issue a START bit 2 Address the device AO 3 Select EEPROM memory location O ox00 4 Write a zero to the memory location 0x00 5 Issue a STOP bit The 12C scripting functionality allows users to build up a series of I2C communications elements send them in mass to the TIMS I2C Device processor and then have the clocked out consistently at the configured clock rate This scripting mechanism allows the user to implement some other protocols not directly supported by the standard driver C Bus and I2C 10 bit addressing are examples of functionality that can be built using the scripting function The Rx Script return string contains the original script with extra characters inserted the contain errors or response data bytes from the slave If an error occurs a exclamation point is placed in the string where the error occurred Jova Solutions Inc Connector
21. protocol basic component Script character codes are case sensitive The script string is a simple string and standard LabVIEW string VI s which can also be used to build the script string The V s shown in the table below can also be used to assemble the script sting Script I2C Communication LabVIEW VI Character Component oe o E id ai aa 20 K ACK va TIMS_ 2C Script_ACk i Script input We Script output lol N NAK HA TIMS I2C Script NAK wi Software Specification Page 19 of 84 OVA solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Script input Script output Read Byte EN TIMS I2C Script Read Byte wi Script input are Script output Number of waits 1 2msec pe SCL E Wait 1 2 msec TIMMS _I2C_S5cript_Wait Yi Script input as script output Data Bytes OO FF Tx Hex Data TIMS 2C Script Tx_Byte yvi NOTE Data sent using 12C scripting requires that the data be sent as 2 hex characters for every byte of data All address bytes also need to be sent through the script as a 2 character hex block An additional VI is provided to add a 7 bit address sent as a 2 character Hex string Script input Script output Address 7 bit OS bit DDE 5 12C_ Script 7bit Address wi This VI generates the 2 character Hex block representing the address with the least significant bit Isb set to reflect the Read Write bit input 3 4 2 I2C Scripting Execution Functions A si
22. source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed TIMS Ref Out The TIMS Reference used to communicate with a device TIMS Get Ref Info vi Returns the connection information associated with a TIMS device reference Jova Solutions Inc Connector Pane Software Specification Page 55 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual TIM S Fet In device connection info error in no error error out Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information
23. the I2C and SPI connectors can be switched on or off using the TIMSO102 Ext _5V_Control vi This example uses the TIMS I2C_Script_lO vi to send a script to the TIMS I2C Device module and execute that script to read a memory location from an EEPROM I2C device An 2C script is a string made up of a series of characters each character representing an l2C communications protocol basic component Script character codes are case sensitive S Start P Stop R Restart K ACK N NAK Read Byte Wait 1 2 msec minimum of 1 msec not more than 2 msec O F Tx Hex character must be in pairs An example script to write to an 27 C01 EEPROM memory location and then read back the memory location value is as follows Tx Script SAOOOOOPO SAOOORA1 NP Rx Script SAOOOOOPO SAOOORA1 00NP This translates to 1 Issue a START bit 2 Address the device AO Software Specification Page 33 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 Select EEPROM memory location 0 ox00 4 Write a zero to the memory location 0x00 5 Issue a STOP bit 6 Wait 1 msec 7 Issue a START bit 8 Readdress the device and select memory location 0 9 Issue a RESTART bit 10 Readdress the device to read 11 Read a byte from location zero 12 Issue a NAK indicating no more reading 13 Issue a STOP bit The 12C scripting functionality allows users to build up a series of I2C communica
24. the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point Bytes to Read Number fo bytes to read from the slave device Lis 12C Device 7 Bit Address Address of the I2C slave device error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 61 of 84 solutions JOYA BE Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specif
25. to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref out TIMS Device Handle TIMS 0102 Open Device vi Opens a USB connection to a TIMS 0102 device Returns a managed TIMS Reference for use in accessing this device The TIMS Reference can be opened by Device number TIMS Serial Number or USB Description 1 By device number If you have only one TIMS unit connected to your system this is the easiest method to use Supply 0 to the Device number If you have more than one device you can access the devices by supplying their device number NOTE The windows OS is responsible for enumerating the devices and therefore the assigned device numbers may change at any time We do not recommend using the device number when you have more than one TIMS device attached to your system Software Specification Page 42 of 84 solutio
26. used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Device Configuration TX Clocking RX Clocking Target SPI Clock Frequency KHz ref out TIMS Device Handle Software Specification Page 77 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual TIMS_SPI Device Config Set vi Writes the SPI Device Configuration to the TIMS SPI Device EEPROM The TIMS SPI Device can store up to 16 different SPI device configurations in EEPROM This allows you to pre configure communications with multiple SPI devices each using different clock rates and clock edge configurations When issuing SPI VO commands you can reference the preconfigured settings and quickly switch between communications with devices on the same bus but using different clock rates and edge processing configurations
27. write and read operation If the input TX DATA is empty the write operation is not performed If the Bytes to Read input is set to 0 the read operation is not performed If the TX Data array input has data then this VI starts with a write operation An I2C START bit is followed by an address byte the R W bit is automatically set or cleared by the firmware The TX DATA bytes are then transmitted followed with an I2C STOP command If the Bytes to Read input is set to a value other than zero a Read operation is performed An I2C START command is sent followed by an address byte with the R W bit set to R and then the requested number of bytes are received from the slave The operation is completed with an I2C STOP command All read bytes are responded to with an ACK except for the last byte which is responded to by a NAK There is no delay between the write operation and read operation Some devices require processing time before responses can be generated for example if you are writing to a memory location in the EEPROM you can not immediately read back the memory location without a small delay allowing the write cycle to complete Use the I2C scripting function if you need more control over delay timing when executing commands 3 3 3 I2C Simple VO Examples Several examples that use the 12C Simple VO Vl s can be found in the TIMS 0102 examples directories The first example Example _I2C read eeprom _memory vi is shown below Ra DATA EEPROM
28. 2 SPI FUNCTIONS The TIMS 0102 LabVIEW drivers provide several VI s to simplify SPI communications 3 5 1 SPI Device Configuration Functions Unlike 12C individual SPI devices operating on the same bus can all be operating at different clock rates and in different clock edge configurations Because of this difference the TIMS 0102 allows up to 16 different SPI device configurations to be stored in EEPROM compared to just one setting used for all 12C devices You only need to send an SPI device configuration once and it will be used for all subsequent operations directed at that particular SPI device The TIMS 0102 will automatically switch to pre configured settings stored for the particular SPI device addressed so that you don t have to keep sending clock configuration settings every time you address a different device The SPI device configurations are retained through power cycling Two VI s are provided for reading or writing this configuration information TO ref in SPI Device Ref error in no error ref out t Device Configuration wm error out TIMS SPI Device _Config_Get vi The SPI Device Ref input must be an integer number between 1 and 16 The SPI Device Configuration is a cluster containing e Tx Clocking ENUM Clock Idle Low TX Falling Edge Clock Idle High TX Falling Edge Clock Idle Low TX Rising Edge Clock Idle High TX Rising Edge e Rx Clocking ENUM Rx Sampled at Middle of TX Output Period Rx Sa
29. DA SEL Controls and Indicators GEE Script input Script output TIMS _12C Script Tx Byte vi Adds DATA BY TE script elements to the script string Jova Solutions Inc Connector Pane Script input Data Bytes UIE Script output DA SEL Controls and Indicators GEE Script input Data Bytes is data byte Script output TIMS 12C_ Script Wait vi Adds a WAIT script element to the script string Jova Solutions Inc Connector Pane Script input HE Script output Number of waits 1 2msec pe SEL El Controls and Indicators GEE Script input u 24 Number of waits 1 2msec per wait Script output TIMS List Devices vi Lists all TIMS devices opened and unopened connected to this computer Software Specification Page 69 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual O Jova Solutions Inc Connector Pane FOUND Tits USE DEVICES error in no error error out Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The po
30. E ects EE N OE EE N OO 8 1 54 CO RATES AND SPEED riada 8 ES CARES EE 10 1 3 6 MICROWIRE COMPATIBILITY ccccccccccccccceeccecssssssseseeeeececcceeeeeeeeeaausaessseeeeeeeeeeeeeeeeesseaaaaaeansseeeees 11 EA ATA A ER EE scenes 11 PLENA SE O aa 11 2 GENERAL SOFTWARE DESCRIPTION j sscssssssssssssssssssssssssssssssssssssssssssssssssssssssssssesees 12 3 TIMS 0102 LABVIEW INSTRUMENT DRIVERS sssssssssssssssssssssssssssssssssssssseseeeeees 14 3 1 TIMS 0102 COMMUNICATIONS PORT wis ees iese ses eed vee ee Gee eo eo de eb GE Gee oe ee ee 15 3 2 TIMS 0102 5V POWER TO EXTERNAL CONNECTORS csssssssccccsssssccccccssssscccsccsssscccsccsssscsscsesess 16 33 TIMS 010 DE BASIC FUNCTIONS cssescssscssivacecacevecensssssssessaveseverccacsunenecdensensesesscavsstvececetaussseedsseeress 16 9 5 1 DE BUS CONFIGURA TION FUNCTIONS oes eise bee asses de oe ee iese bode ee Se se de oe ee bees ee ese 16 90 2 DE SIMPLE TO FUNCTIONS asirio 17 3 3 3 PC SIMPLE I O EXAMPLES ssesseeeeecccccccccccececccaussssssseseceeecceccceeeeeeaaauausasssseeeeececeeeeeeeeeeeeaqaqaas 17 34 TEVIS 0102 IDC SCRIPTING FUNCTIONS sinies sesse se droee se de ede de di eN Ge deeee ee Ok eed ee de de ee 19 34 1 DE SCRIPT BUILDING FUNCTIONS osse sessie ees geed ees Rede ese eek Gee Gee PR degie RR dbe 19 342 I2C SCRIPTING EXECUTION FUNCTIONS ccccccssssseccesssssssseecsecccccccccsseeeecceessssssseessescccccecessneeeeeees 20 So DE SERPIIN
31. G AI LES eiii ican ole 21 344 DE SUBROUTINE SPECIFIC ERRORS sisas aa 22 Software Specification Page 2 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3S3 TIMS 0102 od AN LEI M Le IE EE AE TE RE N EE aaria 23 3 1 SPLDEVICE CONFIGURATION FUNCTIONS n esse ed ei or dla 23 sr DEL DECESO ia EE EE N EE N 24 353 SPIVO FUNCTIONS escriure n On ok ese io de gs ee ge de ok si eg be eo ee de gs de Ed 25 od OPTE ANTT ass oe ee ee Ee Oe NG ee Oe De Ge ee NG EG eee DIG Ge EE ee 26 Software Specification Page 3 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual INTRODUCTION Jova Solutions TIMS 0102 module offers a quick and easy method of communicating with I2C and SPI devices and circuits and is intended for use in testing and prototyping devices and circuits that use the I2C or SPI protocol TIMS 0102 modules are compact and completely self contained inexpensive and connect to a host PC via USB The front panel contains both a DB 9S connector dedicated to 12 communications and a DB 15S connector dedicated to SPI or Microwire communications The read panel contains a single USB Type B connector I2C buses are used extensively in a variety of microcontroller based professional consumer and telecommunications applications for control diagnostics and power management The 12C lines are buffered for mixed signal levels
32. JOYA solutions JAVA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual TIMS 0102 USB to 12C SPI INTERFACE MODULE Operating Manual http www jovasolutions com Model TIMS 0102 Part No 910 0102 Published April 2006 O 2006 Jova Solutions Inc All Rights Reserved Software Specification Doc No DOC 000008 02 Page 1 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Table of Contents 1 TIMS 0102 RC AND SPI INTERFACE MODULE HARDWARE ccsssssssssssssssssseseeees 4 LI CON NBC OR DETAILS AMM II ee ee EE Ee eo EED ee De De 5 A AA iese ese eier oes ee ee se e ier e sie eee oe EER 5 ELLE Me ONS rape EE BERE ee A 5 Ii ONIN TOR aer se ae Gee eo ee ge ee ae ce oe sees ee ad ie ee ie 6 AE Miano oie ve ER EO OE E EE OE OE EE EE N 6 AE OE ONN C TOR EE E EE N EE ee 7 LA TZ SUG ide oo A EEE 7 1 2 1 VOLTAGE LEVEL BUFFERING sesse ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee RR Re ee ee ee ee ee ee ee RR Ee 7 e POTR TOR EO OE A E EE E ATE EEE A A fi Las DRIVE OOR OE OE EE EEEE EA EAE A EA EANES 7 ES ie RA EN E N N E E N N EN E OR E AEN 7 L23 APDRESSINE ee E E o US E A 8 L260 KNOWN LIMITATIONS ita 8 AA ER EE a 8 Ll TRANSMIT CLEX CLOCKING osse esse de eg bee se a se se bee ee Gee N ee Dee ed Ge Gee ee EE ee Ed 8 13 2 REEEISE RX CLOC ING se eed ee ee ee ee ee ie EEA Ge oe 8 Af RIE oi O
33. PI Interface Operating Manual checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref out TIMS Device Handle I2C Status String TIMS 12C_ Script 7bit Address vi Adds an I2C ADDRESS BYTE script element to the script string Jova Solutions Inc Connector Pane Script input Address 7 bit Read rite bit Script output Controls and Indicators GEE Script input Ed Address 7 bit Ed Read Write bit Script output TIMS 12C_ Script ACK vi Adds an I2C ACK script element to the script string Jova Solutions Inc Connector Pane Script input UIE Script output Controls and Indicators Software Specification Page 64 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual GEE Script input Script output TIMS _I2C_Script_lO vi sends an 12C script to the TIMS I2C Device module then executes the script and returns any bytes read during the execution of the script An 2C script is a string made up of a series of characters each charac
34. ROM Example I2C read_eeprom_memory vi This example VI shows the basics of I2C communications using a TIMS I2C Device and the LabVIEW drivers The TIMS Open Dialog vi and TIMS Port Close vi are mandatory and ports should not be left open indefinitely as some VI s can not execute on open ports The TIMS Open Dialog vi creates a reference used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally the I2C bus configuration is set as in the example to specify the desired clock and slew rates These settings are stored in the TIMS I2C Device EEPROM and are used for all 12C communications until the configuration is set again The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMS0102_Ext_5V_Control vi This example uses the TIMS I2C Device_lO vi easy lO vi to send a command to and read a memory location from and EEPROM I2C device Jova Solutions Inc Connector Pane EEPROM AC Address 7 bit EEPROM Memory Location p error in st 22 Bus Configuration Fa DATA error out Controls and Indicators is EEPROM I2C Address 7 bit is EEPROM Memory Location So
35. RUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Example 12C write eeprom memory vi This example VI shows the basics of I2C communications using the TIMS I2C Device and the LabVIEW drivers The TIMS Open Dialog vi and TIMS_Port_Close vi are mandatory and Ports should not be left open indefintly as some VI s can not execute on open ports Software Specification Page 38 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The TIMS Open Dialog vi creates a reference used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port_Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally the I2C bus configuration is set as in the example to specify the desired cloc
36. S Ref The TIMS Reference used to communicate with a device error out The error in cluster can accept error information wired from Vls previously called Use this information to decide if any functionality should be bypassed in the event of errors from other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed selected device Status Type Index Model No Software Specification Page 2 of 84 solutions JOYA Description Serial No reference USB Serial Number HE EE BE USB Product Description TIMS Port Close vi Closes an opened TIMS reference Note This VI will operate even if there is an incoming error Jova Solutions Inc Connector Pane TIMS Ref error in mo error error out Controls and Indicators User ID User supplied Name of the TIMS device Test Instrument Module System TIMS 0102 USB to I2C SPI In
37. S processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 48 of 84 solutions JOYA Device Status Contains the Status Information General TF 1 1 I 1 mm 7 Error 1 mA 7 7 I a 7 1 Reset 1 1 I mm Software Specification SW Valid Unknown Code TX Overflow RX Timeout na4 na5 FLASH Prgm Test Mode EE CRC EE Write EE Address na3 FLASH Erase FLASH Write UART Framing UART Overrun BOR POR PD TO RI Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Page 49 of 84 OVA Test Instrument Module System
38. SB to I2C SPI Interface Operating Manual about the error displayed TIMS Ref Out The TIMS Reference used to communicate with a device output data This cluster contains information about the TIMS device software hardware and firmware User ID User supplied Name of the TIMS device Model ID Factory information about the TIMS device model Model No Description 1 Description 2 PCB Assy ID Factory information abou the TIMS device PCB assembly Part No Serial No Misc Info Device ID Device Function Device Description Application SW ID Monitor SW ID TOP Assy ID Part No Serial No Misc Info TIMS_DEVICE User ID Get vi Gets the user specified Name for the TIMS device Jova Solutions Inc Software Specification Page 52 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Connector Pane To Address 0x00 TIMS Ret TMS Ref Out User ID error IN no error error out timeout mE Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explai
39. TIMS 0102 USB to I2C SPI Interface Operating Manual na5 na6 RESET PC Stack SPO SP1 SP2 SP3 SP4 na5 STKUNF STKFUL Monitor FW Code Checksum Expected SW Code Checksum Calculated SW Code Checksum TIMS Ref Out The TIMS Reference used to communicate with a device TIMS DEVICE Unit ID Get vi Gets the complete set of Device Unit Identification for the TIMS device Jova Solutions Inc Connector Pane To Address OxD0 TIME Fef TIME Ref Out o Output data error IN no error error out timeout m Controls and Indicators vd To Address 0xDO To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit Software Specification Page 50 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up
40. about the error displayed vszd TIMS Ref In The TIMS Reference used to communicate with a device error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 56 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual device connection info Status Type Index Model No Description User ID User supplied Name of the TIMS device Serial No reference USB Serial Number HEEEEEEREE USB Product Description TIMS 12C BUS Config Get vi Returns the 12C Bus Configuration from the TIMS I2C Device EEPROM The TIMS 12C Device stores I2C bus configuration information in EEPROM The 12C Bus Configuration includes Target Clock Rate The I2C clock rate is progr
41. about the error displayed RX Script Memory Value Example I2C_ script write eeprom memory vi This example VI shows the basics of I2C communications using the TIMS I2C Device and the LabVIEW I2C scripting drivers The TIMS Open Dialog vi and TIMS_Port_Close vi are mandatory and Ports should not be left open indefinitely as some VI s can not execute on open ports The TIMS Open Dialog vi creates the reference TIMS0102 Handle used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally the I2C bus configuration is set as in the example to specify the desired clock and slew rates These settings are stored in the TIMS I2C Device EEPROM and are used for all I2C communications until the configuration is set again The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMS0102_Ext_5V_Control vi This example uses the TIMS I2C_Script_lO vi to send a script to the TIMS I2C Device module and execute that script to write a value to a memory location in an EEPROM I2C device An 2C script is a string made up of a series of characters each character representing an l2C communications
42. ammable to 100KHz 400KHz 1MHz and 252 other frequencies between 39 0625 KHz and 10MHz Slew Rate The Slew Rate can be set to Disables for standard speed 100K or 1M or Enabled for high speed 400k Jova Solutions Inc Connector Pane To Address OxD0 ret in ret out ao Bus Configuration error in no error error out Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls Software Specification Page 57 of 84 solutions JOYA EE Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specif
43. an drive all output signals with a maximum of 25 mA current source or sink 1 3 4 Clock Rates and Speed The TIMS 0102 supports 766 clock rates between 1 44 KHz and 10 MHz Three overlapping ranges each with 255 supported clock rates exist for SP communications The driver software simplifies Software Specification Page 8 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual configuration by allowing Target clock rates to be specified The actual clock rates are calculated and returned by the driver 1 3 4 1 Range 1 100 00 10 00 Available Clock Rates KHz 2 00 l I l a En a T S S r Available clock rates in the 2 KHz to 100 KHz range 1 3 4 2 Range 2 400 00 100 00 i TE D i ft o a E 10 00 6 00 I l i 0 20 40 60 8 amp 0 100 120 140 160 160 200 Available clock rates in the 6 KHz to 400 KHz range Software Specification Page 9 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 13 4 3 Range 3 5000 00 1000 00 Available Clock Rates KHz 100 00 l l l l l l 7 0 5 10 15 20 25 3 0 35 N 45 5 Available clock rates in the 100 KHz to 5 MHz range Overall command and data throughput to an SPI device from a host computer through the TIMS 0102 module can be affected by many variables including command setup time and USB
44. anual 3 TIMS 0102 LABVIEW INSTRUMENT DRIVERS The LabVIEW drivers are installed by default into aTIMS 0102 directory The driver library can be broken down into four functional groups e 2C Basic Functions e 2C Scripting Functions e SPI Functions e General Functions The TIMSO102 Tree vi installed to lib TIMS 0102 TIMS0102_Tree vi diagram contains all the top level functions needed for most applications as well as several examples T2C Basic Functions SPI Functions Simple 12 Examples PES ule TMS EE TEE j P ection SPI Examples EN D WRITE READ READ WRITE Han SEL TIMES Simple 2c MO 0 0 ES p i SPI IO pand pide Set and Get SPI device Configuration Set and Get 12 Bus Configuration Timing 12 Scripting Functions General Functions TIH I2C Script Examples General Examples I2C Script 110 Open Script components Close Reset General Functions WER ID E IE Software Specification Page 14 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 1 TIMS 0102 COMMUNICATIONS PORT A communications port must be opened through USB to the TIMS 0102 before any other driver function call lt is imperative that the port also be closed at the conclusion of a communications session Leaving a port open will cause some function calls to error and will also disallow any other communications ports to be opened The driver Vls TIMS 0102 Open Device
45. ation about the error displayed EH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Device SN Desc Method device SHEE error out The error in cluster can accept error information wired from Vls previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls Software Specification Page 43 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed TIMS Ref Out The TIMS Reference used to communicate with a device TIMS_Device Descriptor Get vi Gets the Device Descriptor for the TIMS device The device descriptor includes the model number serial
46. ation wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 82 of 84 solutions JQVA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual us SPI Device Select Specifies which SPI device to address When communicating with an SPI device the TIMS 0102 will use the config settings correcponding to the address you provide here vszd ref in TIMS Device Handle i To Address 0xDO To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Err
47. ayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information Software Specification Page 75 of 84 solutions JQVA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual about the error displayed RX DATA FROM ref out TIMS Device Handle TIMS_SPI_Device_Config_Get vi Returns the SPI Device Configuration from the TIMS SPI Device EEPROM The TIMS SPI Device can store up to 16 different SPI device configurations in EEPROM This allows you to pre configure communications with multiple SPI devices each using different clock rates and clock edge configurations The SPI Device Configuration includes Tx Clocking The clock idle state can be configured to be high or low and transmission can be configured to be on the falling or rising edge Rx Clocking Rx Clocking can be configured so that when clocking in data from the slave data is sampled at either the Middle or End of the TX output period Target Clock Rate The TIMS SPI Device supports 255 clock speeds from 39 0625 KHz to 10 MHz including standard clock rates of 100 KHz 400 KHz and 1 MHz Jova Solutions Inc Connector Pane To Address OxD0 ret in SFI Device Ret error IN no erro
48. bus overhead This table shows typical data byte rates for Clock Speed Data Byte Rate various clock speed settings These are the real time interface data transfer rates between the 10 MHz 333 33 Kbytes sec TIMS 0102 and the SPI Device USB overhead 2 5 MHz 227 23 Kbytes sec not measured 1 0 MHz 111 11 Kbytes sec There is the additional overhead of sending commands and data over the USB bus between the Host computer and the TIMS 0102 module that will affect overall throughput from your application program Individual commands will be executed at the hardware timed clock rates and actual data byte rates shown above but throughput for multiple commands will be much slower due to USB communications Reducing the number of USB devices connected to the same root hub as the TIMS 0102 will reduce the chances of performance degradation 1 3 5 Chip Select Several modes of operation exist for performing Chip select functionality Made en 7 independent chip select lines Master mode operation A 4 bit address and an nEN Not Enable are available for Mode 2 l l o connection to the user s chip select decode circuitry Slave mode where we receive an nSS Not Slave Select input Software Specification Page 10 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 1 3 6 Microwire Compatibility The TIMS 0102 is compatible with the Microwire protocol a subset of the SPI proto
49. c focuses on industry specific solutions for Pharmaceuticals and Biotechnology Electronics Manufacturing Networking and Telecommunications Jova Solutions Inc is a privately held company with headquarters in San Francisco CA 6 CONTACTING JOVA SOLUTIONS INC To find out more about the TIMS 0102 please contact us at 1 800 755 1400 For information on our products and services please visit our website at www jovasolutions com For technical support issues please contact us at 1 415 348 1408 Software Specification Page 28 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Appendix A LabVIEW Function Reference Example I2C Large Block Read Write vi This example VI shows the basics of I2C communications using a TIMS I2C Device and the LabVIEW drivers The TIMS Open Dialog vi and TIMS_Port_Close vi are mandatory and Ports should not be left open indefinitely as some VI s can not execute on open ports The TIMS Open Dialog vi creates a reference used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port _Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally the l2C bus configuration is set as
50. col except that the TIMS 0102 uses dedicated Tx and Rx lines The Tx line is a dedicated serial data output line and the Rx is a dedicated serial data input line 1 3 7 Known Limitations The TIMS 0102 firmware version 1 0 supports only Master mode operation Multi master and slave mode operation will be supported in a future version of the firmware and will be field upgradeable Devices connected to the TIMS 0102 SDI line must be tri stated during 12C operation SCK will be active during an 12C operation Our hardware is capable of supporting Slave mode the functionality will be added via a firmware field upgrade Custom solutions are available by contacting Jova Solutions Sales at 1 866 755 1400 1 4 EXTERNAL VREF The 5V power is switched to the 5V connector pins on both the I2C and SPI connectors using the circuit diagrammed below u P Channel MOSFET 5 Ext 120 5V Ext SP NOTE If a user is connecting both 12C and SPI connector signals to common user circuitry it is recommended that the user connect just one of the 5V outputs Software Specification Page 11 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 2 GENERAL SOFTWARE DESCRIPTION The TIMS 0102 I2C and SPI Interface module is delivered with a full LabVIEW instrument driver is available for use in custom applications written using LabVIEW A low level DLL interface is also available with a
51. d timeout the lO function will return an error and any byte received up to that point Software Specification Page 46 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual error out The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed TIMS Ref Out The TIMS Reference used to communicate with a device TIMS Device Status vi Returns the Status Information of a TIMS device General Status Byte 0 u8 Error Status Byte 1 u8 Reset Status Byte 2 u8 PC Stack Status Byte 3 u8 Expected SW Code Checksum u32 Calculated SW Code Checksum u32 O Jova Solutions Inc Connector Pane To Address OxD0 TIMS Ref TIMS Ref Out o Device Status error IN no error error out timeout mE
52. e diagram shows the building of the script The final script sent to the script VO is SAOOORAT NP This TX script string translates to 1 S Issue an 12C start bit Software Specification Page 21 of 84 OVA solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 2 AO Address the device AO for writing 3 00 Select EEPROM memory location O 0x00 4 R Issue a RESTART bit 5 A1 Address the device AO for reading 6 Read a byte 7 N Issue a NAK bit 8 P Issue a STOP bit As you can see with scripting you have much more control over how the individual communication blocks are assembled With this flexibility comes the extra work of building up complete I O transactions The simple VO example uses at least eight fewer function calls 3 4 4 I2C Subroutine Specific Errors You may receive the 5341 I2C Function Error This is a general error code used to describe errors specific to the I2C bus possibly due to a malfunctioning TIMS device bad bus parameters etc If you receive this error code you should immediately call the fnc 12C FUNCTION ERROR function This function will then return the last I2C Function Error so that you can get a better idea of what has occurred Please see the TIMS Error Codes document for more detail about these codes Software Specification Page 22 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 5 TIMS 010
53. e you will gain access to The Device index input is an integer corresponding to the index of the device on the USB bus The default value of 0 implies the use of the first TIMS 0102 device found Every application should start with this VI and conclude with a call to the TIMS Port Close vi TIMS Ref error in no error error out TIMS Port Close wi If the port has been opened but has not been closed another attempt to open the port will result in an error 1 Invalid Handle To recover from an orphaned reference unplug and then reconnect the USB cable Software Specification Page 15 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Once the TIMS port is open communications with the TIMS module can take place Configuration information can be read from or written to EEPROM memory in the TIMS module and 12C or SPI communications transactions can be performed to devices connected to the TIMS module 3 2 TIMS 0102 5V POWER TO EXTERNAL CONNECTORS The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMSO102 Ext _5V_Control vi TO ref in ref out Ext 5Y ON error in no error LE 2 error out TIMSO102 Eut 5Y Control wi This single VI controls power to both the 12C and SPI connectors simultaneously 3 3 TIMS 0102 I2C BASIC FUNCTIONS The TIMS 0102 LabVIEW drivers provide several higher level VI s to simplify 12C commu
54. empty the write operation is not performed If the Bytes to Read input is set to 0 the read operation is not performed If the TX Data array input has data then this VI starts with a write operation An I2C START bit is followed by an address byte the R W bit is automatically inserted The TX DATA bytes are then transmitted followed with an I2C RESTART command if the Bytes to Read input is set to a value other than zero A Read operation is then performed starting with an I2C START bit followed by an address byte with the R W bit set to R and then the requested number of bytes are received from the slave The operation is completed with an I2C STOP command There is no delay between the write operation and read operation Some devices require processing time before responses can be generated for example if you are writing to a memory location in the EEPROM you can not immediately read back the memory location without a small delay allowing the write cycle to complete Use the I2C scripting function if you need more control over delay timing when executing commands The maximum number of bytes you can write is 254 The maximum number of bytes you can read is 255 Jova Solutions Inc Connector Pane 20 Device 7 Bit Address To Address 0x00 ret in Ts DATA Bytes to Read error in no error timeout ME Controls and Indicators TX DATA Array of bytes to send to the slave I2C device us FROM 1328 timeout ms timeout specifies
55. evice Serial No reference USB Serial Number HARARE EAE E USB Product Description TIMS_Open_Dialog vi Presents a user dialog for selecting a TIMS device Opens a USB connection to a TIMS device Returns a managed TIMS Reference to be used to access this device Jova Solutions Inc Connector Pane fitter TMS Fetf ea Selected device error in no error error out Controls and Indicators od filter error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 71 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed TIM
56. f 4 bit address nCS4 nEN Not Chip Select 4 or Not Enable nCS6 Not Chip Select 6 SDO Serial Data Output SDI 6 Serial Data Input SCK Serial Clock Master Mode Output Slave Mode Input 5V Ext SPI 8 USB 5V through a MOSFET P channel switch nCS1 A1 9 Not Chip Select 1 or bit 1 of 4 bit address nCS3 A3 Not Chip Select 3 or MSB of 4 bit address nCS5 Not Chip Select 5 nCS7 nSS Master mode Not Chip Select 7 output Slave mode Not Slave Select input GND 13 14 15 Ground connect to target system ground Slave mode will be supported in future firmware release 1 1 2 1 Mating Connector DB 15P Male Amp Tyco Electronics Part No 747908 2 or Digi Key Part No A2044 ND Software Specification Page 6 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 1 1 3 USB Connector The TIMS 0102 USB interface is a USB 1 1 and USB 2 0 Full Speed compliant interface available through a USB Type B connector on the rear panel This device when connected to user circuitry could draw up to 500 mA Do not plug the TIMS 0102 into a non powered hub 1 2 12C SIGNALS 1 2 1 Voltage Level Buffering The I2C SDA and SCL signals are buffered between the connected device and the TIMS 0102 module interface logic with a bi directional bus buffer Philips PN P82B96 This device is specifically designed to buffer I2C signals between different logic levels 2V 15V NOTE the
57. ftware Specification Page 31 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual error in The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed EH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed I2C Bus Configuration Slew Rate Target I2C Clock Rate Khz Timeout ms RX DATA FROM error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the e
58. fully documented API for use in other applications This document is limited to the LabVIEW Driver library Contact Jova Solutions for a copy of the TIMS Packet I O Developers Manual for more information on the lower level interfaces available for integration with other programming languages HOST PC Other User Applications TIMS LabVIEW Driver written in C C Visual Basic ete TMS Packet IO Laver FIDZAX DLL USB Interface TIMS5 0102 FTDI USB TMS Packet IO Laver TIMS Firmware Figure 1 Software Organization Software Specification Page 12 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The TIMS 0102 USB to I2C and SPI module utilized USB interface chips from FTDI The FTD2XX DLL is the lowest level software component on the Host PC and all communications to the TIMS 0102 goes through this DLL A complete LabVIEW Driver Library is provided for those who use LabVIEW which eliminates the need to communicate directly with the DLL The complete low level packet communication protocol is also provided later in this section so that C C Visual Basic and other programmers can communicate with the TIMS 0102 directly through the FTD2XX DLL Each of these software layers is described in detail in the following sections Software Specification Page 13 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating M
59. get Clock Rate The I2C clock rate should be set to a value compatible with all devices on your l2C bus The 12C clock rate is programmable to 100KHz 400KHz 1MHz and 252 other frequencies between 39 0625 KHz and 10MHz Slew Rate The Slew Rate can be set to Disabled for standard speed 100K or 1M or Enabled for high speed 400k Jova Solutions Inc Connector Pane To Address OxD0 ret in 2 Bus Configuration error IN no error ref out Best 20 Clock Rate KAZ BFFOF out Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information Software Specification Page 59 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explai
60. he lO function will return an error and any byte received up to that point TIMS Ref The TIMS Reference used to communicate with a device To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed E status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Device Descriptor Device Descriptor contains general information about the TIMS device Model No Serial No Function User ID Software Specification Page 45 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual TIMS Ref Out The TIMS Reference used to communicate with a device TIMS_Device_Reset vi Directs a specified TIMS device to perform a hard
61. ies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit I2C Bus Configuration Slew Rate Target I2C Clock Rate Khz Timeout ms error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 58 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref out TIMS Device Handle TIMS_I2C_ BUS Config Set vi Writes the I2C Bus Configuration parameters to the TIMS I2C Device EEPROM The I2C bus communications configuration clock and slew rates is stored in EEPROM on the TIMS module This bus timing configuration is used for all 12C communications and is retained through power cycling The 12C Bus Configuration includes Tar
62. ies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed RX DATA Array of U8 bytes read from the the I2C device FROM ref out TIMS Device Handle Software Specification Page 62 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual TIMS 12C Error Get vi Returns a description of the last 12C error as a string This VI should be called after an 12C call has returned Error 5341 0x14DD in order to receive a better description of the exact I2C error Jova Solutions Inc Connector Pane To Address OxD0 ref in 20 Status String ref out error IN no error error out Controls a
63. in the example to specify the desired clock and slew rates These settings are stored in the TIMS I2C Device EEPROM and are used for all I2C communications until the configuration Is set again The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMSO102 Ext _5V_Control vi This example uses the TIMS_I2C Device_lO vi easy lO vi to send a command to and read or write a large amount of data to a memory location from an EEPROM I2C device TIMS I2C Device 1O vi only allows you to read a maximum of 255 byes or write a maximum of 254 bytes of data ata time This example calls TIMS I2C Device O vi in a loop to write or read a large block of data If Tx Data is empty then the write operation is not done If Bytes to Read is zero then the read operation is not done Jova Solutions Inc Connector Pane Bytes to Read 20 Address 7 bit Tx Data error in 20 Bus Configuration Controls and Indicators Luz 12C Address 7 bit Tx Data uz FROM Software Specification Page 29 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual error in The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a
64. k and slew rates These settings are stored in the TIMS I2C Device EEPROM and are used for all I2C communications until the configuration is set again The 5V power pins on both the I2C and SPI connectors can be switched on or off using the TIMS0102_Ext_5V_Control vi This example uses the TIMS I2C Device_lO vi easy lO vi to send a command to and write a value to a memory location in a EEPROM I2C device Jova Solutions Inc Connector Pane EEPROM 120 Address 7 hit EEPROM Memory Location TA DATA error in st 22 Bus Configuration error out Controls and Indicators TX DATA FROM EEPROM 12C Address 7 bit EEPROM Memory Location 12C Bus Configuration ts Slew Rate Se Target 12C Clock Rate Khz ue Timeout ms El error in The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE Software Specification Page 39 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more inf
65. l 3 6 TIMS 0102 GENERAL FUNCTIONS The VI s in the General Functions section are related to TIMS 0102 module functions not specifically I2C or SPI These functions include opening and closing a communications port to the TIMS 0102 module scanning the USB bus for TIMS modules and reading configuration information from an a TIMS 0102 EEPROM Every application should start with TIMS 0102 Device _Open vi and conclude with a call to the TIMS Port Close vi If the port has been opened but is not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place Configuration information can be read from or written to EEPROM memory in the TIMS module and 12C or SPI communications transactions can be performed to devices connected to the TIMS module Software Specification Page 27 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 4 WARRANTY Jova Solutions Inc warrants its products for a period of one year from date of delivery against defects in material or workmanship Returned product will either be repaired or replaced at the option of Jova Solutions Inc Specifications are subject to change without notice 9 ABOUT JOVA SOLUTIONS INC Founded in 1998 Jova Solutions Inc provides software and services for industrial automation and interactive data networking Jova Solutions In
66. more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed eH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GER TX Script Software Specification Page 66 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual vszd ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit E E error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information abou
67. mpled at End of TX Output Period e Target Clock Rate DBL Float Target clock rate must be in range from 39 0625 KHz to 10 MHz The second VI is for reading a SPI device configuration Software Specification Page 23 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 5 2 SPI Device Select The TIMS 0102 comes with eight programmable device or chip select lines that are available at the output SPI DB 15F connector These chip select lines can be independently selected or used to generate a combination of a 4 bit address and single chip select line The SPI Device Select is an ENUM enumerated constant with values of ADR x0 nCS4 ADR x1 nCS4 ADR x2 nCS4 ADR x3 nCS4 ADR x4 nCS4 ADR x5 nCS4 ADR x6 nCS4 ADR x7 nCS4 ADR x8 nCS4 ADR x9 nCS4 ADR xA nCS4 ADR xB nCS4 ADR xC nCS4 ADR xD nCS4 ADR xE nCS4 ADR xF nCS4 NCSO nCs1 nCS2 nCS3 nCS4 nCS5 nCS6 nCS7 No Select When ADRx0 nCS4 through ADRxF nCS4 is selected the corresponding SPI Device configuration is recalled and used in the following transaction The address lines are updated with the requested address and then the nCS4 i e nEN Not Enable is set low If nCSO through nCS7 is selected then SPI Device Configurations O through 7 is recalled and used in the following transaction The requested line nCSO nCS7 is set low Selecting the No Select option sets all line high
68. n Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 134 timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point Ad TIMS Ref The TIMS Reference used to communicate with a device is To Address 0xDO To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information Software Specification Page 53 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual ab
69. n Error or Explain Warning gives more information about the error displayed 12C Bus Configuration Slew Rate Target 12C Clock Rate Khz Timeout ms ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit Best I2C Clock Rate Khz error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref out TIMS Device Handle TIMS 12C Device 1O vi Performs a simple 12C VO transaction with RESTART to a 7 bit addressable device Software Specification Page 60 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual This VI can perform both a write and read operation If the input TX DATA is
70. nal level use e Microwire compatible e Programmable clock rate Software Specification Page 4 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 1 1 CONNECTOR DETAILS 1 1 1 I2C Connector The TIMS 0102 I2C connector DB 9S Female contains the I2C interface connection pins Vref In 1 6 GND SDA _2 7 GND SCL 3 8 GND GND 4 9 GND 5V Ext PC 5 DB9S I2C DB 9S Pin Descriptions Vref In User supplied I2C V from target system to the P82B96 buffer Serial Data Line used to transfer data between transmitter and receiver Serial Clock Line used to synchronize communication GND 4 6 7 8 9 Ground connect to target system ground 5V Ext 12C USB 5V through a MOSFET P channel switch 1 1 1 1 Mating Connectors DB 9P Male Amp Tyco Electronics Part No 747904 2 or Digi Key Part No A2043 ND Software Specification Page 5 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 1 1 2 SPI Connector The TIMS 0102 SPI connector DB 15S Female contains the SPI or interface connection pins nCS0 A0 1 nCS1 A1 nCS2 A2 5 nCS3 A3 nCS4 nEN 3 nCS5 nCS6 4 _nCS7 SDO al GND SDI 6 GND SCK_ Ek di GND 5VExt SPI 8 DB 15S SPI and DB 15S Pin Descriptions NCSO AO Not Chip Select O or LSB of 4 bit address nCS2 A2 Not Chip Select 2 or bit 2 o
71. nd Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit i EE error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE Software Specification Page 63 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C S
72. ngle VI the TIMS 0102 I2C Script_lO vi provides the script download and execution functionality TO ref in Ts Script error in no error timeout ms ref out FX Script I2C Subroutine Error error out b TIMS I2C Script ID vi This VI takes a Tx Script transmit string input downloads the script to the TIMS 0102 executes the script and returns a RX Script return sting containing the data and any errors encountered in the execution of the script Even though Tx script strings may be up to 256 characters in length the response generated from the script execution cannot exceed 256 bytes or an error will be generated The Rx Script return string contains the original script with extra characters inserted the contain errors or response data bytes from the slave If an error occurs during execution of the script an exclamation point is placed in the string where the error occurred An error will terminate the I O operation with a forced STOP condition Software Specification Page 20 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual NOTE Any queries made using the 12C scripting function may return more data bytes than are sent The scripting function will only return 256 bytes of data any other bytes are discarded If the returned data from a script exceeds 256 bytes there will be no error code returned However any code should check for this condition
73. nications These VI s work well for the most common forms of I2C communications 12C scripting is also available for the more complex or obscure forms of I2C 10 bit addressing C BUS etc See Section 5 3 for details on I2C scripting functionality and usage 3 3 1 I2C Bus Configuration Functions The I2C bus communications configuration clock and slew rates is stored in EEPROM on the TIMS module This bus timing configuration is used for all 12C communications and is retained through power cycling Two VI s are provided for reading or writing this configuration information The I2C Bus Configuration is a cluster containing e Target 12C Clock Rate KHz DBL e The Target 12C clock rate can be programmed to be 100KHz 400 KHz 1MHz and 252 other frequencies between 39 0625 KHz and 10 MHz e Slew Rate ENUM The Slew Rate can be set to Disabled for standard speed 100K or 1M or Enabled for high speed 400K Software Specification Page 16 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 3 3 2 I2C Simple I O Functions In addition to the configuration VIs simple I O VI s are also provided The TIMS 12C Device O vi performs a simple 12C VO transaction to a 7 bit addressable device I2C Device 7 Bit Address TO ref in Tid ref out Ts DATA Fa DATA Bytes to Read TEE error out error in no error timeout ms TIMS IZL Device _10 vYi This VI can perform both a
74. ns JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual 2 By TIMS Serial Number You can open by TIMS Serial Number as well This is the Serial Number printed on the label on the outside of your TIMS device 2 By USB Description If you have multiple models of TIMS units you can access the unit by specifying the USB description However this method is not recomended if you have multiple units of the same model attached to the system In this case the USB descriptions will be the same for similar models and it is impossible to predict which specific device you will gain access to Jova Solutions Inc Connector Pane Device TMS 010 TIMS Ref Out mm _ SH Dezc Method device error IN no error error out Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more inform
75. or or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed fus RX DATA FROM ref out TIMS Device Handle write eeprom 25LC040_example vi Connector Pane TIME SFI EEFROM Wirte Controls and Indicators none Software Specification Page 83 of 84
76. ormation about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed error out The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 40 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual read eeprom 25LC040_example vi O Jova Solutions Inc Connector Pane TIME EEF ROM Read Controls and Indicators TIMS0102 Control Panel vi Jova Solutions Inc Connector Pane Controls and Indicators TIMS0102 Ext_5V_Control vi Controls power to the 5V pins of the I2C and SPI connectors on the TIMS 0102 module
77. out the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed User ID The user specified name for the TIMS device TIMS Ref Out The TIMS Reference used to communicate with a device TIMS Device User ID Set vi Sets the user specified Name for the TIMS device O Jova Solutions Inc Connector Pane To Address 0x00 TIMS Ret User ID error IN no error timeout m TMS Ref Out error out Controls and Indicators vd To Address 0xDO To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the er
78. p up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning Software Specification Page 70 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed FOUND TIMS USB DEVICES Cluster Status Type Index Model No Description User ID User supplied Name of the TIMS d
79. p up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed TIMS_SPI_Data_lO vi This vi performs a basic SPI communication transaction This VI does not affect the device select lines they must be separately enabled This VI is intended to be used when more than 255 bytes need to be read or sent out between chip select enabled and chip select disabled as in the following VI In this situation call TIMS_SPI_Data_lO vi in a loop between calls to TIMS SPI Device Enable vi O Jova Solutions Inc Connector Pane To Address OxD0 ret in Tx DATA error IN no error timeout mE Controls and Indicators TX DATA uz FROM 1328 timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an Software Specification Page 4 of 84 solutions JOYA i BE Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual error and any byte received up to that point
80. r ref out t Device Configuration So error cut Controls and Indicators us SPI Device Ref Specifies which of the 16 available device configurations to retrieve EE error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information Software Specification Page 6 of 84 solutions JOYA BE Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit error out The error out cluster passes error or warning information out of a VI to be
81. rmation about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning Software Specification Page 35 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information
82. ror or warning Software Specification Page 54 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 4 timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specified timeout the lO function will return an error and any byte received up to that point GEE User ID The user specified name for the TIMS device uaz TIMS Ref The TIMS Reference used to communicate with a device error out The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The
83. rror or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 32 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Example 12C script read eeprom memory vi This example VI shows the basics of 12 communications using the TIMS I2C Device and the LabVIEW I2C scripting drivers The TIMS Open Dialog vi and TIMS_Port_Close vi are mandatory and Ports should not be left open indefinitely as some VI s can not execute on open ports The TIMS Open Dialog vi creates the reference TIMS0102 Handle used by all other VI s in the driver library Every application should start with this VI and ensure that the TIMS Port Close vi is also called once for every port open command If the port has been opened and not closed another attempt to open the port will result in an error 1 Invalid Handle Once the TIMS port is open communications with the TIMS module can take place and normally the I2C bus configuration is set as in the example to specify the desired clock and slew rates These settings are stored in the TIMS I2C Device EEPROM and are used for all I2C communications until the configuration is set again The 5V power pins on both
84. t the error displayed RX Script I2C Subroutine Error ref out TIMS Device Handle TIMS_I2C_Script_NAK vi Adds an I2C NAK script element to the script string Jova Solutions Inc Connector Pane Script input UIE Script output 20 SEL Controls and Indicators GEE Script input Script output TIMS_I2C_ Script Read Byte vi Software Specification Page 67 of 84 solutions JOYA Adds a READ BYTE script element to the script string O Jova Solutions Inc Connector Pane Script input Script output Controls and Indicators GEE Script input Script output TIMS_I2C_Script_Restart vi Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Adds an I2C RESTART command script element to the script string Jova Solutions Inc Connector Pane Script input Script output Controls and Indicators GEE Script input Script output TIMS_I2C_Script_Start vi Adds an I2C START script element to the script string O Jova Solutions Inc Connector Pane Script input TIHE Script output DA SCL Controls and Indicators GEE Script input Script output TIMS 12C Script Stop vi Adds an I2C STOP script element to the script string Jova Solutions Inc Software Specification Page 68 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Connector Pane Script input Script output Z
85. ter representing an l2C communications protocol basic component Script character codes are case sensitive S Start P Stop R Restart K ACK N NAK Read Byte Wait 1 2 msec minimum of 1 msec not more than 2 msec O F Tx Hex character must be in pairs An example script to write to an 27 C01 EEPROM memory location and then read back the memory location value is as follows Tx Script SAOOOOOP SAOOORA1 NP Rx Script SAOOOOOP SAOOORA1 200NP This translates to Issue a START bit Address the device AO Select EEPROM memory location 0 ox00 Write a zero to the memory location 0x00 Issue a STOP bit Wait 1 msec Issue a START bit Readdress the device and select memory location 0 Issue a RESTART bit 10 Readdress the device to read 11 Read a byte from location zero 12 Issue a NAK indicating no more reading 13 Issue a STOP bit OONDOBRWDND a The 12C scripting functionality allows users to build up a series of I2C communications elements send them in mass to the TIMS I2C Device processor and then have the clocked out consistently at the configured clock rate This scripting mechanism allows the user to implement some other protocols not directly supported by the standard driver C Bus and I2C 10 bit addressing are examples of functionality that can be built using the scripting function Software Specification Page 65 of 84 solutions JOYA Test Instrument Module System
86. terface Operating Manual error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 73 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual vd TIMS Ref The TIMS Reference used to communicate with a device error out The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The po
87. terface Operating Manual checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1328 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed EH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed ref in TIMS Device Handle To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit BE error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Best Freq khz
88. tions elements send them in mass to the TIMS I2C Device processor and then have the clocked out consistently at the configured clock rate This scripting mechanism allows the user to implement some other protocols not directly supported by the standard driver C Bus and I2C 10 bit addressing are examples of functionality that can be built using the scripting function The Rx Script return string contains the original script with extra characters inserted the contain errors or response data bytes from the slave If an error occurs a exclamation point is placed in the string where the error occurred Another example that reads 16 bytes beginning at location 0x10 Tx Script SADOORA1 K K K K K K K K K K K K K K K NP Rx Script SADOORA1 00K 01K7 02K 03K204K 05K 06K 07K 08K 09K 0A7 0B 0C 0D 0E 0FNP O Jova Solutions Inc Connector Pane EEPROM AL Address 7 bi EEPROM Memory Location error in 22 Bus Configuration Ra Script Memory value Sa error out Software Specification Page 34 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Controls and Indicators is EEPROM I2C Address 7 bit EEPROM Memory Location 12C Bus Configuration Slew Rate Target 12C Clock Rate Khz Timeout ms error in The error out cluster passes error or warning information out of a VI to be used by other Vls The pop up option Explain Error or Explain Warning gives more info
89. user must supply the reference voltage to pin 1 of the I2C connector 1 2 2 Pull up Resistors The TIMS 0102 does not provide internal pull up resistors on the I2C SDA and SCL lines It is imperative that the user provides pull up resistors between the SDA and SCL signals and the Vref voltage The overall net current requirements based on all of the devices that will be connected to the SDA or SCL nodes including the Philips P82B96 device should be considered when selecting the pull up resistor values 1 2 3 Drive Current The Philips P82B96 buffer used in the TIMS 0102 has a 60 mA sink capability for driving low impedance buses 1 2 4 Clock Rates The TIMS 0102 supports the 100 KHz and 400 KHz 12C standard clock rates 252 other clock speeds are available between 39 0625 KHz and 10 MHz oe 10000 00 which can be used for non standard m communications or for margin testing E urposes ome l 2000 00 NOTE The 12C voltage level buffer re Philips P82B96 supports rates up to E 400 KHz y 1000 00 AI E n lt 500 00 300 00 I I l I l 0 5 10 15 20 25 Available clock rates in the 400 KHz to 10 MHz range Software Specification Page 7 of 84 solutions JOYA Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual Overall command and data throughput to an 300 00 I2C device from a host computer through the TIMS 0102 module can be affected by many variables including setup time and the
90. ware reset O Jova Solutions Inc Connector Pane To Address OxD0 TIMS Ref TMS Ref Out error IN no error error out timeout mE Controls and Indicators error in no error The error in cluster can accept error information wired from VIs previously called Use this information to decide if any functionality should be bypassed in the event of errors from other Vls The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed EH source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed TIMS Ref The TIMS Reference used to communicate with a device To Address 0xD0 To Address specifies the TIMS processor address The default value of OxDO refers to the main processor on any TIMS unit E EE timeout ms timeout specifies the amount of time in milliseconds that the LabVIEW driver will wait after each byte is received from a TIMS unit If the next byte is not received within the specifie
91. warning The pop up option Explain Error or Explain Warning gives more information about the error displayed 1324 code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed GEE source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed I2C Bus Configuration Slew Rate Target I2C Clock Rate Khz Timeout ms Bytes to Read error out The error out cluster passes error or warning information out of a VI to be used by other VIs The pop up option Explain Error or Explain Warning gives more information about the error displayed status The status boolean is either TRUE X for an error or FALSE checkmark for no error or a warning The pop up option Explain Error or Explain Warning gives more information about the error displayed code The code input identifies the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Software Specification Page 30 of 84 solutions Test Instrument Module System TIMS 0102 USB to I2C SPI Interface Operating Manual source The source string describes the origin of the error or warning The pop up option Explain Error or Explain Warning gives more information about the error displayed Rx Data F

Download Pdf Manuals

image

Related Search

Related Contents

TrekStor PH109018 User's Manual  Audiovox FPE2706DV TV DVD Combo User Manual  Lexmark X940e  Manual - LevelOne  ECS 350 DUAL SYSTEM  Hardware manual - Remote Processing  Caso Fomini  水道直結型の TA型  dissertação na integra    

Copyright © All rights reserved.
Failed to retrieve file