5-4
104-422/485-2I User’s Guide
See the documentation for your chosen language for details.
Under DOS, the process is very different. The remainder of this chapter describes DOS
programming.
ä
ä
ä
ä
Initialization
Initializing the chip requires knowledge of the UART's register set. The first step is to set the
baud rate divisor. You do this by first setting the DLAB (Divisor Latch Access Bit) high. This bit is
Bit 7 at Base A3. In C code, the call would be:
outportb(BA3,0x80);
You then load the divisor into Base A0 (low byte) and Base A1 (high byte). The
following equation defines the relationship between baud rate and divisor:
desired baud rate = (crystal frequency) / (32 * divisor)
The UART clock frequency is 1.8432MHz. The following table lists popular divisor frequencies.
Table 5-2. Baud Rate Divisors
Baud Rate
Divisor (X1)
Notes
Max. Diff’l.
Cable Length*
460800
N/A
500 ft.
230400
N/A
800 ft.
153600
N/A
1300 ft.
115200
1
2200 ft.
57600
2
4000 ft.
38400
3
4000 ft.
28800
4
4000 ft.
19200
6
4000 ft.
14400
8
4000 ft.
Содержание 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...