Overview 5-3
104-422/485-2I User’s Guide
Pr
ogr
am
m
ing
ä
ä
ä
ä
Overview
A total of 32 address locations are allocated to the 104-422/485-2I, 17 of which are used. The
UARTs are addressed as follows:
Table 5-1. Address Selection
The Read / Write registers for the UARTs match the industry-standard 16550 registers. The Card
IRQ status register is compatible with Windows NT. COM A will set bit 0 hi on interrupt, COM B will
set bit 1 hi on interrupt.
ä
ä
ä
ä
Sample Programs
There are sample programs provided with the 104-422/485-2I card in C, Pascal, QuickBASIC, and
several Windows languages. DOS samples are located in the DOS directory and Windows samples
are located in the WIN32 directory.
ä
ä
ä
ä
Windows Programming
The 104-422/485-2I card installs into Windows as COM ports. Thus the Windows standard API
functions can be used. In particular:
J
CreateFile() and CloseHandle() for opening and closing a port.
J
SetupComm(), SetCommTimeouts(), GetCommState(), and SetCommState() to set
and change a port’s settings.
J
ReadFile() and WriteFile() for accessing a port.
I/O Address
Read
Write
Base +0 thru 7
COM A UART
COM A UART
Base +8 thru F
COM B UART
COM B UART
Base +10h
Card IRQ Status
N/A
Содержание 104-422-2I
Страница 1: ...www kontron com 104 422 485 2I User s Guide Manual PN 931 0071 00 A November 2002...
Страница 6: ...vi 104 422 485 2I User s Guide This page intentionally left blank...
Страница 10: ...x 104 422 485 2I User s Guide This page intentionally left blank...
Страница 12: ...xii 104 422 485 2I User s Guide This page intentionally left blank...
Страница 20: ...xx 104 422 485 2I User s Guide This page intentionally left blank...
Страница 44: ...Chapter 4 Connector Pin Assignments Contents Overview 4 3 Connector Pin Assignments 4 3...