Compaq EN Series Personal Computer User Manual


 
Technical Reference Guide
Compaq Deskpro EN Series of Personal Computers
Desktop and Minitower Form Factors
Third Edition - September 1998
5-15
5.4.2 SERIAL INTERFACE PROGRAMMING
5.4.2.1 Serial Interface Configuration
The serial interfaces must be configured for a specific address range (COM1, COM2, etc.) and
also must be activated before it can be used. Address selection and activation of the serial
interface are affected through the PnP configuration registers of the 87307 I/O controller.
The PnP configuration registers are accessed through I/O registers 15Ch (index) and 15Dh
(data). Each serial interface is initiated by firmware selecting logical device 5 or 6 of the 87307.
This is accomplished by the following sequence:
1. Write 07h to I/O register 15Ch.
2. Write 05h or 06h to I/O register 15Dh (for selecting UART2 or UART1).
3. Write 30h to I/O register 15Ch.
4. Write 01h to I/O register 15Dh (this activates the interface).
The serial interface configuration registers are listed in the following table:
Table 5–10
. Serial Interface Configuration Registers
Table 5-10.
Serial Interface Configuration Registers
Index
Address Function R/W
Reset
Value [1]
30h Activate R/W 00h / 00h
31h I/O Range Check R/W 00h / 00h
60h Base Address MSB R/W 02h / 03h
61h Base Address LSB R/W F8h / F8h
70h Interrupt Select R/W 03h / 04h
71h Interrupt Type R/W 03h / 03h
74h DMA Channel Select R/W 04h / 04h
75h Report DMA Assignment RO 04h / 04h
F0h Configuration Data R/W --
NOTES:
[1] Device 5 (UART2) / Device 6 (UART1)