Table of Contents
1. Introduction..................................................................................................4
1.1 FEATURES.....................................................................................................................5
1.2 SPECIFICATIONS..........................................................................................................6
1.3 Software and Document information ..............................................................................7
1.4 Hardware Information.....................................................................................................9
1.4.1 Schematics and Dimensions of the I-7188XB(D) ....................................................9
1.4.2 Pin Assignment......................................................................................................10
1.4.3 Mounting the I-7188XB(D).....................................................................................12
1.4.4 Block Diagram.......................................................................................................13
1.4.5 Wiring Diagrams for Application ............................................................................14
1.4.6 DI/DO wire connection ..........................................................................................18
1.4.7 Mounting the I/O Expansion Bus...........................................................................19
2. Quick Start..................................................................................................20
2.1 Software Installation .....................................................................................................20
2.2 Connect the Download Cable to the Host PC...............................................................21
2.3 Downloading Programs to the I-7188XB(D) .................................................................23
2.4 MiniOS7 Upgrade.........................................................................................................27
3. Writing Your First Program .......................................................................29
3.1 Libraries........................................................................................................................29
3.2 Compiler and Linker .....................................................................................................30
3.3 The Detailed Steps for Programming............................................................................31
3.3.1 Download Turbo C++ version 1.01........................................................................31
3.3.2 Install Turbo C++ version 1.01...............................................................................33
3.3.3 Set the environment variables of the system.........................................................36
3.3.4 Build and Execute the Program.............................................................................38
4. Operating Principles..................................................................................47
4.1 System Mapping...........................................................................................................47
4.2 Debugging custom Programs using COM1..................................................................48
4.3 Using the Download Port as a COM Port.....................................................................50
4.4 Functions and Demo Programs List .............................................................................51
4.5 COM Port Comparison.................................................................................................54
4.6 Using the COM Ports....................................................................................................55
4.6.1 To print from the COM port....................................................................................56
4.6.2 To Use COM1/COM2 for an RS-485 Application...................................................57
4.6.3 To Send a Command to an I-7000 module............................................................57
4.7 Using the Red LED and 7-SEG LED Display ...............................................................60
4.8 Accessing the I-7188XB(D) Memory ............................................................................61
4.8.1 Using Flash Memory .............................................................................................61
4.8.2 Using RTC and NVRAM........................................................................................62
4.8.3 Using EEPROM.....................................................................................................63
4.9 Using the Watchdog Timer ...........................................................................................65
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
5. Applications ...............................................................................................75
5.1 Embedded Controllers..................................................................................................75
I-7188XB Series User’s Manual(Ver.1.0, Apr/2007, 7MH-020-10 ) ---
2