Home
I-7188XC Series User`s Manual
Contents
1. 136 USMO thie TO Grerael iL D TTE 136 WS ing the BG erect 139 SING MSG COMPING m 145 USMO sve ES OOImpllel se etre hore tbe eet ies ee ata meet huts hed tetas aoe ue estas 147 Compiling on 64 bit platform like Windows 7 or Winodows 8 8 1 152 ADDENGIX F GIOSSAN Y ee atecaniea tule auaisccasiemutuonvatecateaienaweiannaanetenetits 163 Appendix G Revision History ccssccsssccssecceseceeeecneeeenescnseeeneeoneeseneesees 164 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 3 1 Introduction The I 7188XC D is a series of expandable embedded controllers designed for industry applications and can be used to replace PC or PLC devices in harsh environments The I 7188XC D also has support for an I O expansion bus which can be used to implement various I O functions such as D I D O A D D A UART Flash memory battery backup SRAM AsicKey and other I O functions Most types of I O function can be implemented using this bus ICP DAS offers more than 20 types of I O Expansion Board for the I 7188XC D which can be used to expand the features of the controller Depending on the type of embedded firmware programs that are being developed and which I O Expansion Board the 7188XC D can be used as a single versatile controller Package List In addition to this manual the shipping package in
2. 1 Shows how to write a function to input data C Style IO 2 Shows how to retrieve a string 3 Shows how to use a C function sscanf or just use Scanf Receive COM Port The PC sends commands to the l 188XC D and receives responses Silv COM from the I 7188XC D Also shows how to use another COM Port or LED to show information to help debug a program Reads writes the byte data via the 4 6 Reads writes the DO and DI of the LED to switch the LED ON or OFF a segment LED In many applications a text file is needed in order to record specific Config 1 Basic information so that the program can read it FSeek can be used to retrieve specific information from a text file File Extends config 1 Basic and adds GetProFilelnt GetProFileFloat and Config 2 Advanced GetProFileStr These functions can be used to determine the Type from a text file EEPROM Writes a value to the EEPROM and shows it on the monitor l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 52 K 3 D D O ol o ew 2 SINNER D D D D D 3 3 3 3 E O O O O CO CO CO CO O N O gt DO Q value will automatically increase by 1 Reads writes and erases the Flash Flash memory Reads the value that has been written Flash r to the Flash memory Inputs a value written in the Flash memory value will automatically increase by 1 Demo5 Shows how to access the NVRAM Reads the value tha
3. Type 1 Standard IO Description Kbhit Checks if any keyboard input data is currently available in the input buffer of COMI Getch Waits until a single character is received from keyboard input ngetch Returns a single character to the input buffer of COM utch Sends a single character to COM1 uts Sends a string to COM1 Scanf Retrieves formatted data such as scanf in the C language Cannot used on MSC VC 4 only TC BC rint Prints formatted data such as printf in the C language eadlnitPin Reads the status of the INIT pin inelnput Inputs a single line from Stdlnput There are more user functions for Standard IO For more detailed More information please refer to the 7188xc h file and CD Napdos MiniOS7 document Liob Manual For 7188XABOndex htm l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 99 Note The Print and printCom function cannot be used simultaneously in the same program e Kbhit Function Checks whether any keyboard input data is currently available in the input buffer syntax int Kbhit void Header include 7188xc h Description Checks if any data is currently available in the input buffer Return 0 For no data input Other There is data in the input buffer and the return value is the next data in the buffer If the next data is O the function will return 1 OXFFFF Example include 7188xc h void main int quit 0 data InitLib Puts
4. ec CAWINDOWSX ystem3i2Wwmd exe Microsoft windows XP Version 5 1 2600 C Copyright 1985 2001 Microsoft Coj Ings Vvic_tsat ia al E NOTE Assume there is a folder 7188XC test built under d There is a 7188xc h and 7188xcl lib in the 7188XC 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 cs C AWINNTisystem32wmd exe d Wcp20XbinVe Pile Edit Search Run Compile Debug Project Options Window Help Turbo le amp erzion 1 81 Copyright tc 1998 hy Borland International Inc Fi Help Accept the settings in this dialog box l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 39 otep 5 3 Save the file by selecting Save from the File menu and then enter the file name Hello C c Command Prompt tc Edit Search Hun Compile Project Options Window Help en all i Change dir Print Get info DOS shell Quit h1t X Note If you have a text editor you are familiar with you may use it to type in the above code It should be noted that you cannot use a word processor application for this as you must use an application that saves in plain text such as notepad or edit C language program files should always be given a name ending in C l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 41 step 6 Create a new project file prj
5. j e CountDownTimerReadValue Function Reads the current value of the CountDownTimer count Syntax int CountDownTimerReadValue int channel unsigned long value Header include 7188xc h Description If the return value is 0 it means that the time has expired channel 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 125 15 Example Please refer to CountDownTimerStart function for more detailed information InstallUserTimer Function Installs a custom timer function which will be called at intervals of 1ms syntax void InstallUserTimer void fun void Header X include 7188xc h Description fun A pointer to the custom function The function cannot use an input argument and cannot return a value Example include 7188xc h int Data 3 0 0 0 void MyTimerFun void custom timer function static int count 3 0 0 0 int i for i 0 i lt 3 i Print count d d r i count i count i if count 0O gt 200 LCD lamp blinks each 200 units count 0 0 if Data 0 0 Data 0 1 else Data 0 0 lamp 1 1 Data 0 if count 1 gt 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
6. l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 97 Appendix C Comparison Table Feature comparison table between the 7188 and the 7188X series M7188XA D 1 7188XB D I 7188XC D 1 7188 D CPU clock 80188 40MHz 80188 40MHz 80188 20MHz 256K l 7188XB Flash Memory sik 512K 2 foropM 256K 512K RS 232 with modem control or RS 232 or RS 485 RS 232 or RS 485 RS 232 with with internal with internal modem control or RS 485 with self tuner internal self tuner SRAM COM 1 RS 485 with RS 485 with COM2 deals MN self tuner inside COM3 COMA self tuner RS 485 RS 485 with RS 485 self tuner inside User aefnedpns o 64 bit hardware unique serial Yes number S N Y Y No 2K bytes 2K bytes O O O lt D o VO expansion bus Yes Support for ASIC Yes iy Key Operating system MiniOS7 Programming TC MSC BC TC MSC BC language Program COM4 COM1 download Port 3 channels lt D o O O es es es es NO Minos TC MSC BC D o l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 98 Appendix D Library Function List The table below lists the most commonly used functions For more details of all functions refer to the instructions in the CD Napdos MiniOS7 document Lib_ Manual For 7188XABOWndex e htm file or http fto icpdas com pub cd 8000cd napdos minios 7 document lib man ual for 188xabc index e htm on the web
7. 3 JjBrekpont 4 Detected overflow exception 5 Array bounds exception Z 6 Unused opcode exception 8 Timro 34 9 Reserved 0A DM0 0B DMA OD INTt ofthe VO expansionbus 10 Reserved n j cOP2 Timer 13 Timer 14 O O JOOM l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 48 4 2 Debugging custom Programs using COM1 The COM1 Port download port of the I 7188XC D has three major functions e Downloading programs from the Host PC e Connecting to the Host PC to enable program debugging e Acting as a general purpose COM port When the I 7188XC D is switched on it will initialize COM1 in the following configuration under console mode e Start Bit 1 Data Bit 8 Stop Bit 1 no parity e Baud Rate 115200 bps The I 7188XC D will check the status of the INIT pin If the INIT pin is shorted to the GND pin the 1 7188XC D will send the start up information to COM4 and enter console mode to allow the user to download debug a program and the following start up messages will be displayed Power off the Host PC and I 7188XC D e Connect the download cable between COM4 on the I 7188XC D and the COM Port of the Host PC refer to Section 2 2 for more details e Switch on the power for the Host PC and execute the
8. Step 6 Set the Entry Exit Code Generation option Im B Je pug ect A0wW e p i NONAMEGG CPP E Code To vanced code neration opt Advanced Cre options Optimizations pourenn ssages Names Ba CEET T T E a a B ISS 2 entry exit code generated for functions l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 142 otep 6 1 Set the DOS standard i t DOS standard ei Convention Stack tandard Step f sel the Bed Options 5 CAWINDOWS syste oe 0 x File Edit Search ile ebu ITI TR ESTE TRE ENTER Application Compiler Transfer Make Linker Lihrarian h IHrectoriez u ER pr M P E D E F1 Help Set debugging options display swapping inspector options etc 7 1 Set Source Debugging to None H in E Hone Inspectors wa Dizspla cdm ram ran Size E bytes l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 143 Debug Project ghee Alt F9 Link Build all Op Information Remove messages Fi Help Bring target up to date by compiling and linking as necessary ERE file HELLO EAE Linking BC3i LIB CL LIB Total Link Lines compiled 1257 PASS 2 Warnings A BH Errors H 5 Available me I 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 144 Us
9. break case 3 Delay 1 1000 delay unit is 0 1 ms uses the Timer 1 feature Il 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 119 of the CPU break case 4 Delay 2 1000 delay unit is 0 01 ms uses the Timer 1 feature of the CPU break case q quitz1 break time TimerReadValue reads the timer Print rinTime 8 3f sec 0 001 time TimerClose closes the timer function e TimerClose Function Stops the timer function syntax int TimerClose void Header include 7188xc h Description If the program has called the OpenTimer function it must call TimerClose before exiting Return Value Always returns NoError Example Please refer to TimerOpen function for more detailed information e TimerResetValue Function Resets the timer to O syntax void TimerResetValue void Header X include 7188xc h Description Hesets the main time ticks to O Example Please refer to TimerOpen function for more detailed information e TimerReadValue Function Reads the main time ticks syntax unsigned long TimerReadValue void Header include 7188xc h Description Reads the main time ticks The time unit is ms When l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 120 TimerOpen or TimerReset are called the time ticks will be reverted to O Example Please refer to TimerOpen function for more detailed informati
10. 9 bin 3 FIRMWARE 305 IMARE d Icpdas load232 dll E MiniD S7 Lltility chm KE MiniD57 Utility exe Mini S 7 Utility ini ES Wart dil Ej urinsli lcl dat is uninsll ll ese D Connection Fz Ej Upload F 5 DiskT ool F6 E Info F7 E Delete F8 eJ Refresh F3 Conzole F10 File Falder File Falder File Falder 1KB ARRETE SEKE AERTS St 1 025KB 20946 EAIA SKB B BEEEIB 5BKB EHAE JIKE DAT File BBPKB EHEJ EAREFAI HTML See here to know connection status l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 24 otep 4 Select the file to load from left side and click Fues to Joad file into module or draw the file to the right side MiniOS7 Utility Verion 3 1 1 build 3 1 1 1 3yFile f Connec tion Command Z Configuration E PRJ File Host PC file list l 7188XC D file list gt i7188 lt 4 gt COM1 0 files s 0 bytes D Connection F2 UploadiF5 j Unioaatr5 X DiskT oolfF6 724 InfolF7 3 Deletes S Refresh F9 S Console F10 ES DOSIF11 dy Search F12 step 5 Select the file and then press the right mouse button Choose the Run and press to execute the program MiniOS7 Utility Verion 3 1 1 build 3 1 1 1 d File Connection de Command Configuration T Tools amp amp Help Lookin Desktop VM OR Leck ins Disk A Mo Hame Size Type il Modified E hello 1K
11. Do3 GetDo3 Read the state of DOS Print DO3 s n r Do3 High Low if IDo3 SetDo3High Set the DOS to ON else SetDo3Low Set the DOS to OFF e Hefer to the demo programs in the CD Napdos 7188XABC 7188XC Demo BC_TC lO_Pin folder for more information Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 69 4 12 Using the I O Expansion Bus As there are many serial interface devices available today the I O expansion bus includes both serial and parallel interfaces The parallel interface is very similar to an ISA bus so the old ISA bus design can be migrated to the I O expansion bus with a minimum amount of alteration The I O pins of the serial bus are programmable and can be programmed as either D I or D O The features of these serial devices are as follows e Smaller size compared to parallel devices Lower cost compared to parallel devices e Easier to design for isolated applications The serial interface of the I O expansion bus makes connecting to these serial devices very easy 4 12 1 Definition of an I O Expansion Bus The I O expansion bus of the I 7188XC D module can be divided into 3 groups as follows 1 Power supply and reset signals VCC GND RESET and RESET 2 Parallel Bus oystem clock CLOCKA Asynchronous ready control ARDY Address bus AO A Data bus DO D7 Interrupt control INTO and INT1 Chip select and read write strobe CS WR and RD eria
12. RefreshWDT User function Refer to the demo programs in the CD Napdos 7188XABC 7188XC Demo BC_TC Misc folder for more information l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 66 4 10 Using the Timer Function The I 7188XC D can support one main time tick 8 StopWatch timers and 8 CountDown timers The I 7188XC D uses a single 16 bit timer to perform these timer functions with a timer accuracy of 1 ms The InstallUserTimer function can be used to install a custom timer function and the function will be called at 1 ms intervals The system timer of the MiniOS7 will call INT 9 every 1 ms and call INT Ox1C every 55 ms The timer function of the library is linked to associated with called by hooked to INT 9 and will call any custom timer function The TimerOpen function is used to start the I 7188XC D timer and this function must be inserted at the beginning of the program The TimerClose function is used to stop the timer The sample code is as follows unsigned long time iTime InitLib Initiate the 7188xc library TimerOpen Begin using the 7188XC timer function while quit d if Kbhit TimerResetValue X Reset the main time ticks to 0 iTimezTimerReadValue Read main time ticks Q TimerClose Stop using the 7188XC timer function Refer to the demo programs in the CD Napdos 7188XABC 7188XC Demo BC_TC Timer folder for more information
13. Spec HOST C OF gt Startup and Recovery System startup system Failure an formation Settings Environment Variables l Error Reporting Value C Documents and Settings 4dministrat C Documents and Settings Administra Value C WINDOW S systemse cmd exe NO 4 Windows MT CHWINDOWSIsvstem3z CHA WINDOWS 4 Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 37 otep 3 In System variables choose the variable Path and then click on the Edit button otep 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 Environment Variables Edit System Variable variable value esiGTK 2 OVE c TCIBIM CHATCAINCLLDE System variables variable Value ComSpec CUWINDOW Sisystem32 cmd exe FP MO HOST C MO NUMBER OF 2 4 Windows NT CAPROGRA IWBorlandWcBLILD 1WProj otep 5 Click the OK button and then restart your computer in order for your changes to take effect l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 38 3 3 4 Build and Execute the Program Step 1 Open the MS DOS command prompt window in the same way as you did in step 3 of the Install Turbo C version 1 01 instructions NOTE You must close the original MS DOS command prompt window first Step 2 Type d and then press Enter to enter D drive letter Step 3 Type cd 7188XC test and press Enter
14. 1 4 7 Mounting the I O Expansion Bus Before mounting After mounting l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 19 2 Quick Start 2 1 Software Installation Step 1 Insert the companion CD into the CD drive step 2 Copy the 7188XC folder from CD Napdos 7188XABC to the Hard Drive of the Host PC Step 3 Install the MiniOS7 Utility Locate and execute the minios7 utility v311 exe file from CDANAPDOSMINIOS ZNUTILITYMMiniOS7 utility folder or http ftp icpdas com pub cd 8000cd napdos minios 7 utility minios 7 _ utility Step 4 Copy the 7188xw exe file from the CD Napdos MiniOS utility folder to the PATH directory for example C Windows After all the software is copied to the Host PC the content of 7188XC folder should be as follows L 7188XC CJ Demo gt Demo programs for the I 7188XC D LJ BC TC gt Demo programs for the BC and the TC compiler L MSC gt Demo programs for the MSC compiler m 7188XC DemoList htm gt Demo list for the I 7188XC D CJ Document gt Documents related to the I 7188XC D LJ os image gt The MiniOS7 image file matches the demo programs E Readme html gt The detailed description about the 7188XC folder Note The 7188xw exe file is used as a bridge between the l 7188XC D and the Host PC Therefore the 7188xw exe file must be copied to the CAWindows V folder to allow it to be executed from any location l 7188XC Series User s Manual Ver
15. Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 67 4 11 Using Digital Input and Digital output The I 7188XC D provides two DI channels and three DO channels The SetDo1High SetDo1Low SetDo2High SetDo2Low SetDo3High and SetDo3Low functions can be used to control the three DO channels and the GetDi2 and GetDi3 function can be used to read the states of the two DI channels For DI and DO wiring information please refer to Section 1 4 6 DI and DO Wire Connection The wiring for a DI DO application is as follows Current Limit Resistor Load current lt 100mA i Inductive load or Conductive load l or l TTL CMOS m or 1 Open Collector IT 1 d Q Q Q Q QOO QOOQGOGQO l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 68 The sample code for retrieving and setting DI and DO is as follows OD int Do1 Do2 Do3 InitLib Initiate the 7188xc library Print Dl s n r GetDi2 High Low Read the state of DI2 Print Dl s n r GetDi3 High Low Read the state of DI3 Do1t GetDo1 Read the state of DO1 Print DO1z9 5sWMr Do1 High Low if Do1 SetDo1High Set the DO1 to ON else SetDotLow Setthe DO1 to OFF Do2 GetDo2 Read the state of DO2 Print DO2 s n r Do2 High Low if IDo2 SetDo2High Set the DO2 to ON else SetDo2Low Set the DO2 to OFF
16. Refer to Appendix B MiniOS7 Utility and 7188XW for details of the program download procedure for 7188xw exe The program download procedure is as follows Refer to Sec2 1 to install MiniOS7 Utility Ver 3 11 otep 1 From the Windows START menu go to Programs ICPDAS MiniOS7 Utility Ver 3 11 and locate the MiniOS7 Utility Ver3 11 gt a Mimos Utility Ver 3 11 ra Ver 3 11 D Minis Utility Ver 3 11 Manual f Uninstall 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 T MiniOS7 Utility Ferion 3 1 1 build 3 1 1 1 y F e b Connection a Command E Configuration Look ir Last Connection Alt EZ Dusconnect Chr EZ search F1Z l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 23 TE Connection Connection History COM v S eral Port Baud Rate J 15200 hull Data Bit hull TECP ALUDP Parity UN one v Stop Bit v Cancel Step 3 See if the MiniOS7 Utility connects with I 7188XC The connected icon is The disconnected icon is gis ee e a e a e P MiniOS Utility Ferion 3 1 1 build 3 1 1 1 miea EF Fie b Connection de Command Configvration T Tools amp Help 7 Look in C Mini _Utility v Oo p Mame Lock in Disk A Type No Name
17. oto e E derived d REP iE a endete 70 4 12 2 Becontguringd he 7 199XG D cus ered set bct e aE ita ite tete 73 4 12 3 Q Expansion BOSTOS usen tot te Geach tieu n taut Fue ta Te udi tuetur eth fu Dude etude 74 PAD PMC AMOINS sissa EEEa 76 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 2 5 1 Embedded Controllers cccccccccccccccecececcccccccececececccecscececacecuavaceeeneteceauacseeneneneaes 76 5 2 Local Real Time Controller RU C ccccccccsecccesceceeeeceseeceeeeseneeseueeseueeseueeseueeseneesanees 77 5 9 REME Local GohlrollGE a yes accedo Me ceticodidqduo des deno Meactislgddeyedee ayevey doi ed eo oeoxa too devdo ten 78 5A PEG WO Expansion ADD IICAUG ienie OO 79 5 5 Radio Modem ADDIIGaLIOD vacusersacrncseiasessen aren E EIren 81 5 6 An Application Using 4 OO VI POTIS usus ct t Res t oe RU RE SR Gere vere EE EIE SEXE ER SE PESE vetu Dou nut 83 Appendix A What is MiniOS7 iiec ciae soue specu sv esu veo P EUO x C cu svEo cust su ye Cu PrEsuveEekvu Es 84 Appendix B MiniOS7 Utility and 7188XW 87 DOS 7 UUN TEM 87 PMO DVN ie alent LLL E LUAM ML UM AUI 89 Appendix C Comparison Table 1c eee Leere eee rne 98 Appendix D Library Function List 99 Appendix E Compiling and linking
18. 021 10 45 otep 12 Click on Compile and select Make EXE file to make the project cy CAWINDO WS ystem32 cmd exe tc File Edit Search Run Debug Project Options Window Helg Cal 1 L T 1241 Build all Remove mesage Fi Help Bring ESE file up to date by compiling and linking EXE file HELLO EXE Linking IC LIB CL LIB Total Link Lines compiled 1885 PASS 2 arnings B Errors H H Available nng 394E 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 46 3 4 Building project on 64 bit platform If trying to use 16 bit compiler like BC3 1 or TC 3 0 to build MiniOS7 project on Windows 64 bit platform like Windows 7 or Windows 8 it will prompt up an error message to show compatibility problem for 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 l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 47 4 Operating Principles 4 1 System Mapping SRAM 128K from 0000 0000 to 1000 FFFF Interrupt No Interrupt mapping 0 _ Dividedbyzero S 1 jmae 0 0 0 2 JM X
19. 1 2 Feb 2014 7MH 021 10 20 2 2 Connect the Download Cable to the Host PC Step 1 Connect the CA0910F download cable between COM of the l 188XC D and the COM Port of the Host PC as shown in the diagram below step 2 Apply power Vs GND to the I 7188XC D Vs can be in a range from 10V to 30V DC RENE 4 Connect to the Vs Power supply I GND 5 digit 7 SEG LED Red LED Step 3 After applying the power the 5 digits of the 7 SEG LED will continuously show as follows 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 l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 21 A cycle Note Only the display version of the module will include a 5 digit SEG LED l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 22 2 3 Downloading Programs to the I 7188XC D Before using the MiniOS7 Utility ensure that the download cable is connected from the Host PC to the I 7188XC D and ensure that no other programs are running on the I 7188XC D For details of how to connect between the I 7188XC D and COM 1 on the Host PC refer to the wiring diagram in the Sec 1 4 5 Program download Note Instead of using the MiniOS7 Utility to download programs to the Il 188XC D the 7188xw exe file can also be used
20. 2 for detailed wiring information and Section 2 3 for details of how to download programs l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 50 4 3 Using the Download Port as a COM Port The download port COM1 of the I 7188XC D can be used as a general purpose RS 232 port in the following manner otep 1 step 2 otep 3 step 4 Step 5 step 6 Step 7 Download custom programs and autoexec bat to I 7188XC D first switch off the I 7188XC D and remove the download cable from the Host PC Disconnect the INT pin from the GND pin of the I 7188XC D if they are connected Switch on the I 7188XC D no standard input no standard output no debug information Connect a download cable between a new RS 232 device and the COM of the I 7188XC D Initialize the COM1 to the new configuration The COM of the I 7188XC D can now be used a general purpose RS 232 port l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 51 4 4 Functions and Demo Programs List There are several demo programs that designed for I 7188XC D For more detailed information regarding these programs please refer to the contents in later sections The functions of the demo programs are as follows Folder Demo program Explanation Section Hello C Detecting if the operation system is 3 3 4 MiniOS7 Note MSC does not support C language The Hello C file is only supported by BC nae Hello C
21. 7188xXA Demo MSC Hel lo 2006 05 29 17 08 lt DIR gt 2006 05 29 17 08 lt DIR gt 2006 05 29 17 03 106 Gomsc bat 2006 05 29 16 47 677 4911 2006 05 29 17 08 6 716 HELLO EXE 3 File s 3 2 Dir s 22 041 571 328 bytes free C 7188XA Demo MSC Hel lo gt _ l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 146 Using MSVC Compiler The working steps to use MSVC 1 50 compiler are given as following Step 1 Run MSVC exe ascii alien DEMONA 25 E include s tring h include A E SEE T wean FAR wr fled 5 MAE d minos demo mer ed 5 Scan i HA JH Fare OM x h List Files of Type RARER GS ETE Project CF mak hui m d ICPDATA fv 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 Hew Project Project Hame Browse Project Type windows application EXE el Edidi Li RE Adem noche BTA fo c T B88XA gt DEMO ID MSC fete CIN p HELLO zl List Files of Tome BERE CY Project mak eee l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 147 otep 3 Add the user s program and the necessary library files to the project Edit HELLO MAE File M ame 7188 al lib T188 al lib 188xa5 lib List Files of Type Library lib Directories cou SB
22. 7188xw exe Switch on the power for the I 7188XC D All initialization messages will be shown on the monitor of the Host PC If the INIT pin is open the 1 7188XC D will search for the autoexec bat file If the autoexec bat file is present the I 7188XC D will execute it If the autoexec bat file is not present the 7188XC D will revert to console mode to allow the user to download debug a program After completing the initialization stage the 1 7188XC D will use the COM1 as its standard input output The standard output of the I 7188XC 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 7188XC D as standard input Therefore both the keyboard and l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 49 monitor of the Host PC can be used as standard input and output for the Il 188XC D as follows e Use 7188xw exe or MiniOS7 Utility as a bridge between the l 188XC D and the Host PC e Execute 7188xw exe or the MiniOS7 Utility on the Host PC to setup this bridge e The keyboard of the Host PC gt standard input of I 7188XC D e The monitor of the Host PC gt standard output of I 7188XC D In this way the I 7188XC D can read data from the keyboard and display it on the monitor Thus debugging a program will be easies and effective Note 188xw exe and the MiniOS Utility are provided on the companion CD Please refer to Section 2
23. Deb Project Opti pen Project File HELLO P J Fi Help Type for incremental search lower for files upper for directories H DOSBox 0 74 Cpu speed max 100 cycles Frameskip 0 Program File Edit Search Run empile Debug Project Options Window Help 1 Alt F9 F9 Information Remove messages 1 1 0 Pro ject HELLO Fi Help Rebuild all files l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 155 A DOSBox 0 74 Cpu speed max 100 cycles Frameskip 0 Program File Edit Search Run Compile Debug Project Options Window Help NONAMEGS CPP A EXE file HELLO EXE Linking BC LIB CL LIB Total Link Lines compiled 1690 PASS 2 Warnings a Errors 0 a fivailable memory F1 Help Alt F8 Next Msg lt F Prev Msg Alt F9 Compile FS Make F10 Menu H DOSBox 0 74 Cpu speed max 10096 cycles Frameskip 0 Program RTE Edit Search Run Compile Debug Project Options Window Help H HAMECGO CPP AH Change dir Print DOS shell Project HELLO Exit Borland C l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 156 Tips for using batch file It is a little troublesome to set the path and launch the BC demo project We can make a batch file as below for demo program path d bc bin cd minios7elloWhello c bc and save this batch file to path D when Driver D is mounted as local directory and change to d
24. INSTALL Turbo C 3 0 Installation Utility B Copyright c 1992 by Borland International Inc Install Utility Welcome to the Turbo C 3 0 installation program This program will install Turbo C on your system You will need about 10 5 megabytes of disk space if you wish to install all available options This includes 1 megabyte needed for workspace during the install Press ENTER to continue ESC to quit ENTER Continue ESC Cancel Ed DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program INSTALL Turbo C 3 0 Installation Utility Enter the SOURCE drive to use D ENTER Select ESC Cancel l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 159 Ej DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program INSTALL Turbo C 3 0 Installation Utility Enter the SOURCE Path ENTER Select ESC Cancel EH DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program INSTALL Turbo C 3 0 Installation Utility Directories LI D TC Options IDE CMD LIB CLASS BGI HELP EXMPL 1 Start Installation Fi Help F9 Start the installation ENTER Select ESC Previous l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 160 fa DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program README F 1 07 4 16 26 D TC HEARDHE Welcome to Turbo C Version 3 60 This README file contains important information about Tu
25. Subdirectory s Library Subdirectory BGI Subdirectory Tour Subdirectory Class Library Subdirectory Examples Subdirectory Install Tour Unpack Examples Memory Models ll Start Installation EE m Description Selecting this option will begin copying Files to your hard drive into the directories specified above Fi Help F Start the installation EHTER Select ES5G Preuious Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 35 otep 5 6 At this point the Turbo C version 1 01 compiler is installed in CATC which is where the tcc exe executable is also located c Command Prompt install Turbo G 2nd Edition Installation Utility Turbo G Binary F Header F Library BGI Subd FERMER Executing FERES Executing FERES Executing Turbo G is now installed on your system ALL the necessary files have been copied to your hard drive and a configuration file has heen created for the command line version of the compiler You should now read the README file hy typing README and pressing ENTER in your Turbo C directory Mext make sure the line FILES 28 is in your CONMFIG SYS File and C TC BIN your path For example PATH C BIK C TC RIN Press any key to continue CIXICSBINSUNZIP ERE TC ZIP C TC BIMH Executing C TC BIMNSNTHELP COM FC TC BINW STCHELP TCH zW Any Kev Continue l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 3
26. Uptions Listing Files Memory Model Optimizations New Segment Data Size Threshold Po F Cade Generation Frecompiled Headers Preprocessor Segment M ames Assume extern and Uninitialized Data far step 6 Remove the xcr afxcr library from the Input Category Linker Opthons Build Options C Debug Specific Release Specific Common to Bath Options String LIB Her ILIB afscr ILIB aldnames ILIB slibee NOI STACK 51 20 AOMNERROR NOEXE OLOGO Help Use Project Default Category Category Settings Input Memory Image Libraries afscr iddnames slibce Miscellaneaus Output ignore Default Libraries Specific Libraries to lgnore Prevent Use of Extended Dictionary Iv Distinguish Letter Case l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 149 Linker Ophons Build Options C Debug Specific Release Specific Common ta Both 0K Options String Cancel LIB aldnames LIB slibee MEL IS TACE 8120 ONERROR NOESXE OLOGO Help Use Project Detaults Category Category Settings Input Memory Image Libraries _ oldnames sibee pO Miscellaneous Output gnore Default Libraries Specific Libraries to Ignore Prevent Use of Extended Dictionary Iv Distinguish Letter Case Step 7 Remove the OLOGO option from the miscellancous Category Linker Options Build Options C Debug Specific Release Specific Common to Bath
27. iobus e pdf file that is provided in the 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 7188XC D I O expansion bus l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 7 Before continuing it is recommended that you read the Readme html which can be found in the CD Napdos 7188XABC 7188XC The latest information available prior to shipping will be contained in this file l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 8 1 4 Hardware Information 1 4 4 Schematics and Dimensions of the I 7188XC D Top View L P Side View Unit mm DIN RAIL MOUNTING BRACKET Front View arm m IL a E H 2560 3360 lggHgBBHHBHBHE ai Bottom View l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 9 1 4 2 Pin Assignment i Name Connects to I O expansion board Connects to I O expansion board Connects to I O expansion board Digital output 100mA 30V Max l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 10 DATA pin for COM2 RS 485 DATA pin for COM2 RS 485 V of power supply 10 to 30V DC unregulated GND for the power supply The pin assignment for the COM1 connector DB 9 Male is as below DB9 Male COM1 6 NC
28. like Windows 7 or Winodows 8 8 1 Preface If we try to use 16 bit compiler like BC3 1 or TC 3 0 to build MiniOS7 project on Windows 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 The program or feature 7 D BC Bin BC EXE cannot start or run due to incompatibity with b4 bit versions of Windows Please contact the software vendor to ask if a 64 bit Windows compatible version is available Please follow below steps to solve the problem l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 152 Step 1 download and install DosBox for Windows You can easily install the 32 bit version on a 64 bit OS The download page is here http sourcetorge net projects dosbox tiles dosbox 0 74 DOSBox0 74 win32 installer exe down load Note Strongly recommend installing DOSBox as administrator 28 DOSBox0 74 win32 i Open Run as administrator Pin to Taskbar Pin to Start Menu Send to gt Cut Copy Delete Open file location Properties Step 2 Start up the DOSBox click DOSBox ES 2 it will bring out two Windows forms one is DOSBox Status Window and DOSBox Console as below DOSBox Status Window DOS Box version 4 74 Copyright 2662 26010 DOSBox Team published under GNU GPL CONFIG lt Loading prima
29. memory of the PLC meaning that the PLC can access the 7000 series input modules as follows e Ihel 7188XC D sends a command to the 7000 series input modules e The I 7188XC D writes this data to the internal memory of the PLC e The PLC accesses this data from its internal memory The PLC can control the 7000 series output modules as follows e The PLC writes data to its internal memory e The l 7188XC D reads the output data from the memory of the PLC e The Il 7188XC D sends a command to its 7000 output modules Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 80 9 9 Radio Modem Application Device A Device B EN Device C Device D T DU Series D A D T DO Module 51 900 7188 SST 900 7188 Controller S KL TOOO Series SST 900 SST 2400 settings Device A e 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 e RS 485 or RS 232 e Half duplex mode e Synchronous way e Slave state l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 81 e Baud Rate 9600 e Channel 3 e Frequency 915 968MHz As the
30. not refreshed within 0 8 seconds it will reboot the I 7188XC D The MiniOS7 of the I 7188XC D will automatically refresh the watchdog after being powered on User programs can call the software driver to stop the MinOS7 from refreshing the watchdog timer but the program must then refresh the watchdog timer manually If the program does not refresh the watchdog timer every 0 8 seconds it will cause the l 188XC D to reboot The program must then ask the MiniOS7 to reset the watchdog timer then stop and return to the MiniOS7 command prompt Use the EnableWDTY function to enable the watchdog timer or use the DisableWDT function to disable it After the watchdog is enabled the program should call the RefreshWDT function before the timer count reaches 0 8 seconds otherwise the watchdog will reboot the l 7188XC D module The sample code is as follows InitLib Initiate the 7188xc library EnableWDT while quit RefreshWDT User function DisableWDT The IsResetByWatchDog Timer function is used to check whether the I 188XC 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 65 main InitLib Initiate the 7188xc library if lsResetByWatchDog Timer do something here to check the system quit 0 EnableWDT while quit
31. olx File Edit Search Run Compile Debug Proje Options Window Help rx ui Se E d a Lon c CAWINDO WS system32Wmi exe be DL E void maintvoid gt lt i fidd item InitLibt gt Delete item Local options Print lt Hello world psn Include files me diee f Fi Heip Load a project file and its desktop DU EDD ED EU ei red e p en E vo E MP I DES XU EDU DD En Lr ea otep 6 1 Type the name of the project file and then click the OK button f Hello PRJ Ef Opt ions Window Help 2 Edit Search Run Compile De bug ISTE Tub zin Ts C Open project Close project Lae options Include Files Add item Project HELLO Fi Help Add an item to the project l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 42 Step 7 1 Select the source file Type c and press Enter in A area If the file you want is in B area moving the green block to choose the file and click the Add button If not moving the green block to C area and press Enter to search the file Step 7 2 Select the function library Type lib and press Enter in A area If the file you want is in B area moving the green block to choose the file and click the Add button If not moving the green block to C area and press Enter to search the file Step 8 Click Done to exit l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 43 otep 9 Clic
32. s on chip UART 0 5 wire RS 232 or 2 wire RS 485 The I 7188XC D COM Ports can be set as RS 232 or RS 485 as below COM Port Type Pinname o 2 wire RS 485 Data Data wire RS 232 TXD RXD GND 5 wire RS 232 TXD RXD GND RTS CTS The programming required for the 80188 UART is very different from the 16C550 Interrupt handling on the 80188 is also very different from the 8259 on a PC Therefore the RS 232 application programs for PC are not executed in the I 7188XC D The software driver for the I 7188XC D is an interrupt driven library that provides a 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 Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 55 4 6 Using the COM Ports The 7188XC D has two communication ports COM can act as either an RS 232 or RS 485 port RS 232 TXD RXD RTS CTS and GND RS 485 DATA DATA Self tuner ASIC inside e CON is an RS 485 port D2 D2 Self tuner ASIC inside Before using the COM Port the nstallCom or InstallCom1 2 function must be called to install the driver for the COM Port Before exiting the program the RestoreCom or RestoreCom1 2 function must be called to uninstall the driver After calling the InstallCom function data can be read from the COM P
33. tA DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program DOSBO Zin mount d diw Drive D is mounted as local directory d gt bec bat_ After execute the bc bat file the demo project will be launched successfully H DOSBox 0 74 Cpu speed max 100 cycles Frameskip 0 Program BC i B File Edit Search Run Compile Debug Project Options Window Help P 1 HELLO C 47 110 185 F1 Help Ins fidd l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 157 If BC3 1 compiler is not available it can download Free TurboC 3 0 from website Download Free turboc zip from following link http www bestfreewaredownload com download t free turbo c freeware flagsdpz html Turbo C 3 0 freeware download The download should start automatically in a few seconds If it doesn t click here to start the download process manually Alternative download 2 Alternative download 3 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 H DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program DOSBO A N mount d diw Drive D is mounted as local directory d D s cd turbac D NTURB C install exe l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 158 Below snap shots are steps for install TC 3 0 EH DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program
34. the COMI input buffer data ReadCom1 read data from COM1 ToCom1 data send data via COM1 if datazz q quitz1 if q is received exit the program RestoreCom1 uninstall the COM driver 4 6 1 To print from the COM port The 1 7188XC D library also supports functions such as printf from the standard C library to produce a formatted output 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 Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 57 int portz2 to use COM2 int i InitLib Initiate the 7188xc library InstallCom port 115200L 8 0 1 install the COM2 driver for iz0 i 10 i printCom port Test 6d rin i print data from COM2 RestoreCom port uninstall the COM driver 4 6 2 To Use COM1 COM2 for an RS 485 Application COM1 COM2 is a 2 wire RS 485 COM Port and includes the following 2 pins e D connect to the Data of the RS 485 network e D connect to the Data of the RS 485 network COM1 COM2 is a half duplex 2 wire RS 485 network and cannot be used in a full duplex 4 wire application It is designed to directly drive l 7000 series modules send receive directional control in a 2 wire RS 485 network is very important Therefore the 1 7188XC D is equipped wi
35. 14 7MH 021 10 28 Hinis Information eseaw key L acalHast Prompt ir 188C Basic Ds MiniD5 7 Memory Des bb Build Version 2 00 006 Mar 01 2007 16 20 53 CormPort Time Init pin Upen CPU ROC 3820 0 Reset by Power OH reset COM P05 D COM 12301510 58 4 0 COM4 10343351035 83 45 55 COMA 0 0 0 0 COME 0 0 0 0 LOM 13421 92641 564 COMs 1146110793 65 53 45 ni L acalH ost 15 Version Windows SP SP2Z E LocalHast Physical Memory AbM LocalHost CPU Frequency ene E LocalHost IP Address 10 0 8 3 LacalHost ComPort COM1 COM2 COM COMB COM10 SRAM 128K 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 29 3 Writing Your First Program 3 1 Libraries ICP DAS provides the 7188xcl lib function library for the I 7188XC D module The 7188xcl lib is for programs of the large memory model and is suitable for TC BC MSC and MSVC compilers All declared functions are described in the header file 7188xc h The location of latest Library http ftp Icodas com pub cd 8000cd napdos minios7 minios7 2 0 1 718 axc lib or CD NapdosMiniOS7MiniOS7 2 0N 7188xcNib Hundreds of functions are supported in the 7188xcl lib files as follows p InstallCOM 1 InstallCOM2 InstallCOM3 ISCOM 1 ISCOMe2 ISCOM3 ToCOM 1 TOCOM2 ToCOMS3 Rea
36. 15200 N 8 1 utoRun utodownload files None Current work directory C 7188xc Demo BC_TC Hel lo Hello_c l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 92 otep 6 Press F2 and then type the filename Hello exe and press lt Enter gt XGA 1 32 COM1 115200 0 6 1 FC 0 C 130 DIRSCAFLSEECWemoiBC _ TC wWello Wello ojx c 7188xXc Demo BC_TC Hel lo Hel lo_C gt 7188xw 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 115200 N 8 1 AutoRun Autodownload files None Current work directory C 7188xc Demo BC_TC Hel lo Hello_c 17188XC Input f1lename Hello exe hen Press F8 F9 F10 will auto download the file Hello exe Step 7 Press F8 to download the Hello exe file to the I 7188XC D and execute the program XGA 1 32 COMI 115200 48 6 1 FC 0 C TS 1 DIRSCAFLSSECWemoiBC _ TC wWelloWello ojx Input f1lename He ex hen Press F8 F9 F10 wii auto download the file Hello exe F8 LOAD File will save to 81BC 000B StartAddr gt 8000 1BCA Press ALT E to download file Load file Hello exe crc 1ED6 0000 Send file info total 28 blocks Block 28 ransfer time 1s 2 250000 seconds 17188XC gt Hello exe N lHe110 world 17188XC gt _ Notes A description of the Hotkey functions is as follows F8 Download a file to FLASH Memory and then execute the program F9 Download a file to FLASH Memory F10 Download
37. 2 gt 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 126 void main void int quit 0 Print n rTest the LCD lamp blink using user timer Print n rPress q to quitinir InitLib InitLCD initial Lib amp LCD CirScrn clear the LCD screen TimerOpen open timer function InstallUserTimer MyTimerFun install and call user timer while quit if Kbhit amp amp Getch q quitz1 TimerClose j e InstallUserTimer1C Function Installs a custom timer function on interrupt Ox1c The system timer will call int Ox1c at intervals of 55 ms syntax void InstallUserTimer1C void fun void Header include 7188xc h Description fun A pointer to the custom function The function cannot use an input argument and cannot return a value Example Please refer to InstallUserTimer function for a similar example e EnableWDTY Function Enables the WatchDog timer syntax void EnableWDT void Header include 7188xc h Description The WatchDog Timer WDT is always enabled and will be continually refreshed by the system Timer ISR When a custom program calls EnableWDT the system timer ISR will stop refreshing the WDT which must then be performed by calling RefreshWDT from within the program otherwise the system will be reset by the W
38. 6 3 3 3 Set the environment variables of the system After installing you must add C TC to your executable search path The easiest way to do this is as follows otep 1 Right click on the My Computer icon on the desktop Under Windows XP the My Computer icon may be located in the start menu and choose Pro or My Documents System Properties System Restore General Computer Name oerties from the context menu FRenote Advanced Automatic Updates Hardware Open Explore Search Manage Map Network Drive Disconnect Network D Create Shortcut Delete Properties p d Internet Explorer My System Microsoft Windows F Professional Version 2002 Service Pack 2 Registered to Sins B5274 b44 B285884 23818 Computer Dual Core AMD Opteron tm Processor 280 2 4 GHz 1 00 GB of RAM Physical Address Extension step 2 Click on the Advanced tab and then click on the Environment Variables button System Properties Renat Advand Sistem Restore Automatic Updates General Computer Name Hardware Environment Variables User variables For Administrator You must be logged on as an Administrator to make most of these cheng Variable Performance Visual effects processor scheduling memory usage and virtual mero User Profiles Desktop settings related to your logon System variables Variable
39. 7 ROMDOS Note ICP DAS reserves the right to change the specifications of MiniOS7 without notice The typical command set for MiniOS7 Command Description 0 LED5 pos value Ts a HEX value in the specified position of 5 digit Accesses the service routine to read write from to the USE NVRAM NVBAM Accesses the service routine to read write from to the USE EEPROM EEPROM Il 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 84 USE FLASH Accesses the service routine to read write from to the Flash Memory A h USE COM option the service routine to send receive to from DATE mm dd yyyy Sets the date of the RTC Time hh mm ss Sets the time of the RTC MCB Tests the current memory block otores the MiniOS7 image file in the SRAM of the UPLOAD I 7188XC D this command is only used to upgrade MiniOS7 Stores the MiniOS7 image file in the Flash memory of the I 7188XC D this command only used to upgrade MiniOS7 LOAD Downloads the user program file to the Flash Memory of the I 7188XC D DIR crc Lists the information of all files stored in the Flash Memory of the I 7188XC D BIOS1 RUN fileno Filename DELETE or DEL RESET DIAG option BAUD baudrate TYPE filename b REP command RESERVE n LOADR Downloads files to the SRAM RUNB Topti Runs the program stored in the SRAM of the option 7188XC D downloaded using the LOADR command INP IW INPW po
40. 8XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 87 fm ICPDAS gt Ga MiniOS7 Utility Ver 3 11 gt PS MiniOS Utility Ver 3 11 29 MiniO7 Utility Ver 3 11 Manual 9 Uninstall 7 MiniOS7 Utility Verion 3 1 1 build 3 1 1 1 35 File gt Connection 4 Command Configuration Tools amp Help E m Lock in Disk A v Hame Type Modified bin File Folder i E FIRMWARE File Folder E305 IMAGE File Falder icpdas 1KB Habre ee 55 load 32 dll BKE EARRA EP MiniD57 Lltility chm 1 025KB EJ BEERU HTML H a MiniD57 Lltility exe 2094KB REFAPESt 5 Mini0S7_Utilty ini KE iB EETCEIB SEKB HERBES Es uninsQO0 dat KB DAT File ifl unins 000 exe EEKB EHH l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 88 7188XW The 7188xw exe application is the main utility for the I 7188XC D and can be used to perform the following functions e Download user program files from a Host PC into the memory unit of the l 7188XC D module e Download the MiniOS7 image file from a Host PC into the Flash Memory of the I 7188XC D controller and upgrade the MiniOS7 e Show a debug string on the monitor of a Host PC Three standard output library functions such as Putch function Print and Puts will allow a main control unit to send an output string to the monitor of a Host PC e Enter data into I 7188XC D module using the Host PC keyboard Three standard inp
41. B CFile IF o nne D P hello SKE Application Es hello pr 4KB PRA File f Run with parameters Reset Minis Erase Disk Eun with parameters Reset Mis F4 Erase Disk E l i i Do Connection F2I E Uiead FS LiploadiFS Rt DiskToolF8 Dick T oollF6 E Ina Infe F 7 paese DeletelF8 E Petesnal RefreshiF EE Consale F10 Conscle F10 posi dA SearchF12 Search F12 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 25 Step 6 The result of the program will be shown in 7188xw window 3 33 File gt Connection de Command Configuration Tools amp Help Look in ic hello Qr Lock in Disk 4 188 31U bytes available S Name Sire Type No Nam o Lo Sie Modified B 7188xa 3IKB H File cB hello exe T6354 4 30 2007 11 342 E e 7188xaL CHE eniti Er emi Ld EETA 7188XW 1 31 COM1 115200 N 8 1 FC 0 CTS 1 DIR C Documents and Set ed z188 BL 186 i 3 14 CPDAS Tim Tsai E 7188s Begin Key Thread JCurrent set Use COM1 115266 N 8 1 E 71sec u cdam dad 1asi M E hello HELLO E HELLO E HELLO i7188XC run i88 Es HELLO DSK Hello world fiT Ereuna ERTA E a i P Coreen NOTE The 7188xw window has to be closed and then the download operation Step 4 could be done The content of the Hello c file is as follows Zinclude 7188xc h Include the heade
42. Configuration DF Tools 468 Help Upload Upload 4 Execute FAM Update Mins Image l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 27 Step 3 It will take about 10 seconds for the upgrade to finish If the MiniOS7 was updated successfully a Confirm action dialog box will appear Loading Progress From E SOUA 1 2yickminos se Imgsz189 9L 2D 070301 IMG To BSRHAM 188 C 200 7 0301 1 Step 4 Press H button and see the Build item to check the version number of the MiniOS7 The diagram is as follow 73 MiniOS7 Utility Verion 3 1 1 build 3 1 1 1 Sele EF File gt Connection f Command Configuration Tools amp Help Look jn 3 MiniQ 57 Utility Qtr Lock in Disk A gis Name Size Type No Name Size Modified Sabin File Folder G FIRMWARE File Folder 305 IMAGE File Folder icodas 1KB Het 55 load 232 dl BKE ERARI E MiniC15 7 Lltility chm 1 025KB PAREAN HTML H A MiniOS7_Utility exe 2D84KB EHHI Mini 7 Lltility ini SKB ARRE 55 uart dl SEKE ERRAR E unins000 dat SKE DAT File Infa F r i unins000 exe BBZKB REFHTEL E B Connection F2 E Upload F5 amp amp DiskTaollFR Fy InfoiF7 DB Deletes E RefreshF3 f Console F10 l 7188XC Series User s Manual Ver 1 2 Feb 20
43. DT The WDT timeout period is 0 8 seconds for MiniOS7 2 0 Example include 7188xc h void main void l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 127 int quitzO k InitLib if lsResetByWatchDogTimer test whether the system has been reset by the WDT Print reset by WatchDog timer n r EnableWDT after callng EnableWDT Refresh WDT must be called within 0 8s while quit if Kbhit k Getch if k q Print quit the program r n quitz1 quit the program else Print more than 0 8s has elapsed reset the system r n Delay 1000 There has been a delay for more than 0 8s Reset the system RefreshWDT Refresh WDT must be called within 0 8s Print call Refresh WDT n r DisableWDT Disable the WDT The system will refresh the WDT Print Call DisableWDT n r j e DisableWDT Function Disables the WatchDog timer syntax void DisableWDT void Header X include 7188xc h Description See the description for EnableSDT Example Please refer to EnableWDT function for more detailed information e RefreshWDT Function Refreshes the WatchDog timer syntax void RefreshWDT void Header include 7188xc h Description See the description for EnableSDT Example Please refer to EnableWDT function for more detailed l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 128 information e IsResetByWatchDogTi
44. E should be pressed only Alt E after the Press ALT_E to download file message is shown on the screen Alt H Toggles between normal line mode In line mode all characters pressed will not be sent to the COM Port until the ENTER key is pressed and it is designed for testing 7000 series modules Alt X oets the file name for downloading without initiating a download operation F5 Runs the program specified by F2 and arguments set by F6 sets the arguments of the execution file set by F2 10 arguments maximum If set to less than 10 arguments add to end Ctrl F6 Clears the screen F8 F9 F5 Alt L EE NO EE O F8 F9 Downloads the file specified by F2 to the FLASH memory Alt_F9 Downloads all files specified by ALT_F2 to the FLASH memory F10 Downloads the file specified by F2 to the SRAM and executes it l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 90 Alt F10 Downloads all files specified by ALT F2 to the SRAM memory Sends a BREAK signal to the COM port of the Host PC that is n currently being used by 7188xw exe More For more detailed information regarding the 7188xw exe application please refer to the index htm file in the CD Napdos MiniOS7 document Lib_ Manual For 7188XABO folder or at http ttp icodas com tw pub cd 8000cd napdos minios document lib _ manual for 7188xabc on the web Downloading a file to the I 7188XC D controller using the 7188xw exe applicatio
45. I 7188XC 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 82 5 6 An Application Using 4 COM Ports COM4 RS SA COM1 RS 232 COM3 RS 232 PLC MMICON 7000 Series SST 900 SST 2400 S Radio Modem SST 900 SST 2400 Radio Modem 7000 series modules COM1 The PLC can access the I O state of the 7000 series modules COM 2 Directly controls the 7000 series input output modules COMS3 MMICON is used as the local MMI COMA The PC is used to monitor and record the system data l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 83 Appendix A What is MiniOS7 MiniOS7 is an embedded operating system developed by ICP DAS Co Ltd that is designed to replace ROM DOS in 7188 series modules Various companies have created several brands of DOS In all cases DOS whether PC DOS MS DOS or ROMDOS is a set of commands or code that tells the computer how to process information DOS runs programs manages files controls information processing directs input and output and performs many other related functions MiniOS7 provides all equivalent functions of ROM DOS while in addition providing user specific functions for the I 7188XC D Below is a comparison table between MiniOS7 and ROM DOS as follows 1 MinOS
46. In this way thousands of 7000 series modules can be controlled by the PC via the I 7188XC D some control functions are timing critical so the local I 7188XC D can handle these functions in real time without the need for control by Host PC l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 77 5 3 Remote Local Controller RS 232 RS 485 I 7188XC D 4X500 E eee m CS eee 7000 series module 7000 series module In this configuration the control program is implemented series a local I 7188XC D The I 7188XC D will directly control the 7000 series modules based on these control arguments The Host PC can then access the remote I 7188XC D regarding the following items e Query and record the status of the remote system e Download control arguments to the remote I 7188XC D The remote I 7188XC D can communicate with the Host PC regarding the following items e Emergency event notification and response e Remote system status notification l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 78 5 4 PLC I O Expansion Application TOUCH SCREEN COM2 RS 485 Il 7188XC D 7000 series modules Most PLCs contain a Man Machine Interface that was originally designed for MMI applications The I 7188XC D can use this interface to construct a bridge between a PLC and the 7000 series modules The I 7188XC D can directly read write from to the internal
47. MH 021 10 94 Note The MiniOS7 image file can be found in the CD NAPDOS MiniO7 directory on the companion CD The latest MiniOS7 version can be downloaded from http ftp icpdas com pub cd 8000cd napdos 7188xabc 7188xc os image otep 3 From the Host PC go to the directory where the image file is stored then execute the 188xw exe application to connect the Host PC to the I 7188XC D controller step 4 Use the UPLOAD command then press ALT E gt after the Press ALT E to download file message is shown on the screen c FLGGE A 1 32 C0M 1 115200 8 8 1 FC CT30 DIE lt 171883C103_image C 7188xcC oS_image gt 7188xw 7188x for WIN32 version 1 32 2006 10 17 By ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 115200 N 8 1 AutoRun Autodownload f1les None Current work directory C M7188XCXDemoXBC TCVHelloXHello C 17188XC upload nm Press ALT E to download file Input filename _ J Step 5 Type the image filename for example xc050628 img then press lt ENTER gt XGA 1 32 COM1 115200 8 6 1 FC 0 C TS DIRSC AF LBSEC WS image 17188XC upload sess Al LIEItoldoun Load fLl el Input filename xc050628 1mg dd TT 16 X 050628 Tind cFC I47D 0000 Send file info total 256 blocks Block 256 ransfer time 1s 12 562000 seconds CRC162871A 1000 FFFE27188 i7188XC gt _ l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 95 otep 6 Wait for
48. Manual Ver 1 2 Feb 2014 7MH 021 10 139 otep 3 Add all the necessary files to the project otep 3 1 Select the source file i F HELL C Step 3 2 Select the function library and then click the Done button ame EST EE EU E 7iS8EL LIE l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 140 as 4 mid the Code generation options EG WIN M ni xl Window Help Aa eee Advanced code o Entry Exit Code C options Advanced options Optimizations Source Messages Hames Edit File Search Run Compile Debug Project C DOCUME 1 ADMI NI 1 HORAMERSG Project HELLOI Fi Help Specify how compiler prepares object code Cmemory models etc Step 4 1 Change the Memory model to Large a Options UH IE rd Assume 85 E Pn DS efines Bam step 5 Set the Advanced code generation options l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 141 5 z BEE File Edit Search Hun Compile Debug Fro Window Help EN DOCUME AL AADMINI TNONAHEG ee eee Code generation Entru Exit Gode C options Advanced G options Optimizations Source Hezsages Hamez F1 Help Uiew further code generation options Step 5 1 Set the Floating Point to Emulation and the Instruction Set to 80186 Opt ions nm Instruction Set Far Data hreshold 32767
49. Open J Q i O c e o e Output Channels Output Type oen collector m D x ei O Q O x x D O 3 0 3 2 oad Voltage 30V DC Max ED Displa LED as Power Communication Indicator digits 7 segment display for I 7188XCD only r7 19mm x 72mm x 33mm OZ O1 GO D Q ITI lt O 3 D p Operating temperature 25 C to 75 C torage Temperature 30 C to 80 C umidity 10 to 90 RH non condensing 10 to 30V DC non regulated 2 0W for 7188XC 3 0W for I 7188XCD ower requirements U U O D Q O 5 7 C 3 O O 5 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 6 1 3 Software and Document information The location of all documents and software related to the I 7188XC D on the companion CD are shown in the following directory tree The relevant file can quickly be located by referring to the tree Demo MSC 7188XC DemoList htm Document 7188XC pdf lO Expansion bus document html MiniOS7 document html Program Develop document html Xc050628 img Readme html Demo Readme html iobus e pdf X702X703 pdf minios7 utility V311 exe 7188xw exe The documents and software listed above can also be obtained from the ICP DAS website http ftp icpdas com pub cd 8000cd napdos The folder location of all documents and software on the website is identical to the companion CD The
50. Options String LIB er LIB afacr LIB oldnames LIB slibee NUI 5 TACK S120 o tme ONERAROR NODESE OLOGO O He O Use Project Defaults Category Category Settings Miscellaneous Input Suppress Display of Sign On Banner Miscellaneous OS OLOGY Output l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 150 Step 8 Rebuild the project E Microsoft Yisual C HELLO MAE File Edit View aia Browse Debug Toole Options Window Help App Wizard m New pen Edit HELLO MAE lose Compile File Cth FS Saale a 4 ha jy AN HELLO EXE Alt Fo Execute HELLO EXE Cub FS scan Dependencies scan All Dependencies dp 1 Output ox Initializing Compiling c xX7188xa demo mzec hello hello c Linking Microsoft RF Segmented Executable Linker Version 5 50 3339 Dec 5 1994 Copyright C Microsoft Corp 19841 1993 All rights reserved Object Modules obj4 NOI STA CK 5120 ONEREROR NOEXE HELLO OBJ Ob ject Modules obj Eun File HELLO exe HELLO EEE List File c HELLO map nul Libraries lib c mzevc lib Libraries lib c mzgwvc mfc lib Libraries lib LIB 7188XAL LIEB Libraries lib oldnamez Libraries lib llibce Creating browser database HELLO EXE error s warningiz EI l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 151 Compiling on 64 bit platform
51. RTC oyntax void GetDate int year int month int day Header include 7188xc h Description year 2000 2080 month 1 12 day 1 31 Example Please refer to GetTime for more detailed information SetDate Function Sets the system date to the RTC oyntax int SetDate int year int month int day Header X include 7188xc h Description year 2000 2080 month 1 12 day 1 31 Return Value On success returns NoError On error returns DateError 18 Example Please refer to GetTime for more detailed information GetWeekDay Function Reads the weekday from the RTC syntax int GetWeekDay void Header X include 7188xc h Description Reads the weekday from the RTC Return Value 02 Sunday 1 6 gt Monday to Saturday Example 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 113 date command to set the date the MiniOS7 will calculate the correct weekday and set the RTC If SetDate is called it will also calculate the correct weekday and set the RIC However if SetWeekDay is called the function must calculate the correct weekday itself l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 114 Function FlashReadld Retrieces the information about Flash FlashErase Erases a s
52. RasdemosmsceMib Close Cancel gt c o gt 71884 gt DEMO Help gt MSC Es lib Board dd d HEE Drives Bc Project Type MS D US application EXE Use Microsoft Foundation Classes Build Made t Debug Customize Build Options Compiler Linker CiC Compiler Options C Debug Specific Release Specific Common to Both Build Options Options String Fesses naloga Gs G1 AWS ASL Ox 40 NBEBUIG ADU DOS FR Ok Cancel Help ni Cancel ee Help p Use Project Defaults Category Code Generation Custom Options Custom Options C Debug Options Listing Files Memon Model Optimizations P Code Generation Precompiled Headers Preprocessor Segment Hames Floating Point Calls Category Settings Cade Generation E Check Pointers 00186 4 60168 Calling Convention C r C Iw Disable Stack Checking Code Generator Use Emulator Auto Select Struct Member Byte Alignment al 2 Bytes l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 148 otep 5 Change the Memory model to Large CAC Compiler Options Build Options t Debug Specific Release Specific Common to Bath Options String nalaga Gs G1 w3 AL 0s D U NBEBUG YD DOS FR Category Category Settings Memory Model Code Generation Custom Options Custom Options C Debug
53. X jJNoComecin 0 A 8 RTS Request To Send RS 232 0 9 Dt DATA forRS 485 0 Note The COM1 can be used as either an RS 232 or RS 485 port It is not recommended to use both RS 232 and RS 485 at the same time l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 11 1 4 3 Mounting the l 7188XC D 1 4 4 Block Diagram SRAM 128K Flash Memory 256K COM1 Watchdog a Circuit COM2 RS 485 gt RS 232 RS 485 EEPROM 2K 5 Digit LED DI 2 Channel 80188 20 CPU gt 3 5V to 30V or compatible pure User defined Pin DO 3 Channel mc eu 3 pins 100mA 30V 10V to 30V Power Converter l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 13 1 4 5 Wiring Diagrams for Application Program download J Download cable CA0910F 1 DATAs 2 TXD s RXD 4 wc 9 DATA COM1 Ri 7188XC 7188XCD 13 vs 2 D2 j u Ini 9 pot j e po2 j s pos j 4 xi Is x2 j 2 xs Iil COM Port of the PC EXGND x Ex l Connect the INIT pin i l to GND to disable autoexec bat Note Connect the DB 9 of the download cable to the COM Port of PC I 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 14 Using a 3 wire RS 232 Port 7188XC 7188XCD Vi io oio OQ JJ RXD RS 232 Device DCD Note here are 3 wires as follows e Connect the RXD to th
54. a file to SRAM and then execute the program l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 93 step 8 Type dir and press Enter to check that the files are stored in the Flash Memory of the I 7188XC D c TISSA W 1 32 COM1 115200 4 8 1 FC 0 C TS 0 DIRS C YR EC WDemoiBC_TCiWelloWello C 17188xXC gt dir 0 Hello exe 03 07 2007 15 45 11 7083 01BAB 8002 0000 81BC OOOB otal File number 1s 1 Free space 320533 bytes 17188XC gt _ step 9 Type del y and press Enter to delete all files stored in the Flash Memory of the I 7188XC D co TIBBXW 1 32 COMI 115200 8 8 1 EFC 0 C T30 DIRS 17188ZCYDemo3BC TCXHelloHello C Ox y l otal File number 1s 1 do you really want to delete y m otal File number 1s O Free space 327648 bytes 17188XC gt _ Note The MiniOS7 only supports the delete all command Individual files cannot be selected for deletion Step 10 Press Alt X to quit the MiniOS7 Upgrading MiniOS7 using the 7188xw exe application step 1 Connect the I 7188XC D to the COM Port of the Host PC using the CA0910 cable Refer to the wiring diagram in Section 2 2 for details step 2 Determine the latest version of the MiniOS7 image file 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7
55. and execute the INSTALL EXE file cx CAWINDOWS S ystem 2wmd exe C Copyright 1985 2001 Microsoft Corp et C Documents and Settings Administrato l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 34 otep 5 The following instructions will guide you through the installation process c Command Prompt install Turbo G 2nd Edition Installation Utility Copyright c 1991 by Borland International Inc Install Utility Welcome to the Turbo G installation program This program will copy the files needed to install Turbo G on your system You will need about 7 5 megabytes of available disk space if you wish to install all the memory models unpack the examples and copy the Tour files Press EMTER to continue ESC to quit EHTER Continue E amp 5C Cancel Step 5 1 Press ENTER to start the installation step 5 2 Select the drive where the unzipped file is located The default is A so you should enter C then press ENTER Step 5 3 Press ENTER again This will install the software from the directory tctemp Step 5 4 Press lt ENTER gt 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 cs Command Prompt install Turbo G 2nd Edition Installation Utility Turbo G Directory pe i Binary Files Subdirectory Start Installation Header Files
56. cludes the following items e One I 7188XC D module e One download cable CA0910 e One companion CD containing software drivers and digital versions of the user manuals e One copy of the release notes 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 l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 4 1 1 FEATURES Embedded 80188 CPU 20M or compatible Cost effective version of l 7188 series User defined DI DO Built in EEPROM 2 Built in COM ports COM1 and COM2 COM driver supports both interrupt and 1K QUEUE input output buffer Support for I O expansion bus interface Only one expansion board can be added Three Digital Input Channels Three 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 COM1 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 5 1 2 SPECIFICATIONS PU module 0188 CPU 20MHz or compatible 28K bytes 56K bytes can be expanded by 512K bytes for OEM K bytes NO lash EPROM RTC Real Time Clock ardware Serial Number uild in Watchdog Timer Yes ommunication Interface OC IIzmimo o lt JJ U JJ Dc gt lt lt O O O Off Voltage Level
57. ction Checks whether there is any data stored in the buffer of COM1 syntax int lsCom1 void Header include 7188xc h Description Checks whether there is any data stored in the buffer of COM1 Example Please refer to InstallCom1 for an example ReadCom Function Reads data from the COM Port buffer The COM Port number is not assigned syntax int ReadCom int port Header include 7188xc h Description Reads data from the COM Port buffer The COM Port number is not assigned and can be modified using the 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 Header include 7188xc h Description Reads data from the buffer of COM1 Assigned to COMI 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 106 Header include 7188xc h Description Clears the data currently stores in the COM Port buffer The COM Port number is not assigned and can be modified using the port parameter port assigns the COM Port number Example Please refer to InstallCom for an example e ClearCom1 Function Clears the data currently stored in the buf
58. dCom1 ReadCom2 ReadCom3 WriteEEP ReadEEP EnableEEP ProtectEEP FlashReadld FlashErase FlashRead FlashWrite COM port Flash Memory Timer and Watchdog TimerOpen TimeClose TimerResetVlaue Timer TimerReadValue StopWatchReset stopWatchRead StopWatchStop GetFilePositionByName Programmable I O SetDio4Dir SetDio4High SetDio4Low GetDio4 Kbhit Getch Putch Linelnput Scanf Note For a more detailed description of the functions please refer to Appendix D Library Function List l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 30 3 2 Compiler and Linker A C Language compiler must be used to develop any applications Valid compilers include BC 3 1 5 02 TC 1 01 TC 2 01 MSC MSVC Prior to version 1 52 ICP DAS suggests that BC 3 1 is used as the compiler as the libraries provided have been created using the BC 3 1 compiler Special attention should be paid to the following items before using the compiler to develop custom applications Generate a standard DOS executable program e Set the CPU to 80188 80186 e Set the floating point to EMULATION if floating point computation is required Make sure not to choose 8087 e Cancel the Debug Information function as this helps to reduce program size MiniOS7 supports this feature l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 31 3 3 The Detailed Steps for Programming 3 3 1 Download Turbo C version 1 01 Free v
59. e TXD of the RS 232 device e Connect the TXD to the RXD of the RS 232 device e Connect the GND to the GND of the RS 232 device Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 15 Using a 5 wire RS 232 Port 7188XC 7188XCD RXD JJ gt lt o COM1 4 o J B o z oio AX RXD RS 232 Device DCD Note here are 5 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 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 16 Using the RS 485 Port 7188XC 7188XCD evs ji pz j r o2 14 COM1 COM2 7000 Module Bu GND cas B Note The RS 485 interface can directly drive up to 256 l 7000 series modules without the need for a repeater l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 17 1 4 6 DI DO wire connection Digital Input Wire Connection inB P Tube ON State OFF State P yP DI value as 0 DI value as 1 p DIx DIx Relay Close 72 GND Relay Open YQ GND A 4 A Level Low Logic Level High Logic GND x A GND Logic CND x A GND ON State OFF State input Type DO value as 1 DO value as 0 Drive Relay Resistance Load l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 18
60. e unsigned seg Il 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 115 Header include 7188xc h Description Erases a single sector 64K bytes of the Flash memory The value of all data on that sector will revert to OxFF seg 0xCO000 0xD000 or OxEOOO0 Return Value On success returns NoError 0 On error returns TimeOut 5 Example Please refer to Demo BC_TC Memory Flash FLASH C for more detailed information Note Segment OxFO0OO is used to store the MiniOS7 if attempting to erase segment OxF000 FlashErase will do nothing e FlashWrite Function Writes one byte of data to Flash memory syntax int FlashWrite unsigned int seg unsigned int offset char data Header include 7188xc h Description seg 0xC000 0xD000 or OxEOOO0 offset O to 65535 Oxffff data 0 to 255 8 bit data Return Value On success returns NoError 0 On error returns TimeOut 5 or SegmentError 12 Example include 7188xc h void main int data 0xAA55 data2 char dataptr InitLib dataptrz char amp data FlashWrite 0xd000 0x1234 dataptr writes data to the Flash memory FlashWrite 0xd000 0x1235 dataptr dataptrz char amp data2 reads data from the Flash memory dataptrzFlashRead 0xd000 0x1234 dataptr4 1 2FlashRead 0xd000 0x1235 Note When writing data to the Flash memory the data bit only can l 7188XC Series User s Ma
61. eA BEE Project Options De bu Ereakr watch Compile to OBJ D NONANE OBJ D NONANE C Make EXE file D DEMOS EXE Link EE file Build all Primary file Get info l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 137 cy CAWINDOWS GSystem 2wmd exe d te20tie File Edit Run Compile Project Options Debus Break watch tt E E Line i FR a Insert Indent Tab Fill Unindent D HOHAME C Linking EXE file LED EXE Linking STGZ2BHXLIB CL LIB Total Link Lines compiled 1335 PASS 2 Warnings H H Errors H H SUCCESS Available memory 235K Fress an Fi Help F5S Zoom F6 Switch FY Trace F8 5tep F7 Make FitH Menu HUM Message l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 138 Using the BC Compiler The procedures for using the BC compiler is as follows Step 1 Execute the Borland C 3 1 File Edit Search Run Compile Debug Project Options Window Help 5 DOGUME 1 nDHMIHI i HOHAMEB B CPP t Borland C Uerzion 3 1 Copyright lt c 1998 1992 hv Borland International Inc Fi Help Accept the settings in this dialog hox step 2 Create a new project file prj a Elx File Edit Search Hun Compile Debug Opt ions Window Hely B C DOCUME 1 ADMINI 1 Close project Add item Delete item Local options Include files pen oject File l 7188XC Series User s
62. eResponseFrom7000 ms Receives a response from an 1 000 1 87K series module Converts the ASCII code to a hexadecimal ascii to hex vul hex to asci Converts a hexadecimal value to ASCII code There are many other functions related to connecting to 1 000 1l 87K series module Please refer to the 7188xc h header file and the user manual on the enclosed CD which can be found at CDANapdosWminios7 document lib manual for 7188xabc index htm for more detailed information e SendCmdTo7000 Function Sends a command to an l 7000 series module oyntax int SendCmdTo7000 int iPort unsigned char cCmd int iChksum Header Zinclude 7188xc h Description If the checksum is enabled the function will add 2 bytes checksum to the end of the command iPort 0 1 2 3 4 for COMO 1 2 3 4 cCmd The command to be sent DO NOT add r at the end of the cCmd as SendCmdTo7000 will add a checksum if needed and r after the cCma iChecksum 1 for checksum enabled 0 for checksum disabled Return Value On success returns NoError On error returns an Error code Refer to the user manuals for l 7000 series modules for more details Example Zinclude 7188xc h void main int port 2 quit 0 x l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 133 char k InitLib InstallCom port 115200L 8 0 1 install a COM Port for the I 7065D ClearCom port SendCmdTo7000 port 0100 0 send a command to DO t
63. en requested save the file to a safe location o Antique Software Turbo C version 1 01 Mozilla Firefox foe F RAE um BO Bee LET ZH Q0 P o Re hpincodegar comarce Bi P xe vat SELB Ol eae m tr SUE maso Dp Ann FTOTIG ep PrinrerTenudly Antique Software Turbo C BUYNOWONLINE FREETRAL version 1 01 By David Intersimone Abstract Turbo C version 1 was aur first compiler that suppartea the C language The C compiler conformed ta AT amp T S 2 0 specificarigs How to Download and Install Turt In the Museum Turbo C version 1 ship date 2B Februany 1931 Zip utili Turbo C version 1 was aur first compiler that suk disks The zip file contains all the files conformed to AT amp T s 2 0 specification for the C ares command line tools ran under DOS Turbo C v s urba C and Turbo G Professional The Professional version incl asembler Turbo Debugger and Turbo F gie eee nn 1e a eH Din a ie GS aeRO G Version 1 software How to Download and Install Turbo C version 1 01 Click on Turba C version 1 01 to download the software 2 7mb Md you are finished downloading the software use your favorite zip A Es FKZIP ar Wim Zip ta decompress the zip file Ka folder on your hard drive Turbo C version 1 01 shipped ed on gMfopy disks The zip file contains all the Tes that were on the 4 Tloppy disk mages 7T To
64. ersions of the Turbo C 2 01 and Turbo C 1 01 compilers can be downloaded from the Borland website The following instructions will help you to install the Turbo C version 1 01 compiler on a PC running a Windows operating system step 1 Go to the CodeGear web site http dn codegear com museum gt CodeGear De veloper Network Home Page Museum Mozilla Firefox B CO BR RRO FLAS BHF S Tam KA CD e gt E Logon TG CDN News gt Antique Softy Live con nity chat bc em 1 Douglas z2 rsc da April 5th at Sam PDT and 5pm PDT gt Memorabilia e Announcing Jim Douglas new CEO ES Stories Delphi pres e Ast Delp ni ifo PHP La i ur US and Canada Delphi 2 ha c ipm 1c rs elphi fo r PHP SNG shi odeRa age iis al Conference The Rep ays Take the EN iilder Dev le per Survey atch the vta ilde Hideos e Codec r Produ ae e 1d Free Do Articles Audio amp Video Examples Events Bugs amp Suggestions i 1i i i it Sort by Date newest first gt Historical Documents Delphi 1 launch demos source code launch script and marketing video 15 Feb 2005 Anders Hejlsberg provided the original launch script and projects used in the Delphi 1 launch on February 14 199 35 otep 2 Scroll down the bar and click on the link for Antique Software Turbo C version 1 01 to go to the download page Antique Software Turbo Pascal v3 02 10 Feb 2000 Turbo Pascal 3 was the first Turbo Pa
65. esseesseeeseeennreene nen 49 4 3 Using the Download Port as a COM Port sessseesseeeeneeennennn enn 51 4 4 Functions and Demo Programs List eese 52 AS GOMER OM COMO Anis Oneone cats uat tuse atus totus xu catenin oup cece gaa eee eee 55 4 6 Usmo Me COMP ORNS scc aseces tait cett ei beni Ms ceti PUE dae bue Cui desit eoe e Pod LR POM DL DE 56 AOA TO Drnbtromdhe GO MOOG eec tune aeuo betur b uu A fato degree et 57 4 6 2 To Use COM1 COM for an RS 485 Application eeessseesssesss 58 4 6 3 To Send a Command to an l 7000 MOUIE cccceeeeeeeeeeeeeeeeeeeeeeeeeeeesaeeesaaeees 58 4 7 Using the Red LED and 7 SEG Display cccccccesecceeeeceeeeceeeceeeeceueeseeecseeeseeeenees 61 4 8 Accessing the l 7188XC D Memory cccccceccceececeeeeceececeececeueecueesaueeseeeseeeseeenees 62 Zo USNO Flas MMEO i ausoniun eee Seed ierit pice den iur Herbo eei dan Ie dn iet ben ba ie idnes 62 4 9 2 Usi Ets PRO Moriri ie teeter eode ILI EIL D EIE LE 63 4 9 Using the Vvatelidog Tel usi sit erst it ead ES peu P Sn e v neck vsu eds Revue ieu dede 65 4 190singhes Ter T Reto aono eo tatum tutus dta uacua det d hohes Duden usu Cheat 67 4 11 Using Digital Input and Digital OUTDUT ec cceececeeeeeeeeetee esses eesaeeeseaeesaaeesaeeesaeeeens 68 4 12UsinG the V O Expansion BUS ss dao mi doti o aad iR ae eee eee a 70 412 1 Wetimition Ol an VO Expansion BUS 2
66. fer of COM1 syntax int ClearCom1 void Header X include 7188xc h Description Clears the data currently stored in buffer of COM1 Assigned to COM1 Example Please refer to InstallCom 1 for an example e ToCom Function Sends data to the COM Port The COM Port number is not assigned oyntax int ToCom int port Header X include 7188xc h Description Sends data to the COM Port The COM Port number is not assigned and can be modified using the port parameter port assigns the COM Port number Example Please refer to InstallCom for an example e ToCom1 Function Sends data to COM1 syntax int ToCom1 void Header include 7188xc h Description Sends data to COM1 Assigned to COM1 Example Please refer to InstallCom 1 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 107 Header include 7188xc h Description Prints data from the COM Port buffer The COM Port number is not assigned and can be modified using the port parameter Produces a formatted output similar to printf from the standard C library Example Please refer to InstallCom for an example printCom1 Function Prints data from the buffer of COM1 syntax int printCom 1 char fmt Header include 7188xc h Description Prints data from t
67. he 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 108 Tvpe 3 EEPROM Function E WriteEnable Sets the EEPROM to write enable mode E MultiWrite Writes data to the EEPROM E WriteProtect Sets the EEPROM to write protect mode EE MultiRead Reads data from the EEPROM There are many other user functions related to EEPROM Please refer to the 7188xc h header file and the user manual on the enclosed CD which can be found at CD Napdos MiniOS7 document Lib_Manual_ For_7188XABC ind ex htm for more detailed information e EE WriteEnable Function Sets the EEPROM to write enable mode syntax void EE WriteEnable void Header include 7188xc h Description Sets the EEPROM to write enable mode The EEPROM Is in write protect mode by default EE WriteEnable must be called before writing data to the EEPROM Example Zinclude 7188xc h void main Int data 55 data2 InitLib EE WriteEnable EE MultiWrite 1 10 1 amp data EE WriteProtect EE MultiRead 1 10 1 amp data2 Print dataz ed Data2 d data data2 e EE MultiWrite Function Writes data to the EEPROM syntax int EE MultiWrite int Block unsigned Addr int no char Data Header include 7188xc h Description Writes mul
68. hould decide whether to write to the block or to erase it To write an integer to segment OxDOOO offset 0x1234 of the Flash Memory the code is as follows int data 0xAA55 data2 char dataptr int dataptr2 InitLib Initiate the 7188xc library dataptrz char amp data FlashWrite 0xd000 0x1234 dataptr FlashWrite 0xd000 0x1235 dataptr read data from the Flash Memory method 1 dataptr char amp data2 dataptr FlashRead 0xd0o00 0x1234 dataptr4 1 2FlashRead 0xd000 0x1235 read data from the Flash memory method 2 dataptr2 int far MK FP 0xd000 0x1234 data data 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 62 Before writing data to Flash Memory the user must first call the FlashWrite function and check whether data can be written or not After calling the EraseFlash function data can be written to that segment Refer to the demo programs in the CD Napdos 7188XABC 7188XC Demo BC_TC Memory folder for more information 4 8 2 Using EEPROM The EEPROM is designed to store data that is not changed frequently such as e Module ID configuration settings COM port configuration settings e Small databases The erase write cycle of the EEPROM is limited
69. i fname fdata gt addr fdata gt month fdata gt day fdata gt year 1980 fdata gt hour fdata gt minute fdata gt sec 2 fdata gt size j for i 0 i lt fileno i fp_no char far GetFilePositionByNo i get file position l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 131 iffp no GetFileName i fname Print file d 12s position Fp Wn fname fp no e GetFilelnfoByNo Function Uses the file number index to retrieve file information syntax FILE DATA far GetFilelnfoByNo int no Header X include 7188xc h Description no The file index The first file is index O 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 e GetFilelnfoByName Function Uses the file name to retrieve the file information oyntax char far GetFilelnfoByName char fname Header include 7188xc 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 132 Type 8 Connecting to l 7000 1 87K series module Description Description SendCmdTo7000 Sends a command to an 1 7000 1 87K series module Receiv
70. imer function on interrupt Insaluserinenc Oe system timer will call int Oxic at intervals of 55 ms EnableWDT Enables the Watchdog timer DisableWDT Disables the Watchdog timer RHefreshWDT Refreshes the Watchdog timer There are many other custom timer and More Watchdog Timer functions available Please refer to the 7188xc h header file l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 118 and the user manual on the enclosed CD which can be found at CD NapdosWmninios7WdocumentMib manual for 7188xabc index htm for more detailed information e TimerOpen Function Opens the timer function for use syntax int TimerOpen void Header include 7188xc h Description Before any of the timer functions can be used the TimerOpen function must be called Return Value On success returns NoError If the Timer is already open returns 1 Example Zinclude 7188xc h void main unsigned long time int quit 0 InitLib Print n rPress any key to start the timer Print n rthen Press 0 to Reset the timer 1 4 to insert a delay q to guit n r Getch TimerOpen open the timer function while quit sets the key function if Kbhit switch Getch case 0 TimerResetValue reset the timer break case 7 DelayMs 1000 delay unit is ms uses system timeticks break case 2 Delay 1000 delay unit is ms uses the Timer 1 feature of the CPU
71. information e StopWatchReadValue Function Reads the current StopWatch value oyntax int StopWatchReadValue int channel unsigned long value Header include 7188xc h Description The value represents the time that has elapsed since either a StooWatchStart or StooWatchReset was last called channel 0 7 a total of 8 channels Return Value On success returns NoError If the channel is out of range returns ChannelError 15 Example Please refer to StooWatchStart for detailed more information e CountDownTimerStart Function Starts using the CountDownTimer oyntax int CountDownTimerStart int channel unsigned long count Header include 7188xc h l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 124 Description channel 0 7 a total of 8 channels count the amount of time to be counted Return Value On success returns NoError If the channel is out of range returns ChannelError 15 Example include 7188xc h void main void unsigned long value int quit 0 InitLib Print n rTest the CountDownTimer Print n rPress q to quit n r TimerOpen CountDownTimerStart 0 1000 use the CountDownTimer while quit if Kbhit amp amp Getch 2z q quitz1 CountDownTimerReadValue 0 amp value reads the CountDownTimer Print Test CountDown d r value if value 0 CountDownTimerStart 0 1000 restarts the CountDownTimer TimerClose
72. ing MSC Compiler The working steps to use MSC 6 00 Compiler are given as following otep 1 In the source file folder create a batch file called Gomsc bat using the text editor Untitled Notepad Sele cl fe Gs FPa Fm G1 AL HELLO c he source code link MA NOE NOI HELLO 1ib 7188xbl del o0hJj del map V The path for the function library 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 otep 2 Run the Gomsc bat file cn CA WINDO WSS ystem32 cmd exe C 7188XA Demo MSC Hel 1lo gt Gomsc C 7188XA Demo MSC Hello gt cl c Gs FPa Fm G1 AL Hello c icrosoft R C Optimizing Compiler Version 6 00 Copyright c Microsoft Corp 1984 1990 All rights reserved Hello c C 7188XA Demo MSC Hello gt link MA NOE NOI Hello MlibM7188xal icrosoft R Segmented Executable Linker Version 5 10 Copyright C Microsoft Corp 1984 1990 All rights reserved C M7188XAMDemoMMSCMHello del 0bj C M7188XAMDemoMMSCMHello del map C 7188XA Demo MSC Hel 1lo gt _ l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 145 otep 3 A new executable file will be created if it is successfully compiled ey CAWINDOWSZS System32wmd exe C 7188xXA Demo MSC Hel lo gt dir Volume in drive c has no label Volume Serial Number 1s 1072 8943 Directory of C
73. ingle sector of the Flash memory r E lashWrite Writes one byte of data to the Flash memory There are many other functions related to the Flash memory Please refer to the 7188xc h header file and the user manual on the enclosed CD which can be found at CD NapdosWmninios7documentMib manual for 7188xabcWndex htm for more detailed information The Flash memory used in I 7188XC D series modules has a capacity of 256K bytes The MiniOS7 will use the last 64K bytes and the remaining space can be used to store custom programs or data Application developers can use these functions to write data to the Flash memory When writing data to the Flash memory data only be written from 1 to 0 and cannot be written from O to 1 So before writing data to the Flash memory must be erased first The erase process will cause all data to revert to OxFF that is all data bits will be 1 Only then can data be written The FlashErase function is used to erase one sector 64K bytes each time e FlashReadid Function Retrieves the information about Flash syntax int FlashReadld void Header X include 7188xc h Description Reads the Flash memory device code high byte and manufacturer code low byte Return Value OxA4C2 MXIC 29f040 OxA401 AMD 29f040 Example See CD Napdos 7188XABC 7188XC Demo BC_TC Memory e FlashErase Function Erases a single sector of the Flash memory oyntax int FlashEras
74. install the software unzip the files onto your hard drive Run the Install exe program and follow the installation instructions to install the software These historical files are provided to the Borland community free of charge They may be downloaded and used as is for personal use only No developer support is provided Each individual product contains copyright notices that are still in force These files may not be made available via the Internet T ee ee E mimdanT iNMANEVYERINETDNOGRNTINMTMM NT TENTE NNMEmmImImEMENWINWIHHMITR l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 33 3 3 2 Install Turbo C version 1 01 otep 1 Go to where you downloaded the file and double click on the self extracting file tcpp101 zip in Windows to extract it This will open a WinZip Self Extractor window you do NOT need WinZip installed on your machine By default this will extract the files to the C tctemp directory You may designate a different location otep 2 Once the files have been extracted exit the WinZip self Extractor window step 3 Open an MS DOS command prompt window cx 08 1 H0 PELO FS ystem32 cmd exe icrosoft Windows XP Version 5 1 2688 Windows Update CS eight 1985 2801 Microsoft Corp and Settings Administrator gt as Programs L1 EC Documents 3 3 ye Lag OFF Administrator 8 6 01PM step 4 Change the directory to the c tctemp or wherever you put the unzipped files folder
75. int data int parity int stop Header include 7188xc h Description Installs the driver for the COM Port The COM Port number is not assigned and can be modified using the port parameter port assigns the COM port number baud Baud Hate the default Baud Hate for the l 188XC D is 115200 Example Zinclude 7188xc h void main int quit 0 data i poriz1 portz1 uses COM1 InitLib InstallCom port 115200 8 0 1 installs the COM port driver for iz0 1 lt 10 i printCom port Test d nir i prints data to the COM Port while quit if lsCom port checks if any data is in the COM Port buffer data ReadCom port reads data from the COM Port buffer ToCom port data sends data to the COM Port buffer ClearCom port clears all the data in the COM Port buffer if datazz Q quitz1 if Q is received exit the program RestoreCom port uninstalls the driver for COM Port e InstallCom1 Function Installs the driver for COM1 syntax int InstallCom1 unsigned long baud int data int parity int stop Header include 7188xc h Description Installs the driver for COM1 and is assigned to COM1 baud Baud Rate the default Baud Rate for the I 7188XC D is 115200 Example l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 104 Zinclude 7188xc h void main int quit 0 data InitLib InstallCom1 115200 8 0 1 install the driver fo
76. k on Options and select full menus Plx Window Help al Compiler Make Directories Environment Project HELLO Fi Help Use or don t use Full set of menu commands Step 10 Click on Options and select the compile menu item then set the Code generation options Efx Edit Search Hun Compile Debug Project Window Help HELLO Full menus On am Optimizations Source Hessages Code generation Names Project HELLO Fi Help Specify how compiler prepares object code memory models etc step 10 1 Change the Memory model Small for 7188xcs lib large for 188xcl lib l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 44 Model Ss m efines NENNEN L o c ee meee otep 10 2 Click on More then set the Floating Point to Emulation and the Instruction Set to 80186 Overlay suppor 10 2 2 X onvention 252 Emulation step 11 Click on Options and select Directories to enter the TC 1 01 include and library directories By default the directories are same as the installation directory of the TC 1 01 Da nclude Directories mp o pane mmi 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 l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH
77. l 7188XC 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 1 Table of Contents 1 IniiiejojS eriroj Siete DE 4 UM zc2llDlizo rene me e C OR 5 k2 o PEOIFISCATNONS Tc 6 1 3 Software and Document information seeeesseesssseesseseeeeenenn nennen nnns 7 jm uu i minieldioruel EEUU UU EUMD 9 1 4 4 Schematics and Dimensions of the l 7188XC D ce cccseceseeeeseeeeseeeeseeeeeees 9 TA picea t tc S 10 144 39 Moutntihgd 3e IE719956 D reese SUI ve DUM VI ipe SEES o nime ime Sime x Sesisec ta 12 TAA BIOK DIAG P PET UMS 13 TASS Wining Diagrams TOL ADDIICalIOUE uss
78. l Bus TO O0 TO 1 TI 0 TI 1 SCLK DIOS DIO4 and DIO14 peeeeocoe l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 70 The definition of an I O expansion bus is given as follows 3888335 J8 T BEI EOEERAUEUDE E EET PP PP LL IE VCUBBN 3M m b m mm m d m d J1 pin definition and description 6 INT Channel 1 interrupt request input asynchronous active high 7 PCB power supply 8 RESET Power up reset pulse active high 9 GND j PCBgoud Power up reset pulse active low CPU Timer output 1 can be used as a programmable D I O CPU Timer input 0 can be used as a programmable D I O CPU Timer input 1 can be used as a programmable D I O 15 SCLK Common serial clock output for 7188 series modules 16 DIO9 PrograammableD Obit gt 17 DIO4 Programmable D VO bt l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 71 e CLOCKA 20M e ARDY This pin is left OPEN for applications that do not require the use of wait states e INTO and INT1 These two pins are left OPEN for that do not require an interrupt applications e TO 0 and TO 1 These pins can be used as the timer output of the CPU or programmable DI O e TI O and TI 1 These pins can be used as the timer input of the CPU or programmable D I O DIO4 DIO9 and DIO14 Programmable DI O bit e SCLK The I 7188XC D uses this signal as a CLOCK s
79. lay 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 StopWatchStart Function Starts using a StopWatch channel and resets the otopWatch value to O syntax int StopWatchStart int channel Header X include 7188xc h Description The system timer ISR will increment the StopWatch value by 1 in 1 ms intervals channel 0 7 a total of 8 channels Return Value On success returns NoError If the channel is out of range returns ChannelError 15 Example Zinclude 7188xc h void main void unsigned long value int quit 0 InitLib 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 amp value Print SWatch d r value if value 2000 StopWatchPause 0 DelayMs 2000 StopWatchContinue 0 if value 4000 StopWatchStop 0 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 122 DelayMs 2000 StopWatchReset 0 StopWatchStart 0 j TimerClose e StopWatchReset Function Resets the StopWatch value to 0 oyntax int StopWatchReset int channel Header include 7188xc h Description channel 0 7 a total of 8 channels Return Value On success returns NoErr
80. le for an example l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 110 Type 4 NVRAM and RTC Function Description oetDate Sets the system date for the RTC GetWeekDay Gets the day of the week from the RTC There are many other functions related to the NVRAM and the RI C Please refer to the 7188xc h header file and the user manual on the enclosed CD which can be found at CD Napdos minios7 documenit lib_manual_for_7188xabc index htm for more detailed information e ReadNVRAM Function Reads data from the NVRAM syntax int ReadNVRAM int addr Header X include 7188xc h Description Reads one byte of data from the NVRAM addr O to 30 a total of 31 bytes Return Value On success returns the data 0 255 stored at the specified address On error returns the AddrError 9 Example Zinclude 7188xc h void main int data 55 data2 InitLib WriteNVRAM 0 data data2 ReadNVRAM 0 now data2 data 55 Print dataz ed data2 d data data2 WriteNVRAM Function Writes data to the NVRAM syntax int WriteNVRAM int addr int data l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 111 Header X include 7188xc h Description Writes one byte of data to the NVRAM addr 0 30 data One byte of data 0 255 If the data gt 255 only the low byte will be written to the NVRAM Return Value On success returns NoError On erro
81. lude 7188xc h Description no The file index The first file is index 0 fname 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 130 Example Please refer to GetFilePositionByNo for more detailed information e GetFilePositionByNo Function Uses the file number to read the file position syntax char far GetFilePositionByNo int no Header include 7188xc h Description The address can be used to get the file data no The file index The first file is index 0 Return Value On success returns the starting address of the file On error returns NULL Note If the file size is gt 64K 16 a huge pointer char huge data type must be used to retrieve the file data for the offset Example Zinclude 7188xc h static FILE DATA far fdata Z file data structure please see the file c for details char far fp no void main d int fileno i char fname 13 InitLib nitialize the Library filenozGetFileNo get file number Print Total file number d n r fileno fname 12 0 for i 0 i lt fileno i fdatazGetFilelnfoByNo i 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 ni r
82. me Function Checks if system has been reset by the WatchDog Timer syntax int IsResetByWatchDogTime void Header include 7188xc h Description Returns 0 when true Example Please refer to EnableWDT function for more detailed information l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 129 Retrieves total number of files stored in the Flash memory Uses the file index to retrieve the file name GetFilePositionByNo Uses the file number to retrieve the file position GetFilelnfoByNo Uses the file number to retrieve the file information GetFilelnfoByName Uses the file name to retrieve the file information There are many other custom file functions available Please refer to the 7188xc h header file and the user manual on the enclosed CD which can be found at CD Napdos minios7 document lib manual for 7188xabc index htm for more detailed for more detailed information Note The file system for MiniOS7 supports custom programs for reading files but does not support custom programs for writing files e GetFileNo Function Gets the total number of files stored in the Flash memory syntax int GetFileNo void Header X include 7188xc h Description Returns the number of files Example Please refer to GetFilePositionByNo for more detailed information e GetFileName Function Uses the file index to get the file name syntax int GetFileName int no char fname Header X inc
83. me purpose It provides very strong protection against illegal copies Every legal user has a unique 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 163 Appendix G Revision History Revision Description April 2007 First release February Page 6 2012 1 Modify DI specification 2 Modify Storage Temperature specification Original 40 C to 80 C New 30 C to 80 C Modify Humidity specification Original 0 to 9096 New 10 to 90 RH non condensing February Add section 3 4 Building project on 64 bit platform 2014 Add section Compiling on 64 bit platform like Windows 7 or Windows 8 8 1 in Appendix E Compiling and linking Add section Appendix G Revision History l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 164
84. meout Sets the timeout The unit is ms iChecksum 1 for checksum enabled O for checksum disabled Return Value On success returns NoError On error returns an Error code Refer to the use manuals for l 7000 series modules for more details Example Please refer to SendCmdTo7000 for more detailed Information ascii to hex Function Converts ASCII code to a hexadecimal value syntax int ascii to hex char ascii Header include 7188xc h Description Returns an integer representing the Hex value ascii The ASCII code char Example Please refer to SendCmdTo7000 for more detailed information l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 135 Appendix E Compiling and linking Using the TC Compiler There are two procedures for using the TC compiler TC 2 01 which are described as follows Method 1 Using a command line For more information please refer to CD 8000 NAPDOS 7188XABC 7188XC Demo BC_TC Hello_C gotc bat tcc Ic tc include Lc tc lib hello1 c lib 7188xcl lib Method 2 Using the TC Integrated Environment Step 1 Execute TC EXE to run the TC 2 01 Integrated Environment Step 2 Edit the Project file Add the necessary library and files to the project File Edit Run Compile Project Options Dehuc Break vwatch Line 2 Col 19 Insert Indent Tab Fill Unindent D NONAME C Message Fi Help F5 Zoom F Switch F Trace F8 Step F9 Make FiBH Menu Willy otep 3 Save the p
85. n Step 1 Power off the I 7188XC D Connect the INIT pin to the GND pin and power on the I 7188XC D at the same time Step 2 After the I 7188XC 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 l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 91 Set Program Access and Defaults zt TEE E c CAWINDOWSYSystem22Wwmd exe Ir dos r arala g Microsoft Windows XP Version 5 1 2600 ft Corp M mbopyright 1985 2661 Microsoft b windows Update c S ats and Settings fAdmi inistrator gt _ Programs i zA Documents PAPA Frofessional ng OFF Administrat EN z D Turn Off Computer tg Start pear dy gt M 6 01 PM step 4 Type cd c 7188XC Demo BC_TC Hello Hello_C then press lt Enter gt Assume user copy the 7188XC folder to C drive letter Refer to Step2 in Sec 2 1 CAWINDOWS S ystem32Ww md exe C EBD UNE 1985 2001 Microsoft Corp C Documents and settings VXAdministratogecd c 7188xC Demo BC_TC Hel lo Hel lo_ cy C 7188xXC Demo BC_TC Hel lo Hel lo_c gt _ Step 5 Execute the 7188xw exe application as shown in the following figure cy FIBRE W 1 32 COM1 115200 8 3 1 FC 0 CTS 0 DIR CARLE8ECWemotBC TC Wello Wello C ojx C 7188XC Demo BC_TC Hel1lo Hello_ amp 7188xw 7188x for WIN32 version 1 32 T ICPDAS Tim Tsai Begin Key Thread Current set Use COMI 1
86. n rPress any key to show ASCII Q to quit n r while quit if Kbhit data Getch if data Q quitz1 Putch data Print ASCII is d n r data Puts n rPress any key to show ASCII Q to quit n r e Getch Function Waits until a character is received from keyboard input syntax int Getch void Header include 7188xc h 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 100 Example Please refer to Kbhit for an example Ungetch Function Put a single character to the input buffer syntax int Ungetch int data Header include 7188xc h Description If there is no data in the input buffer when Ungetch is called next time the Getch function is called it will return the data Data 0 to 255 If the data is gt 255 only the low byte will be sent Return On success returns NoError On error i e the buffer is full returns 1 Example Please refer to Kbhit for an example of Getch Putch Function Displays a single character on the screen syntax void Putch int data Header include 7188xc h Description Data 0 to 255 If the data is gt 255 only the low byte will be sent Example Please refer to Kbhit for an example Puts Fu
87. nction Displays a string on the screen syntax void Puts char str Header include 7188xc h Description Puts will call Putch to send the string str The pointer to the string to be sent Example Please refer to Kbhit for an example Scanf Function Scans a character from the input and is similar to the scanf function This function cannot be used with MSC IVC syntax int Scanf char fmt Header include 7188xc h Description Returns the number of input fields successfully scanned l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 101 converted and stored The return value does not include any scanned fields that were not stored Return 0 No fields were stored EOF Attempts to read have reached the end of the string Example See CD Napdos 7188XABC 7188XC Demo MSC COM _ Ports C Style IO Print Function Prints a formatted character to the screen and Is similar to the printf function in the C language syntax int Print char fmt Header include 7188xc h Description This function is used instead of printf and the only difference between Print and printf is that Print does not convert the characters n to n r That is n only sends the code Ox0A not Ox0A OxOD so n has to be used for new line and return The printed message is sent to COMA Default parameters are 115200 N 8 1 Input Parameters Please refer to the standard f
88. nual Ver 1 2 Feb 2014 7MH 021 10 116 be changed from 1 to O and cannot be written from O to 1 FlashWrite does not check the status and just writes the data If an attempt is made to change the data from O to 1 a TimeoutError will occur After calling FlashErase data can be written again e FlashRead Function Reads one byte of data from the Flash memory oyntax int FlashRead unsigned int seg unsigned int offset Header include 7188xc h Description seg 0xC000 0xD000 or OxEO00 offset O to 65535 0xtfff 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 Oxff Example Please refer to FlashWrite function for more detailed information l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 117 Type 6 Timer and Watchdog Timer Funcion Description Inserts a delay for a specific time interval DelayMs The time unit is ms and uses system time ticks Inserts a delay for a specific time interval Dey me time unit is ms and uses the Timer 1 feature of the CPU Inserts a delay for a specific time interval Det me time unit is 0 1 ms and uses the Timer 1 feature of the CPU Inserts a delay for a specific time interval Delay 2 The time unit is 0 01 ms and uses the Timer 1 feature of the CPU called at intervals of 1 ms Installs a user t
89. o off if ReceiveResponseFrom7000_ms port 0100 20 0 Print l 7065D is not available r n while quit control Do Print n r Enter 1 5 to set Do on 9 to quit n r k Getch ascii to hex k convert ASCII code to hex ClearCom port switch x send a command to set the I 7065D Do1 5 light to on case 1 for command details refer to the I 7000 DIO manual SendCmdTo7000 port 20101 0 Print x ON x break case 2 SendCmdTo7000 port 0102 0 Print 20ox ON x break case 3 SendCmdTo7000 port 20104 0 Print 26ex ON x break case 4 SendCmdTo7000 port 0108 0 Print x ON x break case 5 SendCmdTo7000 port 0110 0 Print x ON x break case 9 quitz1 Print quit break fend of switch end of while loop e ReceiveResponseFrom7000_ms Function Receives a response from the l 7000 module syntax int ReceiveResponseFrom7000_ms int iPort unsigned char cCmd long ITimeout int iChksum Header X include 7188xc h Description After calling the SendCmdTo7000 function the ReceiveResponseFrom 000 ms function must be caled except for commands that do not require a response iPort 1 for COM1 2 for COM2 etc cCmd The response received from the l 7000 module If checksum is enabled the function will check and l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 134 remove the checksum The CH is also removed ITi
90. o use COM2 int i char data J 01M r command to read a module s name InitLib Initiate the 7188xc library installCom port install the COM2 driver for iz0 1 lt 5 i ToCom port data i send a command to the l 7000 module sonic program code e RestoreCom port uninstall the COM driver In addition to using the ToCom function the SendCmdTo7000 function can also be used to send commands to an l 7000 series module The ReceiveResponseFrom7000 function can be used to receive the response from an l 7000 series module Functions used to connect to an l 7000 module e SendCmdTo7000 int iPort unsigned char cCmd int iChksum This function sends a command to an l 7000 series module If the checksum is enabled the function will add 2 bytes checksum to the end of the command e ReceiveResponseFrom7000_ms int iPort unsigned char cCmd long ITimeout int iChksum After calling the SendCmdTo7000 function the ReceiveResponseFrom 000_ms function can be called to retrieve a response from an l 7000 series module Refer to the demo programs in the CD Napdos 7188XABC 7188XC Demo BC_TC 7K87K_Module directory for more detailed information Note For more l 7000 commands please refer to the user s manual for 7000 DIO l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 60 4 7 Using the Red LED and 7 SEG Display The I 7188XCD includes a 5 digits 7 segment display t
91. occsmecinu ia tede pde deg O Que Der Pep dS Deoa EE 14 Q oM POS c eee EE 18 1 4 7 Mounting the VO Expansion BUS tete ree es ate ooe edes evi 19 Q ick Star Dose oe ee en oe nee nen eee ea ou EE 20 2 oolbWate IrnstalalODicsssuns tu teni E an Edo eu E v ud tori eu M gud tac PU d 20 2 2 Connect the Download Cable to the Host PC eessseeseseesseeeeee 21 2 3 Downloading Programs to the I 7188XC D cccceeceeseeeeeeeeeeeseeeesseeeeeeaeeesseeesaeeeeeas 23 2E MUNI T MISIo clo RE E E OTT D 27 Writing Your First Program iiie cuore toad eaa acumina E Umta Sn cen cb ea ne oed rea ocu Du vE e Minis 30 Sl Vc RENTE T Um TTE 30 3 2 Compiler and Linker dic mm TT TO 31 3 3 The Detailed Steps for PrograMmMiIng cccccecccsssceceeecesseeeceeeeesseeeesseeeesseeeesseeeesaaeees 32 9 9 Download Turbo G version T0 Terica 32 332 Tnstall Turbo Ge VEION 1 0 T auos t een po EA rr t 34 3 3 3 Set the environment variables of the SYStEM ccccececeeeeceececeeeeteeeeteneeseneenauees 37 3 3 4 Build and Execute the Program ccccccccsscccseeceeeeeeeeseeeceeeeeeeeseeeseueeseeeseeeseeeseeeens 39 3 4 Bunding Project On 64 Dil DIATOM o oh iret od eer dete a epe rave dead 47 Operating PrHnhCcIDpl6S s ciiin ape bein ptor ras oaa cebat tee uro aaa 48 dat cystem IVIabplbiQesssesdees den Samb n ED poene nebat deridet denti anderem dert den dormis 48 4 2 Debugging custom Programs using COM1 eee
92. ogether with a decimal point which can be switched on or off using software Each digit of the LED is numerically identified from left to right using the numbers 1 to 5 and are individually programmable which can be very useful in real world applications and can be used to replace a monitor or touch screen in many applications Before attempting to use the LED the nit5DigitLed function must first be called then the ShowSDigitLed function can be used to display data The code required to display 7188d on 5 digits 7 segment LED is as follows InitLib Initiate the 7188xc library Init5DigitLed Show5DigitLed 1 7 Show5DigitLed 2 1 Show5DigitLed 3 8 Show5DigitLed 4 8 Show5DigitLed 5 13 The ASCII code for d is 13 Hefer to the demo programs in the CD Napdos 7188XABC 7188XC Demo BC_TC LED folder for more information l 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 61 4 8 Accessing the l 7188XC D Memory 4 8 1 Using Flash Memory The I 7188XC D module contains 256K bytes of Flash memory which includes space reserved for the MiniOS7 The MiniOS7 occupies the OxF000 segment So user can use the other segments whose total size Is 448K bytes Each bit of the Flash memory can only be written from 1 to 0 and cannot be written from O to 1 The only way to change the data from O to 1 is to call the EraseFlash function to erase a block from the Flash Memory 64K bytes The user s
93. on e DelayMs Function Inserts a delay for a specific time interval The time unit is ms and uses system time ticks syntax void DelayMs unsigned t Header include 7188xc h Description Delay time unit is ms t the delay time Example Please refer to TimerOpen function for more detailed information e Delay Function Inserts a delay for a specific time interval The time unit is ms and uses Timer 1 feature of the CPU oyntax void Delay unsigned ms Header X include 7188xc h Description Inserts a delay for a specific time interval The time unit is ms and uses the Timer 1 feature of the CPU ms the delay time Example Please refer to TimerOpen function for more detailed information e Delay 1 Function Inserts a delay for a specific time interval The time unit is 0 1 ms and uses the Timer 1 feature of the CPU syntax void Delay_1 unsigned ms Header include 7188xc h 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 e Delay 2 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 121 Function Inserts a delay for a specific time interval The time unit is 0 01 ms and uses the Timer 1 of the CPU syntax void Delay_2 unsigned ms Header include 7188xc h Description Inserts a de
94. or If the channel is out of range returns ChannelError 15 Example Please refer to StopWatchStart function for more detailed information e StopWatchStop Function Disables the StopWatch channel syntax int StopWatchStop int channel Header include 7188xc h Description The system timer ISR will stop to increment the otopWatch value channel 0 7 a total of 8 channels Return Value On success returns NoError If the channel is out of range returns ChannelError 15 Example Please refer to StopWatchStart function for more detailed information e StopWatchPause Function Pauses the StopWatch syntax int StopWatchPause int channel Header X include 7188xc h Description After calling StopWatchPause StooWatchContinue must be called to restart the time counter l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 123 channel 0 7 a total of 8 channels Return Value On success returns NoError If the channel is out of range returns ChannelError 15 Example Please refer to StopWatchStart function for more detailed information e StopWatchContinue Function Restarts the StopWatch oyntax int StopWatchContinue int channel Header X include 7188xc h Description channel 0 7 a total of 8 channels Return Value On success returns NoError If the channel is out of range returns ChannelError 15 Example Please refer to StopWatchStart for more detailed
95. ort sent to the COM Port printed from the COM Port and so on Before reading data from the COM port the IsCom function should be used to check if any data has already been sent to the COM Port If yes then the ReadCom function should be used to read the data from input buffer of the COM Port Before sending data to the COM Port the ClearCom function could be used to make sure the output buffer of the COM Port is clear then use the ToCom function to send data to the COM Port For example the code to echo the data back to COM1 RS 232 is shown below int portz1 to use COM1 int quit 0 data InitLib Initiate the 7188xc library InstallCom port 115200L 8 0 1 install the COM driver while quit if IisCom 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 l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 56 if datazz q quit 1 if q is received exit the program RestoreCom port uninstall the COM driver Use the port variable to switch from COM1 to COM2 simply change portz1 to portz2 If the program is set to use COM 1 the code can be altered as follows int quit 0 data InitLib Initiate the 7188xc library InstallCom1 115200L 8 0 1 install the COM driver while quit if lsCom1 check if any data is in
96. ource to drive all onboard serial devices so it is always programmed as DO Changing this signal to other configurations will cause serious errors This signal to drive external serial can be used devices without any side effects J2 pin definition and description 2 DO X jDaabus gt O 6 D2 X Databus gt O 8 D3 jDatabus gt O 9 A X j Addessbus gt o 14 D6 j Databus gt gt o Chip select output synchronous active low l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 72 Address bus output AO A6 Data Bus tri state bi direction DO D7 CS RD and WR These 3 signals will be synchronous to CLOCKA Pin3 of JP1 and asynchronous to ARDY Pin4 of JP1 e The CS will be active if the program needs to input output data from I O address 0 to Oxff Note The Pin15 and Pin170f JP2 are reserved by I 7188XC D user must leave these two pins N C For more detailed information refer to I O Expansion Bus for 7188X 7188E User s Manual 4 12 2 Reconfiguring the I 7188XC D There are three DO channels and two DI channels from the pin 4 to pin 8 of the I 7188XC D For the application of Customized 7000 Modules these 5 pins can be hardware reconfigured to other functions as follows otep 1 Remove the reconfiguration resistor as follows If DOS is reconfigured remove H19 If DO2 is reconfigured remove R20 If DO1 is reconfig
97. r returns the AddrError 9 Example Please refer to ReadNVRAM for more detailed information e GetTime Function Retrieves the system time from the RTC syntax void GetTime int hour int minute int sec Header include 7188xc h Description hour The address used to save the hour 0 23 data minute he address used to save the minute 0 59 data sec he address used to save the second 0 59 data Example Zinclude 7188xc h void main int year month day hour min sec wday InitLib SetDate 2006 1 12 sets the system date for the RTC SetTime 15 35 50 sets the system time for the RTC SetWeekDay 4 sets the system day of the week for the RTC GetDate amp year amp month amp day reads the system date from the RTC GetTime amp hour amp min amp sec reads the system time from the RTC wdayzGetWeekDay Print Date 02d 02d 04d d Time 02d 02d 02d n r month day year wday hour min sec e SetTime Function Sets the system time to the RTC syntax int SetTime int hour int minute int sec Header include 7188xc h l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 112 Description hour 0 23 minute 0 59 sec 0 59 Return Value On success returns NoError On error returns the TimeError 19 Example Please refer to GetTime for more detailed information GetDate Function Reads the system date from the
98. r COM1 while quit iffisCom1 checks if any data is in the COM1 buffer datazHeadCom1 reads data from COM ToComt data sends data to COMT if data q quit 1 if q is received exit the program RestoreCom1 uninstalls the driver for COM1 e RestoreCom Function Uninstalls the driver for the COM Port The COM Port number is not assigned syntax int RestoreCom int port Header include 7188xc h Description Uninstalls the driver for the COM Port The COM Port number is not assigned and can be modified using the port parameter port assigns the COM Port number Example Please refer to InstallCom for an example e RestoreCom1 Function Uninstall the driver for COM1 syntax int RestoreCom1 void Header include 7188xc h Description Uninstall the driver for COM1 and is assigned to COM1 Example Please refer to InstallCom1 for an example e 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 X include 7188xc h l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 105 Description Checks whether there is any data stored in the COM Port buffer The COM Port number is not assigned and can be modified using the port parameter port assigns the COM port number Example Please refer to InstallCom for an example IsCom1 Fun
99. rbo C For the latest information about Turbo C and its accompanying programs and manuals read this file in its entirety TABLE OF CONTENTS 1 How to Get Help EA Installation 3 Features 4 Important Information 5 Testing Your Expanded Memory 6 Corrections to the On line Help 1 HOW TO GET HELP If you have any problems please read this file the HELPHME D C and other files in your DOC subdirectory and the Turbo C manuals first If you still have a question and need assistance help is available from the following sources Command Keys Tle gt PgUp PgDn ESC Exit Fi Help After installed the TC 3 0 then set the Environment Path and change to demo path to run TC compiler IDE f DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program DOSBO H EN E mount d diN Drive D is mounted as local directory d Socd d turboc gt TURBOC gt install exe STURBOC gt cd S path d tcNbin X rd minias hello shello c MIN TOS SHELLOSHELLO_C gt tc l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 161 Open Project File iles HELLO PRJ l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 162 Appendix F Glossary 1 AsicKey The I O expansion bus supports AsicKey The AsicKey equips a complex machine for validation checking Included in this are 128 bytes of private data for the sa
100. rogrammed to DI DO 8 DI channels or 8 DO channels each channel can be orogrammed to DI DO Can be used as 3 DI channels or 2 DO channels 3 16 bit timer counter channels I O Expansion Boards for A D D A DI and DO Description X200 1 A D channel 0 2 5V X300 2 D A channels 0 4 095V X301 1 A D channel 0 2 5V 1 D A channel 0 4 095V X302 1 A D channel 5V 1 D A channel 5V I O Expansion Boards for RS 232 422 485 DI and DO X500 1 9 wire RS 232 channel Without case l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 74 X501 5 wire RS 232 channel X502 3 wire RS 232 channel 1 5 wire RS 232 channel I O Expansion Boards for storage devices Board Descriptions X600 4M bytes NAND Flash h 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 Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 75 9 Applications 5 1 Embedded Controllers of f2 f ll iu 1 Li 7000 series module 7000 series module Applications e 4500 replacement and enhancement not compatible e PC based controller replacement e PLC replacement e Special controller replacement The I 7188XC D can be used as an embedded controller for general applications meaning that it can be used to replace a Host PC PLC or other special controllers P
101. rogramming Tool TC BC MSC Debug Tool a standard input output keyboard and monitor of a Host e MMICON e PC keyboard and monitor e Touch Screen RS 232 or RS 485 interface Stored in Flash Memory Man Machine Interface e Onboard DI or DO Input Output e From an I O Expansion Bus e 000 series modules can directly control up to 256 modules giving thousands of I O points l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 76 5 2 Local Real Time Controller RTC RS 485 Host PC E RS 485 RS 485 I 7188XC D S address 1 ETT S 7000 series module 7000 series module RS 485 RS 485 l 7188XC D A d address n 7000 series module 7000 series module i x In this configuration the 7000 series modules act as slave devices The control programs are implemented in the Host PC The operation steps are as follows e The PC sends commands to the 7000 series modules and receives some input data e The PC analyzes this input data and generates some output data e Ihe PC sends commands to the 7000 series modules as output data If there are hundreds of 7000 series modules it will take the Host PC a long time to analyze and control these modules so the control program can be implemented in a local l 7188XC D The PC then only has to send control arguments to the I 7188XC D and the I 7188XC D will control the local 7000 series modules based on these control arguments
102. roject as a Project file by selecting save from the File menu and entering a name such as LED prj x LT BSE Run Compile Project Options Debue Break watch Edit Col 19 Insert Indent Tab Fill Unindent D NONAME C E Pic Rename NONAN New 4 7188ABC 7188XA BC_TC LED LED LED prj Write to Directory Change dir Of shell Quit Alt l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 136 otep 4 Load the Project by selecting the project name from the Project menu ee BIx Options Debug BKreak watch Project name LED PRJ Break make on Errors Auto dependencies Off Clear project Remove messages Step 5 On the compiler options menu change the Memory model to Large and set the Code Generation to 80186 80286 as shown in the diagram below File Edit Run Compile Pro E Opt ions i Line i Col i Insert Indent Ta Model Large Def ines Code generation Optimization Debug Break uatch Source Errors Hames File Edit Run Compile Project Seb De bug Break uatch Edit Line 1 Col i Insert Indent Ta Bab C Model Large Defines Code generation Calling convention Instruction set 66186788286 Floating point Emulation Default char type Signed Alignment Bute Generate underbars On Merge duplicate strings Off Standard stack frame Test stack overflow Line numbers OBJ debug information step 6 Select Build all from the compile menu to build the project
103. rs to use 7188xcl lib functions void main void InitLib Initiate the 7188xc library Print Hello world r n Print the message on the screen l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 26 2 4 MiniOS7 Upgrade ICP DAS will continue to add additional features to the MiniOS7 in the future so it is recommended that you periodically check the ICP DAS website for the availability of updated versions of the MiniOS7 Note For a more detailed description of the MiniOS7 please refer to Appendix A What s the MiniOS7 The MiniOS7 Utility provides an easy way to upgrade MiniOS7 The upgrade procedure is as follows step 1 Get the latest version of MiniOS7 image file The format of the image file name is TTYYMMDD img TT TYPE of product YY The year this image released MM The month this image released DD The day this image released Note The MiniOS7 image file contained on the companion CD can be found in CDANAPDOSMIiniOS7 V directory The latest version of MiniOS7 can be downloaded from the ICP DAS website http ftp icpdas com pub cd 8000cd napdos 7188xabc 7188xc os image 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 T RaniOST Utility Verion 3 1 1 build 3 1 1 1 33 File Connection e Commend
104. rt Heads data from the hardware Port O OUTP OW OUTPW port value Outputs data to the hardware Port l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 85 http ftp icpdas com pub cd 8000cd napdos minios 7 document lib man ual for 7188xabc index htm l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 86 Appendix B MiniOS7 Utility and 7188XW Both the MiniOS7 Utility and 7188xw exe application will allow users to easily upgrade to the latest version of MiniOS7 The MiniOS7 Utility and 188xw exe application can be used to perform essential configuration functions and for downloading programs to the MiniOS7 embedded in the I 7188XC D controller MiniOS7 Utility The MiniOS7 Utility program provides three main functions e Upgrade the MiniOS7 image e Download program files to the Flash Memory e Configure the COM port settings MiniOS7 utility location The MiniOS7 utility is located in the CD NAPDOS MINIOS7 UTILITY MiniOS7_ utility folder on the CD or at http ftp icodas com pub cd 8000cd napdos minios 7 utility minios7 utility on the web Installation procedure Step 1 Locate and execute minios7 utility v311 exe from the CD NapdosMiniOS7utilityMiniOS7 utility folder otep 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 Il 18
105. ry settings from config File C Nisers Jj M ppData Local DOSBo i DEDE TE HIDI Opened device none l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 153 First use command CLS or cls to clear the screen EH DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program DOSBO Welcome to DOSBox v0 74 ed ands ti HELP d use ctrl F11 and ctrl F1z Ti CPU k ail r ctrl F1 HAVE FUN The DOSBox Team http wua dosbox com ZiNPSET BLASTER AZZ0 I Di HS T6 Step 3 Configure the DOSBox Environments settings Make sure the demo file path for example D MiniOS7 hello hello_c Make sure the BO Bin file path for example DABO Bin Use mount command to mount the disk driver for example mount d d V After mount disk driver D then type D to change Z gt to D gt oet Path to BC Bin for example path d pc bin Change directory to demo run bc po dale al ea i DOSBox 0 74 Cpu speed 3000 cycles Frameskip 0 Program DOSBO A s gt mount d diN Drive D is mounted as local directory d D path d bc bin D 5 cd minios Shel loShello_c D gt SMIN TOS SHELLONHELLO_C gt bec l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 154 Step 4 Press Project to open project 9 Press Compile to build the project DOSBox 0 74 Cpu speed max 10096 cycles Frameskip 0 Program 8 File Edit Search R Compile
106. sca and BCO math in ta support owe intel oDer math co processor Antique Software Turbo Cte verrion 1 01 Mozilla Firefox I m ZF dc wu Esto Bee Tad Doo a zb qu z amp fh SE MEpiMnoiis paar combative 75 miu With the release af Turbo Pascal 1 0 Borland started its awari wF Si ssm 2 Antique Software Turbo Pascal v1 0 development environments and tools Download the software t Gfee e 1 ali z z NERO Developer Metwork Borland History Why the name Delphi Eo DEDNA 21 Dec 1999 Danny Thorpe writes about the origin of the Borland Delphi pri iki i ei GC A aoe ice i are f EN CM cai Pee m Memorabilia The Adventures of TurboMan A uo Turbo C O Tn SBE ee amp E E The Turhnhian comic strio advertisement annearend in Or Dh RENE Rf Ge VEPMCR d Nae CHIC RACER TPE ER RUE E MUR TT Let LARP Tad I iatan for tie C l ng tps i In the Museum Turbo G version 1 01 hip dabe 2 v 1981 Turba Co 4 faa aur Ti ipi upg dmi anguage com ant nmed 1 p nTart i w j I lapment ment and ammand lir ur run E in Turt g Turte Prateasional Prat bd fu ibo naL and Tu Prahle v r fac f Hona luno C 1 Sifter How to Po mlodd nd install Turse Gas version 1 01 x l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 32 Step 3 Click on the link for Turbo C version 1 01 as shown below to download the tcpp101 zip file Wh
107. t has been written RERNI to NVRAM Writes a value to the NVRAM value will automatically increase by 1 Allocate TopMemory function Heset Uses the Ungetch function to run another program Enables the Watchdog or bypasses K87K demo for com K87K AI for Com K87K DI for Com 87K Module 7K87K DIO for Com k87K DO for Com AO 024 for Com AO 22 26 for Com how to use the Timer function Show how to use the CountDownTimer function on channel O to switch the LED ON or OFF shows how to use the StopWatch function on channel O to switch the LED ON or OFF Shows how to use the InstallUserTimer function to control the 5 digit 7 segment LED Shows how to use the DelayMs function to switch the LED ON or OFF al on me Z lt D gt Show how to connect and control the 7k or 87k series modules via COM2 Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 53 Reads the data that has been written EBENE to the EEPROM Inputs a value and stores it in an EEPROM w EEPROM block 1 peer address 4 9 4 6 3 4 10 Shows how to use the I 7188XC 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 7188XC D l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 54 4 5 COM Port Comparison The I 7188XC D COM ports are as follows COM Port COM1 80188
108. th a Self Tuner ASIC controller for all RS 485 ports which will automatically detect and control the send receive direction of the RS 485 network In this manner the application programmer does not have to worry about the send receive direction control for the RS 485 network 4 6 3 To Send a Command to an l 7000 module The commands used for I 7000 series modules are very different from those of the I 7188XC D but commands can be sent from the l 7188XC D to a l 7000 module using the ToCom function l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 58 Using COM1 COM2 to connect and control l 7000 modules The procedure for I 7000 related applications is as follows step 1 The I 7188XC D sends a command string to the l 7000 series modules Step 2 The destination l 7000 modules execute the command step 3 The destination l 7000 modules delay by 1 byte to allow for setting time Step 4 The destination l 7000 modules echo the result string back to the I 7188XC D Note The delay time used in step 3 is only 1 byte I 7188XC D E cru ODDDOODODOOOOOOD O a O Oa ao oO oa c Se Vs Connect to the M Power supply GND 0 o RS 485 Data Data Power supply am 9 Maa ac AN GND H E MULLALLDLTLLTLAL LLLI ILL l 7188XC D I 7000 The example code for sending a command to COM2 RS 485 is shown below l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 59 int portz2 t
109. the upload to finish The image file will be stored in the SRAM step 7 Type the bios1 command in the I 7188XC D command line 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 USUS 1 32 C0M 1 115200 N8 8 1 FC CT30 DIE lt 171883C103_image 17188XC upload Press ALT E to download file Input filename xc050628 1mg Load f11e xc050628 1mg crc z147D 0000 Send file info total 256 blocks Block 256 ransfer time 1s 12 562000 seconds CRC162871A 1000 FFFE27188 i7188xGb1 os1_ Y z zz 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 cy FLGGE A 1 32 COM1 115200 0 6 1 FC 0 C TSS DIRSC AF PUO WS image 17188XC gt bios1 1n10s7 for 7188XC 7521 Ver 2 00 002 date 06 28 2005 Checking CRC 16 0K vait WDT reset system 1 7 188xXC gt l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 96 Step 9 Type the ver command to check the MiniOS7 version number 71882 W 1 32 C 0M 1 115200 N8 8 1 FC0 C T53 DIERE W1885C103_image 1 188XC ver CP DAS M1n10S7 for I 7188XC Ver 2 00 build 002 Jun 28 2005 14 50 52 SRAM 128K FLASH MEMORY 512K CPU RDC 8820 D T internal WDT 1s ENABLED WDT timeout 0 8 sec l i7188XC gt _
110. ti byte of data to the EEPROM l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 109 Block 0 to 7 a total of 8 blocks Addr 0 to 255 each block can contain 256 bytes no 1 to 16 Data The start address of buffer that the data is stored 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 EE WriteProtect Function Sets the EEPROM to write protect mode syntax void EE WriteProtect void Header include 7188xc h Description Sets the EEPROM to write protect mode The EEPROM Is in write protect mode by default EE WriteEnable must be called before writing data to the EEPROM After writing the data it is recommended that EE WriteProtect be called to return the EEPROM to write protect mode Example Please refer to EE WriteEnable for an example EE MultiRead Function Reads data from the EEPROM syntax int EE MultiRead int StartBlock unsigned StartAddr int no char databuf Header X include 7188xc h Description Reads multi byte data from the EEPROM otartBlock 0 to 7 a total of 8 blocks StartAdadr 0 to 255 each block can contain 256 bytes no 1 to 2048 databuf The address to store data 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 WriteEnab
111. to1 000 000 erase write cycles so it should not be changed frequently when testing The EEPROM can be erased written in a single byte so it is very useful in real world applications The l 7188XC D has 2K bytes of EEPROM memory containing 8 blocks and each block contains 256 bytes giving a total of 2048 bytes of 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 For example To write data to EEPROM block1 address 10 first call the EE WriteEnable function The code is shown below Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 63 int data 0x55 data2 InitLib Initiate the 7188xc library EE WriteEnable EE MultiWrite 1 10 1 amp data EE WriteProtect EE MultiRead 1 10 1 amp data2 now data2 data 0x55 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 7188XC Demo BC_TC Memory folder for more information l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 64 4 9 Using the Watchdog Timer The watchdog timer of the I 7188XC D is fixed at 0 8 seconds for MiniOS7 2 0 When the I 7188XC D is first powered on the watchdog timer will be always enabled If the watchdog timer is
112. unction printf in the C language Return The character number to be sent out Example Please refer to Kbhit for an example l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 102 Type 2 COM port Function Description Y Installs the COM Port driver The COM Port number is not InstallCom assigned InstallCom1 Installs the driver for COM1 InstallCom2 Installs the driver for COM2 Bastsllconm Uninstalls the drivers for the COM Port The COM Port number is not assigned RestallCom1 Uninstalls the driver for COM1 Assigned to COM1 RestallCom2 and etc are similar ICom Check if Com has data The COM Port number is not sCom assigned The COM Port number is not assigned ReadCom eade the data from COM Port buffer The COM Port number is not assigned HeadCom1 Reads data from the COM buffer HeadCom2 Reads data from the COM buffer ToCom Sends data to the COM Port The COM Port number is not assigned The COM Port number is not assigned There are more functions available for use with COM More Ports Please refer to the 7188xc h file and CD Napdos MiniOS7 document Liob_ Manual For 7188XABOndex htm Note he Print and printCom function cannot be used simultaneously in the same program l 7188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 103 e InstallCom Function Installs the driver for the COM Port syntax int InstallCom int port unsigned long baud
113. ured remove R21 If DI3 is reconfigured remove R22 If DI2 is reconfigured remove R23 Then the onboard DI DO functions can be disabled Step 2 Install a 5 pin male reconfiguration jumper into the TPO of the I 7188XC D step 3 Design a 5 pin female reconfiguration jumper in an expansion board for connection to TP1 Then the external signals from pin 4 to pin 8 can be connected to an expansion board The user can refigure these 5 D I O pins to their special requirements now Note If the DO2 is reconfigured to DI its initial state must be High If its initial state is Low system clock will be reduced to 10M So all clock related libraries would only be at half speed Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 73 The X100 is an 8 DI channels board designed for the I 7188XC D It removes all 5 resistors R19 to R23 and reconfigures all these pins as DI pins It installs another 5 pin female reconfiguration jumper into TP1 of the I 7188XC D Therefore user can select the original 3 DO 2 DI functions or new 5 DI functions by setting the jumper in different positions Refer to I O Expansion Bus for 7188X 7188E User s Manual for more detailed information 4 12 3 I O Expansion Boards I O Expansion Boards for prototyping and testing Prototype Board 1 1 10 O X002 Prototype Board X003 Self test I O Expansion Boards for DI and DO X104 8 DI channels or 8 DO channels each channel can be o
114. ut library functions such as Getch Scanf and Linelnput will allow the main control unit to read keyboard input from a Host PC 7188xw exe location The 7188xw exe is located in the CD Napdos MiniOS7 utility folder or at http ftp icpdas com pub cd 8000cd napdos minios 7 utility on the web 7188xw exe command line ee E E for MiniOS7 Description Uses COM of the Host PC l Sets the Baud Rate for the COM port on the Host PC default is 115200 t Sets the number of display rows on the screen default is 25 Sit max is 50 7188xw exe Hot key Shows the 7188xw exe help messages Shows the 7188xw exe help messages using the Chinese Big5 tr character set Shows the 7188xw exe help messages using the Chinese Cirl F1 GB2312 character set Alt 1 Uses COM1 on the Host PC Il 188XC Series User s Manual Ver 1 2 Feb 2014 7MH 021 10 89 Alt 2 Uses COM2 on the Host PC E y E Tr NLT uu E Alt A owitches between normal mode and ANSI Escape code support 7 mode Alt_C switches to command mode Supports commands b Sets a new Baud Rate for the COM ports on the Host PC c Uses COM on the Host PC n e o Sets the parity to none even odd 5 6 7 8 Sets the data bits to 5 6 7 8 p Sets working directory of the Host PC q Quits command mode Alt_D Sets the date of the RTC to the date on the Host PC Alt_T Set the time of the RTC to the time on the Host PC Used to download a file to memory Alt_
Download Pdf Manuals
Related Search
Related Contents
Getting Started with Eudora 5.1 for Windows Dossier d`installation aspiration-ventilation Schrittmotorsteuerung PSPCI mit Leistungsplatine für 5-Achsen Panel PC Magelis - Universal y Performance DANGER WARNING CAUTION Por favor haga clic aquí para descargar manual de Instalación y VaVeliero CIP5A03 mobile phone case GGM.D014 Square Table Alarm_IS_11.13.indd 20-COMM-E EtherNet/IP Adapter User Manual TM 9-2510-247-13&P - Liberated Manuals Copyright © All rights reserved.
Failed to retrieve file