ICP DAS USA I-7188XB Series User Manual

ICP DAS USA I-7188XB Series User Manual

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

Advertisement

Quick Links

I-7188XB 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-7188XB Series User's Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 1

Advertisement

Table of Contents
loading

Summary of Contents for ICP DAS USA I-7188XB 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 1...
  • Page 2: Table Of Contents

    4.10 Using the Timer Function....................67 4.11 Using Digital Input and Digital output................68 4.12 Using the I/O Expansion Bus..................70 4.12.1 Definition of an I/O Expansion Bus................70 4.12.2 I/O Expansion Boards....................73 Applications ....................75 5.1 Embedded Controllers....................75 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 2...
  • Page 3 Appendix E: Compiling and linking ............... 136 Using the TC Compiler ...................... 136 Using the BC++ Compiler ....................139 Using MSC Compiler ......................145 Using MSVC++ Compiler....................147 Appendix F: Glossary..................152 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 4...
  • Page 5: Features

    One Digital Input Channel One Open-collector output Channel Built-in self-tuner ASIC controller on the RS-485 port Optional 7-segment LED display Built-in MiniOS7 by ICP DAS Program download port: COM1 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 5...
  • Page 6: Specifications

    Operating Environment Operating temperature -25°C to +75°C Storage Temperature -40°C to +80°C Humidity 0 to 90% Power Power requirements 10 to 30V/DC (non-regulated) 2.0W for I-7188XB Power consumption 3.0W for I-7188XBD I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 6...
  • 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-7188XB(D) I/O expansion bus. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 7...
  • Page 8 Before continuing, it is recommended that you read the Readme.html, which can be found in the CD:\Napdos\7188XABC\7188XB\. The latest information available prior to shipping will be contained in this file. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 8...
  • Page 9: Hardware Information

    1.4 Hardware Information 1.4.1 Schematics and Dimensions of the I-7188XB(D) Top View Rear View Side View Unit: mm DIN-RAIL MOUNTING BRACKET Front View Bottom View I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 9...
  • Page 10: Pin Assignment

    DATA- pin for COM1 (RS-485) CTS1 CTS pin for COM1 (RS-232) RTS1 RTS pin for COM1 (RS-232) GND pin for COM1 (RS-232) TXD1 TXD pin for COM1 (RS-232) RXD1 RXD pin for COM1 (RS-232) I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 10...
  • Page 11 User defined pin 23 Pin 24 User defined pin 24 Pin 25 User defined pin 25 Pin 26 User defined pin 26 Pin 27 User defined pin 27 Pin 28 User defined pin 28 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 11...
  • Page 12: Mounting The I-7188Xb(D)

    1.4.3 Mounting the I-7188XB(D) 1. Din-Rail Mounting 2. Stack Mounting I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 12...
  • Page 13: Block Diagram

    NVRAM DI: 1 Channel EEPROM 80188-40 CPU 3.5V to 30V (2K) or compatible DO: 1 Channel 5-Digit LED 100mA, 30V (Optional) User defined Pin 14 pins +10V to +30V Power Converter I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 13...
  • Page 14: Wiring Diagrams For Application

    Connect wire-2, labelled TX, to pin-8 of the I-7188XB(D) Connect wire-3, labelled GND, to pin-7 of the I-7188XB(D) Connect the DB-9 of the download cable to the COM Port of PC I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 14...
  • Page 15 Note: There are 3 wires as follows: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 15...
  • Page 16 Connect the TXD to the RXD of the RS-232 device 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 16...
  • Page 17 7188XB/7188XBD Ext. GND Ext. 24V COM1/COM2 7000 Module Ext. GND Ext. 24V Note: The RS-485 interface can directly drive up to 256 I-7000 series modules without the need for a repeater. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 17...
  • Page 18: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 18...
  • Page 19: Mounting The I/O Expansion Bus

    1.4.7 Mounting the I/O Expansion Bus Before mounting: After mounting: I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 19...
  • Page 20: Quick Start

    Note: The 7188xw.exe file is used as a bridge between the I-7188XB(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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 20...
  • Page 21: 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 one times and wait for one second to next cycle. The diagram show as follows: I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 21...
  • Page 22 Note: Only the display version of the module will include a 5-digit 7-SEG LED. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 22...
  • Page 23: Downloading Programs To The I-7188Xb(D)

    Programs/ICPDAS/MiniOS7 Utility Ver 3.11/and locate the MiniOS7 Utility Ver3.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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 23...
  • Page 24 Step 3: See if the MiniOS7 Utility connects with I-7188XB. The connected icon is . The disconnected icon is See here to know connection status. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 24...
  • Page 25 I-7188XB(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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 25...
  • Page 26 The content of the Hello.c file is as follows: #include “7188xb.h” /* Include the headers to use 7188xbl.lib functions */ void main(void) InitLib(); /* Initiate the 7188xb library */ Print("Hello world!\r\n"); /* Print the message on the screen */ I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 26...
  • Page 27: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 27...
  • Page 28 MiniOS7. The diagram is as follow: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 28...
  • Page 29: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 29...
  • Page 30: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 30...
  • Page 31: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 31...
  • Page 32 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 32...
  • Page 33: Install Turbo C++ Version 1.01

    Self-Extractor window. 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 33...
  • Page 34 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. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 34...
  • Page 35 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 35...
  • Page 36: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 36...
  • Page 37 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 37...
  • Page 38: Build And Execute The Program

    NOTE: Assume there is a folder,7188XB_test, built under d:\. There is a 7188xb.h and 7188xbl.lib in the 7188XB_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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 38...
  • Page 39 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 “7188xb.h” void main(void) InitLib(); Print("Hello world!\r\n"); I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 39...
  • Page 40 C language program files should always be given a name ending in “.C”. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 40...
  • Page 41 Step 6: Create a new project file (*.prj). 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. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 41...
  • Page 42 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 42...
  • Page 43 Step 9: Click on “Options” and select full menus. Step 10: Click on “Options” and select the compile menu item, then set the Code generation options. Step 10.1: Change the Memory model (Small for 7188xbs.lib, large for 7188xbl.lib). I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 43...
  • Page 44 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 44...
  • Page 45 Step 12: Click on “Compile” and select “Make EXE file” to make the project. For instructions related to the downloading and execution of programs, please refer to Section 2.3. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 45...
  • Page 46 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 46...
  • Page 47: Operating Principles

    ESC opcode exception Timer 0 Reserved DMA-0 DMA-1 \INT0 of the I/O expansion bus \INT1 of the I/O expansion bus \INT4 of the I/O expansion bus COM2 Timer 1 Timer 2 COM1 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 47...
  • Page 48: Debugging Custom Programs Using Com1

    I-7188XB(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-7188XB(D) as standard input. Therefore both the keyboard and I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 48...
  • Page 49 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 49...
  • Page 50: Using The Download Port As A Com Port

    Step 5: Connect a download cable between a new RS-232 device and the COM1 of the I-7188XB(D). Step 6: Initialize the COM1 to the new configuration. Step 7: The COM1 of the I-7188XB(D) can now be used a general purpose RS-232 port. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 50...
  • Page 51: Functions And Demo Programs List

    FSeek can be used to retrieve specific information from a text file. 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 51...
  • Page 52 Show how to use the CountDownTimer Demo91 function on channel 0 to switch the LED ON or OFF. Shows how to use the StopWatch Demo92 function on channel 0 to switch the LED ON or OFF. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 52...
  • Page 53 Shows how to use the I-7188XB(D) 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-7188XB(D). I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 53...
  • Page 54: Com Port Comparison

    1K QUEUE buffer for each COM Port. The software is well designed and easy to use. The software driver provides the same interface for all two COM Ports, so each port can be used in the same way without any difficulty. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 54...
  • Page 55: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 55...
  • Page 56: To Print From The Com Port

    The printCom() function can be used for all COM Ports, and printCom1/2 can be sued for individual ports. Before using the printCom() function, the InstallCom() function must first be called. The code is shown below: I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 56...
  • Page 57: 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-7188XB(D), but commands can be sent from the I-7188XB(D) to a I-7000 module using the ToCom() function. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 57...
  • Page 58 DATA+ DATA- Connect to the Power supply RS-485 (Data+, Data-) DATA+ DATA- Connect to the Power supply I-7188XB(D)/I-7000 The example code for sending a command to COM2 (RS-485) is shown below. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 58...
  • Page 59 I-7000 series module. Refer to the demo programs in the CD:\Napdos\7188XABC\7188XB\Demo\BC_TC\7K87K_Module directory for more detailed information. Note: For more I-7000 commands, please refer to the “user’s manual for 7000 DIO”. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 59...
  • Page 60: Using The Red Led And 7-Seg Led Display

    Show5DigitLed(1, 7); 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\7188XB\Demo\BC_TC\LED folder for more information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 60...
  • Page 61: Accessing The I-7188Xb(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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 61...
  • Page 62: Using Rtc And Nvram

    NVRAM. The code to write data to NVRAM address 0 is shown below. int data=0x55, data2; InitLib(); /* Initiate the 7188xb library */ WriteNVRAM(0, data); data2= ReadNVRAM(0); /* now data2=data=0x55 */ I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 62...
  • Page 63: 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 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 63...
  • Page 64 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\7188XB\Demo\BC_TC\Memory folder for more information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 64...
  • Page 65: Using The Watchdog Timer

    The IsResetByWatchDogTimer() function is used to check whether the I-7188XB(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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 65...
  • Page 66 InitLib(); /* Initiate the 7188xb 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\7188XB\Demo\BC_TC\Misc folder for more information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 66...
  • Page 67: Using The Timer Function

    /* Reset the main time ticks to 0 */ iTime=TimerReadValue(); /* Read main time ticks */ TimerClose(); /* Stop using the 7188XB timer function */ Refer to the demo programs in the CD:\Napdos\7188XABC\7188XB\Demo\BC_TC\Timer folder for more information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 67...
  • Page 68: Using Digital Input And Digital Output

    DI channel. 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: CTS1 RTS1 TXD1 RXD1 INIT* I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 68...
  • Page 69 Print("DO=%s\n\r", Do1?"High":"Low"); if(!Do1) SetDo1High(); /* Set the DO1 to ON */ else SetDo1Low(); /* Set the DO1 to OFF */ Refer to the demo programs in the CD:\Napdos\7188XABC\7188XB\Demo\BC_TC\IO_Pin folder for more information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 69...
  • Page 70: Using The I/O Expansion Bus

    Data bus: D0 ~ D7 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 70...
  • Page 71 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 71...
  • Page 72 Address bus 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 72...
  • Page 73: I/O Expansion Boards

    4 DI channels + 4 DO channels + 3 A/D channels (+/-5V) + X304 1 D/A channel (+/-5V) 2 DI channels + 2 DO channels + 7 A/D channels (+/-5V) + X305 1 D/A channel (+/-5V) I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 73...
  • Page 74 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 74...
  • Page 75: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 75...
  • Page 76: Local Real Time Controller (Rtc)

    In this way, thousands of 7000 series modules can be controlled by the PC via the I-7188XB(D). Some control functions are timing-critical, so the local I-7188XB(D) can handle these functions in real time without the need for control by Host I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 76...
  • Page 77: Remote Local Controller

    Query and record the status of the remote system Download control arguments to the remote I-7188XB(D) The remote I-7188XB(D) can communicate with the Host PC regarding the following items: Emergency event notification and response Remote system status notification I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 77...
  • Page 78: Plc I/O Expansion Application

    The PLC can control the 7000 series output modules as follows: The PLC writes data to its internal memory The I-7188XB(D) reads the output data from the memory of the The I-7188XB(D) sends a command to its 7000 output modules I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 78...
  • Page 79 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 79...
  • Page 80: Radio Modem Application

    Device C Device D SST-900/SST-2400 settings: (Device A) RS-232 Half-duplex mode 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 80...
  • Page 81 As the I-7188XB(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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 81...
  • Page 82: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 82...
  • Page 83: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 83...
  • Page 84: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 84...
  • Page 85 I-7188XB(D) (downloaded using the LOADR command) 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 85...
  • Page 86 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 86...
  • Page 87: Appendix B: Minios7 Utility And 7188Xw

    Step 2: After completing the installation, a new folder, 7188E, 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 87...
  • Page 88 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 88...
  • Page 89: 7188Xw

    Command Description 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 89...
  • Page 90 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 90...
  • Page 91 I-7188XB(D) at the same time. Step 2: After the I-7188XB(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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 91...
  • Page 92 Step 4: Type “cd c:\7188XB\Demo\BC_TC\Hello\Hello_C\” then press <Enter>. (Assume user copy the 7188XB 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 92...
  • Page 93 Step 6: Press <F2> and then type the filename “Hello.exe” and press <Enter>. Step 7: Press <F8> to download the Hello.exe file to the I-7188XB(D) and execute the program. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 93...
  • Page 94 Step 8: Type “dir” and press <Enter> to check that the files are stored in the Flash Memory of the I-7188XB(D). Step 9: Type “del /y” and press <Enter> to delete all files stored in the Flash Memory of the I-7188XB(D). I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 94...
  • Page 95 7188xw.exe application to connect the Host PC to the I-7188XB(D) controller. Step 4: Use the “UPLOAD” command, then press <ALT + E> after the “Press ALT_E to download file!” message is shown on the screen. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 95...
  • Page 96 (The OS will check the image file stored in the SRAM, and then display the version information. If the image file is correct, it will be written to the Flash Memory.) I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 96...
  • Page 97 If this does not occur, the system must be rebooted manually. Step 9: Type the “ver” command to check the MiniOS7 version number. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 97...
  • Page 98: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 98...
  • Page 99: 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 7188xb.h file and CD:\Napdos\MiniOS7\document\Lib_Manual_For_7188XABC\index.htm I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 99...
  • Page 100 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 100...
  • Page 101 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 ”7188xb.h” Description: Returns the number of input fields successfully scanned, I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 101...
  • Page 102 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 102...
  • Page 103 There are more functions available for use with COM …More… Ports. Please refer to the 7188xb.h file and CD:\Napdos\MiniOS7\document\Lib_Manual_For_7188XABC\index.htm Note: The Print and printCom function cannot be used simultaneously in the same program. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 103...
  • Page 104 InstallCom1(unsigned long baud, int data, int parity, int stop); Header: #include ”7188xb.h” Description: Installs the driver for COM1, and is assigned to COM1 baud: Baud Rate, the default Baud Rate for the I-7188XB(D) is 115200 Example: I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 104...
  • Page 105 Please refer to “InstallCom1()” for an example. IsCom() Function: Checks whether there is any data stored in the COM Port buffer. The COM Port number is not assigned. Syntax: int IsCom(int port); Header: #include ”7188xb.h” I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 105...
  • Page 106 Example: Please refer to “InstallCom1()” for an example. ClearCom() Function: Clears the data currently stored in the COM Port buffer. The COM Port number is not assigned. Syntax: int ClearCom(int port); I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 106...
  • Page 107 Description: Sends data to COM1. Assigned to COM1. Example: Please refer to “InstallCom1()” for an example. printCom() Function: Prints data to COM and PC. The COM Port number is not assigned. Syntax: int printCom(int port,char *fmt,...); I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 107...
  • Page 108 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 108...
  • Page 109 EE_WriteProtect(); EE_MultiRead(1,10,1,&data2); 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 ”7188xb.h” Description: Writes multi-byte of data to the EEPROM. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 109...
  • Page 110 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 110...
  • Page 111 On error, returns the AddrError (-9). Example: #include “7188xb.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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 111...
  • Page 112 GetDate(&year,&month,&day); /*reads the system date from the RTC*/ 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 ”7188xb.h” I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 112...
  • Page 113 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 113...
  • Page 114 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 114...
  • Page 115 Description: Reads the Flash memory device code (high byte) and manufacturer code (low byte). Return Value: 0xA4C2 (MXIC 29f040), 0xA401 (AMD 29f040) Example: See CD:\Napdos\7188XABC\7188XB\Demo\BC_TC\ Memory\ FlashErase() Function: Erases a single sector of the Flash memory. Syntax: int FlashErase(unsigned seg); I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 115...
  • Page 116 *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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 116...
  • Page 117 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 117...
  • Page 118 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 7188xb.h header file I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 118...
  • Page 119 '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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 119...
  • Page 120 Please refer to “TimerOpen()” function for more detailed information. TimerReadValue() Function: Reads the main time ticks. Syntax: unsigned long TimerReadValue(void); Header: #include ”7188xb.h” Description: Reads the main time ticks. The time unit is ms. When I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 120...
  • Page 121 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 121...
  • Page 122 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 122...
  • Page 123 Please refer to “StopWatchStart ()” function for more detailed information. StopWatchPause() Function: Pauses the StopWatch. Syntax: int StopWatchPause(int channel); Header: #include ”7188xb.h” Description: After calling StopWatchPause(), StopWatchContinue() must be called to restart the time counter. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 123...
  • Page 124 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 ”7188xb.h” I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 124...
  • Page 125 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 125...
  • Page 126 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 126...
  • Page 127 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 ”7188xb.h” void main(void) I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 127...
  • Page 128 Please refer to “EnableWDT()” function for more detailed information. RefreshWDT() Function: Refreshes the WatchDog timer. Syntax: void RefreshWDT(void); Header: #include ”7188xb.h” Description: See the description for EnableSDT(). Example: Please refer to “EnableWDT()” function for more detailed I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 128...
  • Page 129 Checks if system has been reset by the WatchDog Timer. Syntax: int IsResetByWatchDogTime(void); Header: #include ”7188xb.h” Description: Returns 0 when true. Example: Please refer to “EnableWDT()” function for more detailed information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 129...
  • Page 130 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 130...
  • Page 131 /*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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 131...
  • Page 132 #include ”7188xb.h” 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 132...
  • Page 133 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 “7188xb.h” void main() int port=2,quit=0,x; I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 133...
  • Page 134 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 134...
  • Page 135 Converts ASCII code to a hexadecimal value. Syntax: int ascii_to_hex(char ascii); Header: #include ”7188xb.h” Description: Returns an integer representing the Hex value. ascii: The ASCII code char Example: Please refer to SendCmdTo7000() for more detailed information. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 135...
  • Page 136: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 136...
  • Page 137 (Small for 7188xbs.lib, large for 7188xbl.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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 137...
  • Page 138 I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 138...
  • Page 139: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 139...
  • Page 140 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 140...
  • Page 141 Step 4: Set the Code generation options. Step 4.1: Change the Memory model (Small for 7188xbs.lib, large for 7188xbl.lib). Step 5: Set the Advanced code generation options. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 141...
  • Page 142 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 142...
  • Page 143 Step 6.1: Set the DOS standard. Step 7: Set the Debugger Options. 7.1 Set Source Debugging to None. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 143...
  • Page 144 Step 8: Make the project I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 144...
  • Page 145: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 145...
  • Page 146 Step 3: A new executable file will be created if it is successfully compiled. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 146...
  • Page 147: Using Msvc++ Compiler

    Step 1: Run MSVC.exe 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 147...
  • Page 148 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 148...
  • Page 149 Step 5: Change the Memory model (Small for 7188xbs.lib, large for 7188xbl.lib). Step 6: Remove the xcr, afxcr library from the Input Category. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 149...
  • Page 150 Step 7: Remove the OLOGO option from the miscellancous Category. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 150...
  • Page 151 Step 8: Rebuild the project. I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 151...
  • Page 152: 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-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) --- 152...

Table of Contents