ICP DAS USA I-7188XA Series User Manual

Hide thumbs Also See for I-7188XA Series:
Table of Contents

Advertisement

Quick Links

I-7188XA Series User's Manual
Warranty
All products manufactured by ICP DAS are under warranty regarding
defective materials for a period of one year, beginning from the date of
delivery to the original purchaser.
Warning
ICP DAS assumes no liability for any damage resulting from the use of
this product. ICP DAS reserves the right to change this manual at any
time without notice. The information furnished by ICP DAS is believed to
be accurate and reliable. However, no responsibility is assumed by ICP
DAS for its use, not for any infringements of patents or other rights of
third parties resulting from its use.
Copyright
Copyright©2007 by ICP DAS Co., Ltd. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks of
their respective companies.
I-7188XA Series User's Manual( Ver.1.2, Feb/2014, 7MH-019-10 ) --- 1

Advertisement

Table of Contents
loading

Summary of Contents for ICP DAS USA I-7188XA Series

  • Page 1 Copyright Copyright©2007 by ICP DAS Co., Ltd. All rights are reserved. Trademark The names used for identification only may be registered trademarks of their respective companies. I-7188XA Series User’s Manual( Ver.1.2, Feb/2014, 7MH-019-10 ) --- 1...
  • Page 2: Table Of Contents

    4.11 Using Digital Input and Digital output ................71 4.12 Using the I/O Expansion Bus ..................73 4.12.1 Definition of an I/O Expansion Bus ................ 73 4.12.2 I/O Expansion Boards.................... 76 Applications ....................77 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 3 Using MSVC++ Compiler ....................149 Compiling on 64-bit platform like Windows 7 or Winodows 8 / 8.1 ........154 Appendix F: Glossary ..................165 Appendix G: Revision History ............... 166 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 3...
  • Page 4: Introduction

    Note: If any of these items are missing or damaged, please contact your local distributors for more information. We recommend that you save the shipping materials and cartons in case you want to ship the product in the future. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 5: Features

     Two Open-collector output Channels  Built-in self-tuner ASIC controller on the RS-485 port  Optional 5 digits 7 segment display  Built-in MiniOS7 by ICP DAS  Program download port: COM4 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 5...
  • Page 6: Specifications

    Operating temperature -25°C to +75°C Storage Temperature -30°C to +80°C Humidity 10 to 90% RH(non-condensing) Power Power requirements 10 to 30V/DC (non-regulated) 2.0W for I-7188XA Power consumption 3.0W for I-7188XAD I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 7: Software And Document Information

    CD:\Napdos\7188XABC\Xboard\Document\ folder and the “I/O Expansion Bus for 7188X/7188E User’s Manual” contain the same content, so the user can refer to either document for more details related to the I-7188XA(D) I/O expansion bus. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 7...
  • Page 8 Before continuing, it is recommended that you read the Readme.html, which can be found in the CD:\Napdos\7188XABC\7188XA\. The latest information available prior to shipping will be contained in this file. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 9: Hardware Information

    1.4 Hardware Information 1.4.1 Schematics and Dimensions of the I-7188XA(D) Top View Rear View Side View Unit: mm DIN-RAIL MOUNTING BRACKET Front View Bottom View I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 9...
  • Page 10: Pin Assignment

    TXD4 TXD pin for COM4 (RS-232) RXD4 RXD pin for COM4 (RS-232) GND pin for COM3 and COM4 TXD3 TXD pin for COM3 (RS-232) RXD3 RXD pin for COM3 (RS-232) I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 11 DB-9 RS-232 connector of the Host PC. If JP6 is set to RS-485, COM1 can drive I-7000 series modules directly. For wiring connection details, please refer to Section 1.4.5. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 11...
  • Page 12: Mounting The I-7188Xa(D)

    1.4.3 Mounting the I-7188XA(D) 1. Din-Rail Mounting 2. Stack Mounting I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 13: Block Diagram

    COM3 EEPROM 80188-40 CPU RS-232 (2K) or compatible COM4 5-Digit LED RS-232 (Optional) DO: 2 Channels DI: 2 Channels 100mA, 30V 3.5V to 30V +10V to +30V Power Converter I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 13...
  • Page 14: Wiring Diagrams For Application

     Connect wire-2, labelled TX, to pin-5 of the I-7188XA(D)  Connect wire-3, labelled GND, to pin-7 of the I-7188XA(D)  Connect the DB-9 of the download cable to the PC COM1/2/3/4 Port I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 15  Connect the RXD to the TXD of the RS-232 device  Connect the TXD to the RXD of the RS-232 device  Connect the GND to the GND of the RS-232 device I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 15...
  • Page 16  Connect the RTS to the CTS of the RS-232 device  Connect the CTS to the RTS of the RS-232 device  Connect the GND to the GND of the RS-232 device I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 17 Note: The COM1 pin assignment of the I-7188XA(D) is the same as the Host PC. The settings for JP6 on the I-7188XA(D) is as follows: COM1 = RS-232 (default) I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 17...
  • Page 18 Note: The RS-485 interface can directly drive up to 256 I-7000 series modules without the need for a repeater. When using COM1 as an RS-485 COM Port, the settings for JP6 on the I-7188XA(D) is as follows: COM1 = RS-232 (default) I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 19: Di/Do Wire Connection

    DI value as 1 Relay Contact TTL/CMOS Logic Open Collector Digital Output Wire Connection ON State OFF State Input Type DO value as 1 DO value as 0 Drive Relay Resistance Load I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 19...
  • Page 20: Mounting The I/O Expansion Bus

    1.4.7 Mounting the I/O Expansion Bus Before mounting: After mounting: I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 21: Quick Start

    Note: The 7188xw.exe file is used as a bridge between the I-7188XA(D) and the Host PC. Therefore, the 7188xw.exe file must be copied to the “C:\Windows\” folder to allow it to be executed from any location. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 21...
  • Page 22: Connect The Download Cable To The Host Pc

    If the non-display version of module is being used, please continue to the next step. Step 4: Check that the red LED continuously blinks four times and wait for one second to next cycle. The diagram show as follows: I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 23 Note: Only the display version of the module will include a 5-digit 7-SEG LED. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 23...
  • Page 24: Downloading Programs To The I-7188Xa(D)

    MiniOS7 Utility Ver 3.11. Step 2: Press and Select “New connection”. Choose the right COM port and set other parameters. Click OK button and the utility will search module automatically. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 25 Step 3: See if the MiniOS7 Utility connects with I-7188XA. The connected icon is . The disconnected icon is See here to know connection status. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 25...
  • Page 26 I-7188XA(D) file list Host PC file list Step 5: Select the file and then press the right mouse button. Choose the Run and press to execute the program. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 27 #include “7188xa.h” /* Include the headers to use 7188xal.lib functions */ void main(void) InitLib(); /* Initiate the 7188xa library */ Print("Hello world!\r\n"); /* Print the message on the screen */ I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 27...
  • Page 28: Minios7 Upgrade

    Step 2: Execute the MiniOS7 Utility. Refer to Step2 in Sec2.3 to connect the module. Select the MiniOS7 image file that you want to upgrade on the left side. Click the right mouse button to choose the “Update MiniOS7 Image”. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 29 MiniOS7 was updated successfully, a Confirm action dialog box will appear. Step 4: Press button and see the “Build” item to check the version number of the MiniOS7. The diagram is as follow: I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 29...
  • Page 30 Note: Besides using the MiniOS7 Utility to upgrade the MiniOS7, 7188xw.exe can also be used. Refer to Appendix B: MiniOS7 Utility and 7188XW for download procedures. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 31: Writing Your First Program

    Programmable I/O SetDio4Dir, SetDio4High, SetDio4Low, GetDio4 Others Kbhit, Getch, Putch, LineInput, Scanf …… Note: For a more detailed description of the functions, please refer to Appendix D: Library Function List. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 31...
  • Page 32: Compiler And Linker

     Set the floating point to EMULATION if floating point computation is required. (Make sure not to choose 8087)  Cancel the Debug Information function as this helps to reduce program size. (MiniOS7 supports this feature.) I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 33: The Detailed Steps For Programming

    Step 1: Go to the CodeGear web site (http://dn.codegear.com/museum). Step 2: Scroll down the bar and click on the link for Antique Software: Turbo C++ version 1.01 to go to the download page. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 33...
  • Page 34 Step 3: Click on the link for Turbo C++ version 1.01, as shown below, to download the tcpp101.zip file. When requested, save the file to a safe location. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 35: Install Turbo C++ Version 1.01

    Step 3: Open an MS-DOS command prompt window. Step 4: Change the directory to the c:\tctemp (or wherever you put the unzipped files folder), and execute the INSTALL.EXE file. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 35...
  • Page 36 Step 5.4: Press <ENTER> again. This allows Turbo C to be installed on the Hard Drive. Step 5.5: Use the Up/Down arrow keys (Press the up arrow once) to select Start Installation, and then press <ENTER> again. Select “Start Installation” I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 37 Step 5.6: At this point, the Turbo C++ version 1.01 compiler is installed in C:\TC, which is where the tcc.exe executable is also located. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 37...
  • Page 38: Set The Environment Variables Of The System

    Windows XP, the My Computer icon may be located in the start menu) and choose Properties from the context menu. Step 2: Click on the Advanced tab, and then click on the Environment Variables button. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 39 Step 4: Add the target directory to the end of the Variable value using a semi-colon as a separator. For example ”C:\TC\BIN;C:\TC\INCLUDE;”. Step 5: Click the OK button, and then restart your computer in order for your changes to take effect. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 39...
  • Page 40: Build And Execute The Program

    NOTE: Assume there is a folder,7188XA_test, built under d:\. There is a 7188xa.h and 7188xal.lib in the 7188XA_test folder. Step 4: Type tc and press <ENTER> to run the TC++ 1.01 Integrated Environment. This command can be executed from any location. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 41 Step 5: Create a source file (*.c). Step 5.1: Select New from the File menu. Step 5.2: Type in following code. Note that the code is case-sensitive. #include “7188xa.h” void main(void) InitLib(); Print("Hello world!\r\n"); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 41...
  • Page 42 C language program files should always be given a name ending in “.C”. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 43 Step 6: Create a new project file (*.prj). Open project Step 6.1: Type the name of the project file and then click the OK button. Step 7: Add all necessary files to the project. Add item I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 43...
  • Page 44 Add button. If not, moving the green block to C area and press Enter to search the file. A area B area C area Step 8: Click Done to exit. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 45 Step 10: Click on “Options” and select the compile menu item, then set the Code generation options. Code generation… Step 10.1: Change the Memory model (Small for 7188xas.lib, large for 7188xal.lib). I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 45...
  • Page 46 Note: The Include Directories specifies the directory that contains the standard include files. The Library Directories specifies the directories that contain the TC++ 1.01 startup object files and run-time library files. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 47 For instructions related to the downloading and execution of programs, please refer to Section 2.3. For more detailed information regarding compiling and linking related to the various C compilers (TC/BC/MSC/MSVC), please refer to Appendix E: Compiling and linking. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 47...
  • Page 48: Building Project On 64-Bit Platform

    64-bit platform. Please refer to the section “Compiling on 64-bit platform like Windows 7 or Windows 8 / 8.1” in Appendix E Compiling and linking. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 49: Operating Principles

    \INT1 of the I/O expansion bus COM1 (\INT2 of the I/O expansion bus) COM2 (\INT3 of the I/O expansion bus) \INT4 of the I/O expansion bus COM4 Timer 1 Timer 2 COM3 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 49...
  • Page 50: Debugging Custom Programs Using Com4

    I-7188XA(D) will be shown on the monitor of the Host PC. If a key is pressed on the keyboard of the Host PC, the key code will be echoed to the I-7188XA(D) as standard input. Therefore both the keyboard and I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 51 Note: 7188xw.exe and the MiniOS7 Utility are provided on the companion CD. Please refer to Section 2.2 for detailed wiring information and Section 2.3 for details of how to download programs. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 51...
  • Page 52: Using The Download Port As A Com Port

    COM4 of the I-7188XA(D). Step 6: Initialize the COM4 to the new configuration. Step 7: The COM4 of the I-7188XA(D) can now be used a general purpose RS-232 port. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 53: Functions And Demo Programs List

    File Extends config_1_Basic, and adds GetProFileInt, GetProFileFloat and Config_2_Advanced GetProFileStr. These functions can be used to determine the "Type" from a text file. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 53...
  • Page 54 0 to switch the LED Timer 4.10 ON or OFF. Shows how to use the StopWatch Demo92 function on channel 0 to switch the LED ON or OFF. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 55 Demo98 timer function to send/receive data to or from 7000 series modules. These are demo programs for all I/O XBoard expansion boards that are applicable 4.12 to the I-7188XA(D). I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 55...
  • Page 56: Com Port Comparison

    The software driver provides the same interface for all four COM Ports, so each port can be used in the same way without any difficulty. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 57: Using The Com Ports

    InstallCom(port, 115200L, 8, 0, 1); /*install the COM driver*/ while(!quit){ if(IsCom(port)){ /*check if any data is in the COM Port input buffer*/ data=ReadCom(port); /*read data from the COM Port*/ ToCom(port, data); /*send data via the COM Port*/ I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 57...
  • Page 58: To Print From The Com Port

    The printCom() function can be used for all COM Ports, and printCom1/2/3/4 can be sued for individual ports. Before using the printCom() function, the InstallCom() function must first be called. The code is shown below: I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 59: To Use Com1/Com2 For An Rs-485 Application

    The commands used for I-7000 series modules are very different from those of the I-7188XA(D), but commands can be sent from the I-7188XA(D) to a I-7000 module using the ToCom() function. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 59...
  • Page 60 DATA- Connect to the Power supply RS-485 (Data+, Data-) DATA+ DATA- Connect to the Power supply I-7188XA(D)/I-7000 The example code for sending a command to COM2 (RS-485) is shown below. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 61 Note: For more I-7000 commands, please refer to the “user’s manual for 7000 DIO”. When using COM1 as an RS-485 COM port, the settings for JP6 on the I-7188XA(D) is as follows. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 61...
  • Page 62 COM1 = RS-232 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 63: Using The Red Led And 7-Seg Led Display

    Show5DigitLed(2, 1); Show5DigitLed(3, 8); Show5DigitLed(4, 8); Show5DigitLed(5, 13); /* The ASCII code for ‘d’ is 13 */ Refer to the demo programs in the CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\LED folder for more information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 63...
  • Page 64: Accessing The I-7188Xa(D) Memory

    Reading data from the Flash Memory is somewhat like reading data from SRAM. The user should allocate a far pointer to point to the memory location first, and then use this pointer to access the memory. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 65: Using Rtc And Nvsram

    NVRAM. The code to write data to NVRAM address 0 is shown below. int data=0x55, data2; InitLib(); /* Initiate the 7188xa library */ WriteNVRAM(0, data); data2= ReadNVRAM(0); /* now data2=data=0x55 */ I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 65...
  • Page 66: Using Eeprom

    EEPROM memory. Normally, the EEPROM is in protected mode by default, meaning that no data can be written to the EEPROM. The EE_WriteEnable() function must be called to unprotect it before writing any data. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 67 Note: To write an integer to EEPROM, the EE_WriteEnable() function must be called twice, in the same manner as writing data to NVRAM. Refer to the demo programs in the CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\Memory folder for more information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 67...
  • Page 68: Using The Watchdog Timer

    The IsResetByWatchDogTimer() function is used to check whether the I-7188XA(D) module has been rebooted by the watchdog timer. This function must be inserted at the beginning of program. The sample code is as follows: I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 69 /* Initiate the 7188xa library */ if(IsResetByWatchDogTimer()) /* do something here to check the system */ quit=0; EnableWDT(); while(!quit) RefreshWDT(); User_function(); Refer to the demo programs in the CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\Misc folder for more information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 69...
  • Page 70: Using The Timer Function

    /* Reset the main time ticks to 0 */ iTime=TimerReadValue(); /* Read main time ticks */ TimerClose(); /* Stop using the 7188XA timer function */ Refer to the demo programs in the CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\Timer folder for more information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 71: Using Digital Input And Digital Output

    For DI and DO wiring information, please refer to Section 1.4.6 DI and DO Wire Connection. The wiring for a DO application is as follows: TXD4 RXD4 TXD3 RXD3 INIT* I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 71...
  • Page 72 SetDo2On(); /* Set the DO2 to ON */ else SetDo2Off(); /* Set the DO2 to OFF */ Refer to the demo programs in the CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\IO_Pin folder for more information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 73: Using The I/O Expansion Bus

     Interrupt control: INT0, INT1 and INT4  Chip select and read/write strobe: /CS, /WR and /RD 3. Serial Bus: TO_0, TO_1, TI_0, TI_1, SCLK, DIO9, DIO4 and DIO14 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 73...
  • Page 74 CPU Timer input 1 (can be used as a programmable D/I/O) SCLK Common serial clock output for 7188 series modules DIO9 Programmable D/I/O bit DIO4 Programmable D/I/O bit DIO14 Programmable D/I/O bit CPU power supply CPU power supply I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 75 Data bus Interrupt request input for channel 4 (asynchronous, active INT4 high) Write strobe output (synchronous, active low) Chip select output (synchronous, active low) Read strobe output (synchronous, active low) I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 75...
  • Page 76: I/O Expansion Boards

    4M bytes NAND Flash X601 8M bytes NAND Flash X607 128K battery backup SRAM X608 512K battery backup SRAM Note: Refer to “I/O Expansion Bus for 7188X/7188E User’s Manual” for more information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 77: Applications

    Stored in Flash Memory • Onboard DI or DO • From an I/O Expansion Bus Input/Output • 7000 series modules can directly control up to 256 modules giving thousands of I/O points I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 77...
  • Page 78: Local Real Time Controller (Rtc)

    In this way, thousands of 7000 series modules can be controlled by the PC via the I-7188XA(D). Some control functions are timing-critical, so the local I-7188XA(D) can handle these functions in real time without the need for control by Host I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 79: Remote Local Controller

     Download control arguments to the remote I-7188XA(D) The remote I-7188XA(D) can communicate with the Host PC regarding the following items:  Emergency event notification and response  Remote system status notification I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 79...
  • Page 80: Plc I/O Expansion Application

     The PLC writes data to its internal memory  The I-7188XA(D) reads the output data from the memory of the  The I-7188XA(D) sends a command to its 7000 output modules I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 81 In this way, the input data from the 7000 series modules can be displayed on a touch screen. In addition the output from the 7000 series modules can be controlled from a touch screen. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 81...
  • Page 82: Radio Modem Application

     Synchronous way  Slave state  Baud Rate=9600  Channel=3  Frequency=915.968MHz SST-900/SST-2400 settings: (Device B/C/D)  RS-485 or RS-232  Half-duplex mode  Synchronous way  Slave state I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 83 As the I-7188XA(D) is an embedded controller, and is programmable, it can be used as a bridge between the SST-900 and any external devices, such as a PLC, a controller or other 7000 series modules. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 83...
  • Page 84: An Application Using 4 Com Ports (1)

    COM1: The PLC can access the I/O state of the 7000 series modules COM2: Directly controls the 7000 series input/output modules COM3: MMICON is used as the local MMI COM4: The PC is used to monitor and record the system data. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 85: An Application Using 4 Com Ports (2)

    COM1: Links to the remote Host PC COM2: Directly controls the 7000 series input/output modules COM3: The TOUCH-200 is used as the local MMI COM4: The Card reader is used as a standard input device. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 85...
  • Page 86: Appendix A: What Is Minios7

    Displays a HEX value in the specified position of 5-digit LED5 pos value Accesses the service routine to read/write from/to the USE NVRAM NVRAM Accesses the service routine to read/write from/to the USE EEPROM EEPROM I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 87 Reads data from the hardware Port I/INP/IW/INPW port O/OUTP/OW/OUTPW Outputs data to the hardware Port port value More …… Note: For more detailed information regarding MiniOS7, please refer to CD:\Napdos\MiniOS7\document\Lib_Manual_For_7188XABC\index.htm I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 87...
  • Page 88 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 89: Appendix B: Minios7 Utility And 7188Xw

    Step 2: After completing the installation, a new folder, ICPDAS, will be added to the programs section of the start menu. Clicking on this folder will allow access to the MiniOS7 Utility files. See the diagram below for details. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 89...
  • Page 90 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 91: 7188Xw

    Shows the 7188xw.exe help messages Shows the 7188xw.exe help messages using the Chinese (Big5) Alt_F1 character set Shows the 7188xw.exe help messages using the Chinese Ctrl_F1 (GB2312) character set I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 91...
  • Page 92 If set to less than 10 arguments, add ‘*’ to end) Clears the screen Ctrl_F6 F8=F9+F5 Downloads the file specified by F2 to the FLASH memory Downloads all files specified by ALT_F2 to the FLASH memory Alt_F9 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 93 Step 2: After the I-7188XA(D) has been switched on, disconnect the INIT* pin from the GND pin. Step 3: Open an MS-DOS command prompt window using the steps shown bellow. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 93...
  • Page 94 Step 4: Type “cd c:\7188XA\Demo\BC_TC\Hello\Hello_C\” then press <Enter>. (Assume user copy the 7188XA folder to C drive letter. Refer to Step2 in Sec.2.1) Step 5: Execute the 7188xw.exe application as shown in the following figure. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 95 F8: Download a file to FLASH Memory, and then execute the program F9: Download a file to FLASH Memory. F10: Download a file to SRAM, and then execute the program. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 95...
  • Page 96 The format of the image file name is: TTYYMMDD.img TT: TYPE of product. YY: Year that this image was released MM: Month that this image was released DD: Day that this image was released I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 97 Step 4: Use the “UPLOAD” command, then press <ALT + E> after the “Press ALT_E to download file!” message is shown on the screen. Step 5: Type the image filename (for example: xa050701.img) then press <ENTER>. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 97...
  • Page 98 Step 8: It will take about 10 seconds to upgrade MiniOS7. After the update has finished, the system will automatically reboot. If this does not occur, the system must be rebooted manually. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 99 Step 9: Type the “ver” command to check the MiniOS7 version number. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 99...
  • Page 100: Appendix C: Comparison Table

    2 channels 1 channel 3 channels I/O expansion bus Support for ASIC Operating system MiniOS7 MiniOS7 MiniOS7 MiniOS7 Programming TC/MSC/BC TC/MSC/BC TC/MSC/BC TC/MSC/BC language Program COM4 COM1 COM1 COM4 download Port I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 101: Appendix D: Library Function List

    Reads the status of the INIT* pin. LineInput Inputs a single line from StdInput. There are more user functions for Standard IO. For more detailed …More… information, please refer to the 7188xa.h file and CD:\Napdos\MiniOS7\document\Lib_Manual_For_7188XABC\index.htm I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 101...
  • Page 102 Description: Reads a single character from the input buffer. If there is no input in the data buffer, the function will wait until the input buffer receives some data. Return Value: 0 to 255. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 103 Scans a character from the input and is similar to the scanf() function. (This function cannot be used with MSC /VC++) Syntax: int Scanf(char *fmt, ...); Header: #include ”7188xa.h” Description: Returns the number of input fields successfully scanned, I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 103...
  • Page 104 115200, N, 8, 1) Input Parameters: Please refer to the standard function printf() in the C language. Return: The character number to be sent out. Example: Please refer to “Kbhit()” for an example. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 105 Prints any data currently stored in the COM1 Prints any data currently stored in the COM2 printCom2 printCom3, printCom4 etc. are similar …More… There are more functions available for use with COM I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 105...
  • Page 106 ToCom(port,data); /*sends data to the COM Port buffer*/ ClearCom(port); /*clears all the data in the COM Port buffer*/ if(data=='Q') quit=1; /*if 'Q' is received, exit the program*/ RestoreCom(port); /*uninstalls the driver for COM Port */ I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 107 “port” parameter. port: assigns the COM Port number Example: Please refer to “InstallCom()” for an example.  RestoreCom1() Function: Uninstall the driver for COM1. Syntax: int RestoreCom1(void); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 107...
  • Page 108 “port” parameter. port: assigns the COM Port number Example: Please refer to “InstallCom()” for an example.  ReadCom1() Function: Reads data from the buffer of COM1. Syntax: int ReadCom1(void); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 109 “port” parameter. port: assigns the COM Port number Example: Please refer to “InstallCom()” for an example.  ToCom1() Function: Sends data to COM1. Syntax: int ToCom1(void); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 109...
  • Page 110 Description: Prints data from the buffer of COM1. Produces a formatted output, similar to printf() from standard C library. Example: This function is similar to printCom(). Please refer to “InstallCom()” for an example. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 111 Print("data=%d, Data2=%d", data,data2);  EE_MultiWrite () Function: Writes data to the EEPROM Syntax: int EE_MultiWrite(int Block,unsigned Addr,int no,char *Data); Header: #include ”7188xa.h” Description: Writes multi-byte of data to the EEPROM. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 111...
  • Page 112 Return Value: On success, returns NoError. On error, returns -1. It is say EEPROM is busy, Block is invalid or Addr is invalid. Example: Please refer to “EE_WriteEnable()” for an example. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 113 #include <7188xa.h> void main() int data=55, data2; InitLib(); WriteNVRAM(0,data); data2=ReadNVRAM(0); /* now data2=data=55 */ Print("data=%d, data2=%d",data,data2);  WriteNVRAM() Function: Writes data to the NVRAM. Syntax: int WriteNVRAM(int addr, int data); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 113...
  • Page 114 GetTime(&hour,&min,&sec); /*reads the system time from the RTC*/ wday=GetWeekDay(); Print("Date=%02d/%02d/%04d(%d) Time=%02d:%02d:%02d\n\r", month,day,year,wday,hour,min,sec);  SetTime() Function: Sets the system time to the RTC Syntax: int SetTime(int hour,int minute,int sec); Header: #include ”7188xa.h” I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 115 Please refer to “GetTime()” for more detailed information. Note: GetWeekDay() does not check whether the weekday is correct or not, only reads the value from the RTC. When using the MiniOS7 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 115...
  • Page 116 RTC. If SetDate() is called, it will also calculate the correct weekday and set the RTC. However, if SetWeekDay() is called, the function must calculate the correct weekday itself. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 117 (low byte). Return Value: 0xA4C2 (MXIC 29f040), 0xA401 (AMD 29f040) Example: See CD:\Napdos\7188XABC\7188XA\Demo\BC_TC\ Memory\  FlashErase() Function: Erases a single sector of the Flash memory. Syntax: int FlashErase(unsigned seg); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 117...
  • Page 118 *dataptr; InitLib(); dataptr=(char *)&data; FlashWrite(0xd000,0x1234, *dataptr++); /*writes data to the Flash memory*/ FlashWrite(0xd000,0x1235, *dataptr); dataptr=(char *)&data2; /*reads data from the Flash memory*/ *dataptr=FlashRead(0xd000, 0x1234); *(dataptr+1)=FlashRead(0xd000, 0x1235); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 119 Return Value: FlashRead() only returns the value of the address. seg:offset. The address can be from the SRAM, the Flash memory or another address (generally returns 0xff). Example: Please refer to “FlashWrite()” function for more detailed information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 119...
  • Page 120 Enables the Watchdog timer DisableWDT Disables the Watchdog timer RefreshWDT Refreshes the Watchdog timer There are many other custom timer and …More… Watchdog Timer functions available. Please refer to the 7188xa.h header file I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 121 '2': Delay(1000); /*delay unit is ms, uses the Timer 1 feature of the CPU. */ break; case '3': Delay_1(1000); /*delay unit is 0.1 ms, uses the Timer 1 feature I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 121...
  • Page 122 Please refer to “TimerOpen()” function for more detailed information.  TimerReadValue() Function: Reads the main time ticks. Syntax: unsigned long TimerReadValue(void); Header: #include ”7188xa.h” Description: Reads the main time ticks. The time unit is ms. When I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 123 Description: Inserts a delay for a specific time interval. The time unit is 0.01 ms and uses the Timer 1 feature of the CPU. ms: the delay time. Example: Please refer to “TimerOpen()” function for more detailed information.  Delay_2() I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 123...
  • Page 124 Print("\n\rTest the StopWatch ... Press 'q' to quit\n\r "); TimerOpen(); StopWatchStart(0); /*start using the StopWatchStart function*/ while(!quit){ if(Kbhit()){ switch(Getch()){ case 'q': quit=1; break; } } StopWatchReadValue(0,&value); Print("SWatch=%d \r",value); if(value==2000){ StopWatchPause(0); DelayMs(2000); StopWatchContinue(0); } if(value==4000){ StopWatchStop(0); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 125 Please refer to “StopWatchStart ()” function for more detailed information.  StopWatchPause() Function: Pauses the StopWatch. Syntax: int StopWatchPause(int channel); Header: #include ”7188xa.h” Description: After calling StopWatchPause(), StopWatchContinue() must be called to restart the time counter. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 125...
  • Page 126 If the channel is out of range, returns ChannelError (-15). Example: Please refer to “StopWatchStart ()” for detailed more information.  CountDownTimerStart() Function: Starts using the CountDownTimer. Syntax: int CountDownTimerStart(int channel,unsigned long count); Header: #include ”7188xa.h” I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 127 0-7, a total of 8 channels. value: a pointer to the location where the value is to be stored. Return Value: On success, returns NoError(). If the channel is out of range, returns ChannelError I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 127...
  • Page 128 Data[0]=0; lamp(1,1,Data[0]); if(count[1]>=500){ /*LCD lamp2 blinks each 500 units*/ count[1]=0; if (Data[1]==0) Data[1]=1; else Data[1]=0; lamp(2,1,Data[1]); if(count[2]>=1000){ /*LCD lamp3 blinks each 1000 units*/ count[2]=0; if (Data[2]==0) Data[2]=1; else Data[2]=0; lamp(3,1,Data[2]); I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 129 RefreshWDT() from within the program, otherwise, the system will be reset by the WDT. The WDT timeout period is 0.8 seconds for MiniOS7 2.0. Example: #include"7188xa.h" void main(void) I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 129...
  • Page 130 Please refer to “EnableWDT()” function for more detailed information.  RefreshWDT() Function: Refreshes the WatchDog timer. Syntax: void RefreshWDT(void); Header: #include ”7188xa.h” Description: See the description for EnableSDT(). Example: Please refer to “EnableWDT()” function for more detailed I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 131 Checks if system has been reset by the WatchDog Timer. Syntax: int IsResetByWatchDogTime(void); Header: #include ”7188xa.h” Description: Returns 0 when true. Example: Please refer to “EnableWDT()” function for more detailed information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 131...
  • Page 132 Buffer to store file name. Return Value: On success, returns NoError, and stores the filename to the fname. On error, returns -1, and does not save any data to the fname. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 133 /*get file information using the file number*/ if(fdata) { GetFileName(i,fname); /*get file name*/ Print("[%02d]:%-12s start at %Fp " "%02d/%02d/%04d %02d:%02d:%02d size=%lu\n\r", i,fname, fdata->addr,fdata->month,fdata->day,(fdata->year)+1980, fdata->hour,fdata->minute,fdata->sec*2,fdata->size); for(i=0;i<fileno;i++){ fp_no=(char far *)GetFilePositionByNo(i); /*get file position*/ I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 133...
  • Page 134 Description: fname: The file name. Return Value: On success, returns the starting address of the file information. On error, returns NULL. Example: Please refer to “GetFilePositionByNo()” for more detailed information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 135 Return Value: On success, returns NoError. On error, returns an Error code. Refer to the user manuals for I-7000 series modules for more details. Example: #include <7188xa.h> void main() int port=2,quit=0,x; I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 135...
  • Page 136 1 for COM1, 2 for COM2, etc. cCmd: The response received from the I-7000 module. If checksum is enabled, the function will check and I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 137 Syntax: int ascii_to_hex(char ascii); Header: #include ”7188xa.h” Description: Returns an integer representing the Hex value. ascii: The ASCII code char Example: Please refer to SendCmdTo7000() for more detailed information. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 137...
  • Page 138: Appendix E: Compiling And Linking

    Step 2: Edit the Project file (Add the necessary library and files to the project). Step 3: Save the project as a Project file by selecting “save” from the File menu and entering a name, such as LED.prj. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 139 (Small for 7188xas.lib, large for 7188xal.lib) and set the Code Generation to 80186/80286 as shown in the diagram below. Step 6: Select “Build all” from the compile menu to build the project. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 139...
  • Page 140 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 141: Using The Bc++ Compiler

    Using the BC++ Compiler The procedures for using the BC++ compiler is as follows: Step 1: Execute the Borland C++ 3.1. Step 2: Create a new project file (*.prj). I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 141...
  • Page 142 Step 3: Add all the necessary files to the project. Step 3.1: Select the source file. Step 3.2: Select the function library and then click the Done button. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 143 Step 4: Set the Code generation options. Step 4.1: Change the Memory model (Small for 7188xas.lib, large for 7188xal.lib). Step 5: Set the Advanced code generation options. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 143...
  • Page 144 Step 5.1: Set the Floating Point to Emulation and the Instruction Set to 80186. Step 6: Set the Entry/Exit Code Generation option. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 145 Step 6.1: Set the DOS standard. Step 7: Set the Debugger Options. 7.1 Set Source Debugging to None. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 145...
  • Page 146 Step 8: Make the project I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 147: Using Msc Compiler

    The object file name NOTE: /C: don't strip comments /Gs: no stack checking /Fpa: calls with altmath /Fm: [map file] /G1: 186 instructions /AL: large model Step 2: Run the Gomsc.bat file. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 147...
  • Page 148 Step 3: A new executable file will be created if it is successfully compiled. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 149: Using Msvc++ Compiler

    Step 2: Create a new project (*.mak) by entering the name of the project in the Project Name field and then select MS-DOS application (EXE) as the Project type. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 149...
  • Page 150 Step 3: Add the user's program and the necessary library files to the project. Step 4: Set the Code Generation on the Compiler. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 151 Step 5: Change the Memory model (Small for 7188xas.lib, large for 7188xal.lib). Step 6: Remove the xcr, afxcr library from the Input Category. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 151...
  • Page 152 Step 7: Remove the OLOGO option from the miscellancous Category. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 153 Step 8: Rebuild the project. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 153...
  • Page 154: Compiling On 64-Bit Platform Like Windows 7 Or Winodows 8 / 8.1

    64-bit platform like Windows 7 or Windows 8, it will prompt up an error message to show compatibility problem for 64-bit platform. “Application can’t run on your PC. Contact with your software publisher” Or like below snap shot. Please follow below steps to solve the problem. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 155 Note: Strongly recommend installing DOSBox as administrator. Step 2: Start up the DOSBox, click DOSBox , it will bring out two Windows forms, one is DOSBox Status Window and DOSBox Console as below. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 155...
  • Page 156 4. After mount disk driver D, then type “D:” to change “Z:\>” to “D:\>”. 5. Set Path to BC\Bin for example “path d:\bc\bin” 6. Change directory to demo run “bc” I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 157 Step 4: Press “Project” to open project Press “Compile” to build the project. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 157...
  • Page 158 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 159 “D:\” , when Driver D is mounted as local directory and change to d: , After execute the bc.bat file, the demo project will be launched successfully. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 159...
  • Page 160 Download Free turboc.zip from following link http://www.bestfreewaredownload.com/download/t-free-turbo-c--freeware-flggsdpz.html After unzip the turboc.zip and copy the turboc folder to D:\, then start up the DOSBox, and run the install.exe to install TC++3.0 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 161 Below snap shots are steps for install TC++ 3.0 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 161...
  • Page 162 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 163 After installed the TC++3.0, then set the Environment Path and change to demo path to run TC compiler IDE. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 163...
  • Page 164 I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...
  • Page 165: Appendix F: Glossary

    AsicKey and unique software library, the user can self check this key, or the software library will check the key automatically. In this main, it is nearly impossible to remove the AsicKey protection. I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) --- 165...
  • Page 166: Appendix G: Revision History

    2014 2. Add section “Compiling on 64-bit platform like Windows 7 or Windows 8 / 8.1” in Appendix E: Compiling and linking 3. Add section “Appendix G: Revision History” I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---...

This manual is also suitable for:

I-7188xaI-7188xbI-7188xcI-7188I-7188xadI-7188xbd ... Show all

Table of Contents