4.2 Debugging custom Programs using COM1
The COM1 Port (download port) of the I-7188XC(D) has three major
functions.
Downloading programs from the Host PC
Connecting to the Host PC to enable program debugging
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
:
Start Bit=1, Data Bit=8, Stop Bit=1, no parity
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 I-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)
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)
Switch on the power for the Host PC and execute the 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 I-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 I-7188XC(D)
will revert to console mode to allow the user to download/debug a
program.
After completing the initialization stage, the I-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
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
48
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...