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
The function calls included in the directory LIBRARY are described in the following pages.

comm_init