Example:
main ()
{
wdt_enable();
/* enable ADAM-4500 WDT function */
{
/*
user's
function
block
*/
.
.
wdt_clear();
/* clear WDT timer */
.
.
}
wdt_disable();
/* disable ADAM-4500 WDT function */
}
Interrupt Types
Three types of interrupts may occur in the ADAM-4500. The following table shows the types of interrupts.
Interrupt
Name
Interrupt
Type
Non-Maskable Interrupt (NMI) 02h
COM1
Interrupt
0Ch
COM2
Interrupt
0Eh
Memory Mapping
The following table shows the memory mapping of the ADAM-4500 controller.
0xF8000 -- 0xFFFFF
Monitor program
0xF6C00 -- 0xF7FFF
Mini BIOS
0xCC000
Start of Application ROM Disk (about 171 K)
0xC0000
Start of ROM-DOS (about 48 K)
0x40000 -- 0xBFFFF
No Use
0x00400 -- 0x3FFFF
SRAM area
0x00000 -- 0x003FF System area
0x003F8 -- 0x003FF COM1
0x002F8 -- 0x002FF COM2
0x00070 -- 0x00071 Real time clock
3.2 Downloading and Transferring
This section explains how to download application programs from a PC into the ADAM-4500 flash ROM
and how to transfer files from a PC into ADAM-4500's SRAM.
Install Utility Software on Host PC
A utility disk containing the following files and directories is included with each ADAM-4500.
. ALLFILE
<DIR>
. LIBRARY
<DIR>
. EXAMPLE
<DIR>
. ADAMMINI.HEX
. ADAM_DEM.HEX
. ROM-DOS.HEX
. DEMO-DIS.HEX
. ADAMMINI.BAT
. ADAM4500.EXE
. HEXCAT.EXE
. ROMDISK.EXE
Copy all the files and directories on the utility disk to the host computer hard drive.