Quatech DS-102 user manual Setting the address, Examination of a serial port base address

Page 10

III. ENABLING AND ADDRESSING PORTS

Setting the address

Each serial port on the DS-102 uses 8 consecutive I/O locations in the range of 0000 hex to 07FF hex. The base address of each port is set using a DIP switch pack on the DS-102. When setting the address selection switches, a switch in the "ON" position specifies that the corresponding address line must be a logic 0 for the port to be selected. Similarly, a switch in the "OFF" position forces the corresponding address line to be a logic 1 for the port to be selected.

Switch SW1 selects address lines A10 through A3 for Serial 1. Switch SW2 serves the same purpose with respect to Serial 2. The remaining address lines (A2, A1 and A0) are used by the UART to select the register being accessed. Address lines A11 through A15 must be at logic 0 for a port to be selected. The serial ports may be independently enabled or disabled by installing or removing a jumper from jumper pack J4.

Figure 3 shows how the switches on the DS-102 represent the address values for serial ports. This figure can be used to explain the examples shown in Figure 4.

A serial port's address is a 16-bit quantity that is most often expressed

in four hexadecimal (base 16) digits. A hex digit can hold a value from 0 to 15 (decimal), and is made up of four binary bits given weights of eight, four, two, and one, hence the maximum value of 8+4+2+1 = 15.

A common serial port address is 03F8 hex. The example below shows how the hex digits are broken down into binary bits.

Binary bits

0

0

0

0

0

0

1

1

1

1

1

1

1

0

0

0

Bit weight

8

4

2

1

8

4

2

1

8

4

2

1

8

4

2

1

Sum of bits

0+0+0+0

0+0+2+1

8+4+2+1

8+0+0+0

Hex digits

 

0

 

 

 

 

3

 

 

F

 

 

 

8

 

 

These address bits are set by the switches.

All other bits are considered to be zero.

0 0 0 0

0 0 1 1

1 1 1 1

1 0 0 0

 

 

 

 

 

 

 

 

Figure 3 --- Examination of a serial port base address

4

Quatech DS-102 User's Manual

Image 10
Contents DS-102 Page Table of Contents IV. Setting Interrupt Levels IrqsVII. Specifications VIII. Troubleshooting External Connections VI. Serial Port Functional DescriptionPage Date of Purchase Model Number Page General Information Port Address IRQ Enabled ? Diagram of DS-102 Setting the address Examination of a serial port base addressSerial 1 uses SW1 Serial 2 uses SW2 Enabling or disabling ports Recommended addresses for serial portsThis page intentionally left blank Serial Interrupt Sharing Channel Connection Interrupt OperationExternal Connections J7 -- Serial J8 -- Serial DS-102 connector definitions for RS-232-C This page intentionally left blank VI. Serial Port Functional Description Accessing the Serial Port registers DlabInterrupt Enable Register Interrupt Identification RegisterInterrupt Identification Register bit definitions Fifo Control Register 16550 only RXT0Line Control Register Stkp EPS PEN ParityModem Control Register Are being usedLine Status Register Line Status Register bit definitionsModem Status Register Scratchpad RegisterFifo Interrupt Mode Operation 16550 Uart only When the receiver Fifo and receiver interrupts are enabledFifo polled mode operation 16550 Uart only Factory default Baud Rate Selection026 VII. Specifications 16450 16550 optionalComputer will not boot up