I-7188XA Series User’s Manual( Ver.1.1, Feb/2012, 7MH-019-10 ) ---
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-7188XA(D) .................................................... 9
1.4.2 Pin Assignment ...................................................................................................... 10
1.4.3 Mounting the I-7188XA(D) ..................................................................................... 12
1.4.4 Block Diagram ....................................................................................................... 13
1.4.5 Wiring Diagrams for Application ............................................................................ 14
1.4.6 DI/DO wire connection .......................................................................................... 19
1.4.7 Mounting the I/O Expansion Bus ........................................................................... 20
2. Quick Start................................................................................................. 21
2.1 Software Installation ..................................................................................................... 21
2.2 Connect the Download Cable to the Host PC ............................................................... 22
2.3 Downloading Programs to the I-7188XA(D) ................................................................. 24
2.4 MiniOS7 Upgrade ......................................................................................................... 28
3. Writing Your First Program ...................................................................... 31
3.1 Libraries ........................................................................................................................ 31
3.2 Compiler and Linker ..................................................................................................... 32
3.3 The Detailed Steps for Programming ............................................................................ 33
3.3.1 Download Turbo C++ version 1.01 ........................................................................ 33
3.3.2 Install Turbo C++ version 1.01 ............................................................................... 35
3.3.3 Set the environment variables of the system ......................................................... 38
3.3.4 Build and Execute the Program ............................................................................. 40
4. Operating Principles ................................................................................. 48
4.1 System Mapping ........................................................................................................... 48
4.2 Debugging custom Programs using COM4 .................................................................. 49
4.3 Using the Download Port as a COM Port ..................................................................... 51
4.4 Functions and Demo Programs List ............................................................................. 52
4.5 COM Port Comparison ................................................................................................. 55
4.6 Using the COM Ports .................................................................................................... 56
4.6.1 To print from the COM port .................................................................................... 57
4.6.2 To Use COM1/COM2 for an RS-485 Application ................................................... 58
4.6.3 To Send a Command to an I-7000 module ............................................................ 58
4.7 Using the Red LED and 7-SEG LED Display ............................................................... 62
4.8 Accessing the I-7188XA(D) Memory ............................................................................ 63
4.8.1 Using Flash Memory ............................................................................................. 63
4.8.2 Using RTC and NVSRAM ...................................................................................... 64
4.8.3 Using EEPROM ..................................................................................................... 65
4.9 Using the Watchdog Timer ........................................................................................... 67
4.10 Using the Timer Function .............................................................................................. 69
4.11 Using Digital Input and Digital output ............................................................................ 70
4.12 Using the I/O Expansion Bus ........................................................................................ 72
4.12.1 Definition of an I/O Expansion Bus ........................................................................ 72
4.12.2 I/O Expansion Boards............................................................................................ 75
5. Applications .............................................................................................. 76
5.1 Embedded Controllers .................................................................................................. 76