Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Zeroplus I2C-SPI

  • Page 2: Table Of Contents

    4.1 Steps for Hardware Connection ................27 4.2 I2C Mode .........................28 4.3 SPI Mode ........................40 4.4 GPIO Mode ......................48 4.5 Log Window ......................52 4.6 Batch ........................54 4.7 I2C Monitor ......................62 4.8 I2C Master sample ....................65 2/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 3: Introduction

    The I2C-SPI Control Center can be divided into three Modes, namely, I2C Mode, SPI Mode and GPIO Mode. With the help of the ZEROPLUS Logic Analyzer, the I2C-SPI Control Center can be used to do the R&D work more effectively.
  • Page 4: Package Contents

    I2C-SPI Control Center User Manual V1.02 1.2 Package Contents As soon as you get the package of the ZEROPLUS I2C-SPI Control Center Hardware, please verify the package contents. The following components should be included with your product. Product Name Quantity...
  • Page 5: Hardware Introduction

    I2C-SPI Control Center User Manual V1.02 1.4 Hardware Introduction Front View Right View Left View 5/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 6: Hardware Installation And Software Installation

    1. Install the Software according to the 2.2 Software Installation of the Specification in the Software Installation Disk. 2. Connet the I2C-SPI Control Center Hardware to the PC via a USB Cable after the Software Installation has been finished. Connect the 10-Pin Cable and 12-Pin Cable to the I2C-SPI Control Center Hardware and Board to...
  • Page 7 2. At this moment, the 6 Pin Mode can not be selected in the GPIO of I2C Mode. 3. When the Mode is exited in the I2C Batch Mode, the Mode 7/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 8 It is the same with the 8 Pin Mode. That is to say, in the GPIO GPIO Batch Batch Mode, the I/O Ctrl and the Target Power are selected, Batch but they are forbidden to perform any operation. 8/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 9: Software Installation

    User Manual V1.02 2.2 Software Installation Please install the software as the following steps: STEP 1. Double-click on the Setup.exe icon. STEP 2. Click the English to install the English System. 9/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 10 I2C-SPI Control Center User Manual V1.02 STEP 3. Click Next. STEP 4. Select I accept the terms in the license agreement, and then click Next. 10/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 11 User Manual V1.02 Fill in users’ information in the below dialog box and click Next STEP 5. Select the Complete or Custom as users’ requirements, and then click Next. STEP 6. 11/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 12 I2C-SPI Control Center User Manual V1.02 STEP 7. Click Install to begin the installation. STEP 8. Click Finish to complete the installation. 12/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 13: User Interface

    Bit Rate: It is used to set the communication speed between the Master and the Slave, and it can only be selected from the eleven options on the pull-down menu, namely, 2, 10, 20, 40, 80, 100, 200, 400, 13/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 14 Message area, the data will be written into the Slave Device after pressing the Write button, and the maximum data is 10240 Bytes. I2C Slave Page Slave Address: It is used to set the Address of the Data Transmission, which is entered in Hexadecimal 14/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 15 Condition1: It can be used to set the Write Data, Write Data (1st), Read Data and the Read Data (1st). Condition2: It can be used to set the Write Data, Write Data (1st), Read Data, Read Data (1st) and the 15/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 16 Settings and the Functions of the Pins are the same with that of the GPIO Mode, but the only difference is that the SDA and SCL Pins are disabled in the GPIO Page under the I2C Mode. 16/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 17: Spi Mode

    The Trigger Conditions of the Data Transmission between SPI Master and Slave consists of four kinds, namely, CPOL, CPHA, Bit Order and SS Polarity. The detailed descriptions are as below: 17/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 18 When the Button is in the Enable status, the MISO data (CPOL, Bit Order and CPHA) and the Respond Message can be set at that time, and the data will be reported to the Master Device. 18/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 19 ※ When the Condition is set to MOSI Data (1st) or MISO Data (1st), it denotes that as long as the Condition is set for the first data of the Packet, the Trigger Condition will be satisfied. 19/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 20 MOSI Data(1st) or MISO Data(1st), the length of Data only can be set to “1”. Count: It is used to set whether the Condition conforms to the Trigger Count. Continuity: It is used to set whether the two Conditions are continuous. 20/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 21 Settings and the Functions of the Pins are the same with that of the GPIO Mode, but the only difference is that the SS, MOSI, MISO and SCLK Pins are disabled in the GPIO Page under the SPI Mode. 21/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 22: Gpio Mode

    Set button. In Value: When the Get button is pressed, the statuses of the current Pins can be displayed as High (1) or Low (0). 22/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 23: Log Window

    Length: It is used to display the length of the Transmission Data. And it is only used by I2C or SPI. Data: It is used to display the Transmission Data. 23/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 24: Batch

    2. When the GPIO Batch Mode is used, the external GPIO Mode Switch must be set to Batch at first, and then the Software must be set to GPIO Batch Mode. I2C/SPI Batch 24/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 25: I2C Monitor

    I2C Monitor I2C Monitor can only be used in the I2C Mode, which is used to monitor the transmission status of the Data among the devices. 25/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 26 Time: It is used to display the time of writing/reading the data (This timestamp is based on when the I2C-SPI Control Center application monitored the data only and may differ from the actual time when the data was sent from the bus.).
  • Page 27: Operating Instructions

    In the case of I2C and SPI Operations, it is necessary to connect two hardware devices synchronously to perform the corresponding operations; the I2C-SPI Control Center can be used as a Master or Slave. STEP 1. Connect the device, and then plug the device into the USB Port on the PC.
  • Page 28: I2C Mode

    I2C Bus Pull Hi SW is set to OFF. (1) The I2C-SPI Control Center is used as a Master to perform Read/Write Operations STEP 1. Select the I2C Mode from the Software Window of Master, and then set the Slave Address on the I2C Master Page.
  • Page 29 (1) Write Data on the Master End: Write 16-Bit data in the Write Message area and the data will be written out by the Device after pressing the Write button. 29/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 30 I2C-SPI Control Center User Manual V1.02 The Write Data is displayed by the ZEROPLUS Logic Analyzer as below figure: (2) Read Data on the Master End: Set the Read Bytes of the data to be read, and then press the Read button to read the data.
  • Page 31 Byte of the Master Read or Write; and it will keep the current Read or Write status continuously. For example, press the Read button after selecting the No Stop. The results are displayed by the ZEROPLUS Logic Analyzer as below figure: 31/67...
  • Page 32 Free Bus button quickly; the Master Device will transmit a Stop command to the Bus, which will make the Bus free. When the Compression function of the ZEROPLUS Logic Analyzer is activated, the results are displayed as below figure:...
  • Page 33 Address, 0x2AA, is set for the I2C-SPI Control Center, the Hexadecimal Addresses which are decoded by the ZEROPLUS Logic Analyzer are 0X7A and 0XAA. When they are changed into the Binary Addresses, the two Addresses are 1111010 and 10101010 respectively.
  • Page 34 I2C-SPI Control Center User Manual V1.02 The results are displayed by ZEROPLUS Logic Analyzer as below figure: Data in Binary Notation STEP 7. Select 10-Bit Address and the Combined Format, the Combined Format is only suitable for the Master Read and Write .
  • Page 35 I2C-SPI Control Center User Manual V1.02 The results are displayed as below figure: Data in Binary Notation 35/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 36 I2C-SPI Control Center User Manual V1.02 (2) The I2C-SPI Control Center is used as a Slave to perform Read/Write Operations STEP 1. Select the I2C Slave tab from the Software Window of Slave, and then set the value of the Slave Address to coincide with that of the Master.
  • Page 37 The results are displayed by ZEROPLUS Logic Analyzer as below figure: Remark: When the I2C-SPI Control Center is used as a Slave, the data, which is written in the the I2C Slave Page of the I2C-SPI Control Center Software, will be responded to the Master. When the Respond Bytes are set to “0”, all data will be responded;...
  • Page 38 3. When the Trigger function is used in the I2C Slave Mode, the interval time between two Bytes should be longer than 14uS. STEP 1. Select the I2C Trigger Page on the I2C Mode. 38/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 39 When the Continuity is selected, the definition for the I2C Continuity is as following: When the data meets the Condition1, the I2C-SPI Control Center will check whether the data between the next Start and the previous Start meets the Condition2; if the data meets the Condition2, the two groups of data are continuous.
  • Page 40: Spi Mode

    2. The highest CLK Bit Rate to receive data is 4MHz in the SPI Master/Slave Mode. When the CLK Bit Rate exceeds 4MHz, it can not be ensured that the received data is correct. (1) The I2C-SPI Control Center is used as a Master to perform Read/Write Operations STEP 1.
  • Page 41 Set the corresponding Trigger Conditions (CPOL, CPHA, Bit Order and SS Polarity) on the SPI Master Page. STEP 3. Set the Bit Rate from the pull-down menu on the SPI Master Page, and also users can input manually. 41/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 42 User Manual V1.02 STEP 4. Write the data in the MOSI Message area, and then press the Write button. The results are displayed by the ZEROPLUS Logic Analyzer as below figure: Notice: SPI utilizes the Full-duplex Transmission mode to transmit the signal. Specifically, when the message is transmitted from the MOSI, it will be received in the MISO Message area at once;...
  • Page 43 I2C-SPI Control Center User Manual V1.02 (2) The I2C-SPI Control Center is used as a Slave to perform Read/Write Operations STEP 1. Select the SPI Slave tab on the SPI Mode from the Software Window of the Slave. STEP 2.
  • Page 44 The results are displayed by the ZEROPLUS Logic Analyzer as below figure: Remark: When the I2C-SPI Control Center is used as a Slave, all data, which is written in the SPI Slave Page of the I2C-SPI Control Center Software will be transmitted to the Master.
  • Page 45 3. When the Trigger function is used in the SPI Slave Mode, the interval time between two Bytes should be longer than 10uS. STEP 1. Press the SPI Trigger Page on the SPI Mode. 45/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 46 The definition for the SPI Continuity is as following: When the data meets the Condition1, the I2C-SPI Control Center will check whether the data between the next SS Enable and the previous SS Enable meets the Condition2; if the data meets the Condition2, the two groups of data are continuous.
  • Page 47 STEP 3. Press the Enable button to use the set Trigger Conditions. The results are displayed by the ZEROPLUS Logic Analyzer as below figure: Remark: When the data meets the abovementioned set Trigger Conditions, the Target Power (the Pin is connected with the Trigger Signal of the Logic Analyzer) will transmit a Change Edge (Rising Edge or Falling Edge).
  • Page 48: Gpio Mode

    GPIO uses eight Pins to transmit the general signals, which are SCL, SDA, SCLK, MISO, MOSI, SS, I/O Ctrl and Target Power. STEP 1. Press the CPIO Mode on the Software Window. 48/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 49 Mode. (Take the 6 Pin Mode for an example) STEP 3. Set the Direction to In or Out. When All Out or All In is pressed, all available Pins can be set to Out or In synchronously. 49/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 50 When the Direction is set to In, the Pull Up can be set to On or Off. When the All On or All Off is pressed, all available Pins can be set to On or Off. And then press the Get button to get the outputted data. The results are displayed by ZEROPLUS Logic Analyzer as below figure. 50/67 FMO7I5A...
  • Page 51 When the Direction is set to Out, the Out Set can be set. Press the Set button to write the set values into the Device. The results are displayed by ZEROPLUS Logic Analyzer as below figure. In addition, the Operating Steps of GPIO in I2C Mode and SPI Mode are the same with that of the GPIO Mode, and the only difference is that some pins cannot be used in different modes.
  • Page 52: Log Window

    STEP 1. Press the Log tab, and move the Up/Down Scroll or pull the bottom of the Software Window to view the information. STEP 2. Move the Cursor to the information column, and double-click on the Right Key to view, clear or save the data. 52/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 53 View on the pull-down menu to view the information in the Log dialog box. STEP 4. Press the Save Data button to save the information in the Data column, or press the Close button to close the Log dialog box. 53/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 54: Batch

    Notice: When the I2C or SPI Batch Mode is used, the external GPIO Mode Switch should be set to 8 Pin Mode. STEP 1. Select the I2C Mode, and then press the Batch tab. 54/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 55 Move the cursor to the Batch window, and then click Right key on the mouse. Next, press the Load option. STEP 3. Open a Batch Mode from the saved files; take the SampleBatch_I2C.txt for an example. 55/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 56 Modify the Bit Rate, Slave Address and Data of the loaded file, for example, the original Slave Address, 65535, is modified as 80. STEP 5. Press the Run button to perform the modified data. 56/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 57 I2C-SPI Control Center User Manual V1.02 The results are displayed by ZEROPLUS Logic Analyzer as below figure. (2) GPIO Batch Notice: 1. When the GPIO Batch Mode is used, the external GPIO Mode Switch must be set to Batch at first, and then the Software must be set to GPIO Batch Mode.
  • Page 58 STEP 2. Open a Batch Mode file from the saved files or enter the Command by manual, take the TestGPIOBatchMode. txt for an example. STEP 3. Set the Bit Rate, and then press the Run button. 58/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 59 I2C-SPI Control Center User Manual V1.02 The results are displayed by ZEROPLUS Logic Analyzer as below figure.  Batch Mode Command a. ModeStatus: Set the Control Mode of the Hardware There are three kinds of Control Flag to be used, namely, FTXX_I2CMODE, FTXX_SPIMODE...
  • Page 60 “[ “ and “]” respectively . The MISOData can be displayed in the line folding mode, see the below: SPISlaveModeMISOData=[00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 60/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 61 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21] END LOOP DELAY Time(ms) DELAY 20000  GPIOBatchMode Command SetGPIOBatchModeOutputData: Set the OutputData of Batch in GPIO Mode, the Start 61/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 62: I2C Monitor

    20 21] 4.7 I2C Monitor When the I2C-SPI Control Center is used for monitoring, it can monitor the Transmission status of the Data between I2C Master and Slave. Notice: The highest SCL Bit Rate is 150KHz. When the SCL Bit Rate exceeds 150KHz, it can not be ensured that the received data is correct.
  • Page 63 I2C-SPI Control Center User Manual V1.02 STEP 1. Activate the software to select a I2C-SPI Control Center Hardware, and then press the Connect button. STEP 2. Select the I2C Mode and press the I2C Monitor tab. STEP 3. Press the Run button to perform the Monitor function.
  • Page 64 STEP 6. Select an entry, and then press the Right key on the mouse. Next, select Clear or Save to clear or save the current information on the Monitor window. 64/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 65: I2C Master Sample

    Register address where Master will read data start with. If wants to read the data of Slave register 0, Master needs to send CMD, Para0 to Slave according to the defined data format to inform Slave. Before reading, the Read Bytes of I2C-SPI Master needs to be set 1. The operation steps are as follow. STEP 1.
  • Page 66 Before reading, set the Read Bytes to 1 in the Master. The read response on the Master is STEP 4. follow. The 0x20 is the data in the 0x11 Slave Register. 66/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...
  • Page 67 I2C-SPI Control Center User Manual V1.02 The communication is completed. STEP 5. 67/67 FMO7I5A User Guide r Zeroplus Technology I2C-SPI Control Center...

Table of Contents