Function Description:
LED ON/OFF control
Parameter Description
int type 0: LED OFF
1: LED ON
wdt_enable
Syntax:
wdt_enable()
Function Description:
This function enables the watchdog timer function. After a user calls this function, the user must
call the wdt_clear() function to refresh the watchdog timer; otherwise the CPU resets, or a non-
maskable interrupt is generated.
wdt_clear
Syntax:
wdt_clear()
Function Description:
This function refreshes the watchdog timer, thereby avoiding the resetting of the CPU or the
generation of a non-maskable interrupt.
wdt_disable
Syntax:
wdt_disable()
Function Description:
This function disables the watchdog timer function.
Appendix A Register Structure
This appendix gives a short description of each of the ADAM-4500's registers. For more
information please refer to the data book for the STARTECH 16C550 UART chip.
All registers are one byte in length. Bit 0 is the least significant bit, and bit 7 is the most significant
bit. The address of each register is specified as an offset from the port base address (BASE),
COM1 is 3F8h and COM2 is 2F8h.
DLAB is the "Divisor Latch Access Bit", bit 7 of BASE+3.