ADAM-4500's D drive for testing prior to burning it into the flash ROM. It takes less time to alter and
reinstall a program into the SRAM than into the flash ROM, so using the SRAM during debugging on the
ADAM-4500 may be more efficient.
3.3 Steps to Building a Successful Application
Step 1: Write and simulate control logic on a PC
Connect a host-PC to the I/O device network you want to control. Write the control logic for your
application on the host-PC and execute the application on the PC to verify that it works properly.
Step 2: Connect the cables
Replace the host-PC in the control network with the ADAM-4500 and reconnect the proper power and
communications cable in the network to the ADAM-4500. Connect the download cable between the host-
PC and the ADAM-4500.
Step 3: Convert and download codes to flash ROM
Within the host computer, convert the application program into 80186 or 80188 compatible code. Create
an AUTOEXEC.BAT file for the application program and write the application program's name in the
AUTOEXEC.BAT file. Also create COMMAND.COM and CONFIG.SYS files for the application program.
Load the ADAM-4500 utility software into the host-PC. Load the converted application program and the
files AUTOEXEC.BAT, COMMAND.COM, and CONFIG.SYS into directory ALLFILE. Execute the utility
software to download the contents of ALLFILE into the ADAM-4500 flash ROM.
Step 4: Power on ADAM-4500 to complete the application
After all the files in directory ALLFILE have been completely transferred to the flash ROM, re-power on
the ADAM-4500.
Chapter 4 Function Library
The ADAM-4500 is packaged with a utility disk that contains a directory called LIBRARY. This directory
contains a number of function calls that enable a user to efficiently write applications for ADAM-4500. The
library supports both Turbo C 2.0 and Microsoft C 6.0 version programming languages.
The "LIBRARY" directory contains the following two sub-directories:
. TC20
Library for Turbo C 2.0 version
. MSC60
Library for Microsoft C 6.0 version
Function Library for Turbo C
The TC20 directory contains the following files:
ADAM4500.H
Declaration
file
4500L.LIB
Library file for compiling large mode
4500S.LIB
Library file for compiling small mode
Function Library for Microsoft C
The MSC60 directory contains the following files:
ADAM4500.H
Declaration
file
4500L.LIB
Library file for compiler large mode
4500C.LIB
Library file for compiler compact mode
4500M.LIB
Library file for compiler medium mode
4500S.LIB
Library file for compiler small mode