![rtd GPS6185HR User Manual Download Page 25](http://html1.mh-extra.com/html/rtd/gps6185hr/gps6185hr_user-manual_1497537025.webp)
Page 25 of 32
Software Programming
Device I/O Map
The GPS6185HR is an I/O mapped device. The each serial port GPS6185HR occupies eight
bytes of host PC I/O space. This window is freely selectable by the user as defined by the base
address jumper settings. After setting the base address the user has access to the internal
resources of the GPS6185HR control logic. These resources are not described in detail, since
they are mapped as a standard PC serial port. A reference for programming serial port UARTs
can be found in the chapter titled “Additional Information” at the end of this manual.
The I/O map of the GPS6185HR is shown in below. As shown, the module occupies
two blocks of eight addresses. The Base Address (designated as BA) can be set using
the jumpers as described in Chapter 2 (Board settings). The following sections describe
the register contents of each address used in the I/O map.
GPS6185HR I/O Map
Write
Read
Address
GPS COM1
DTR is used to reset the GPS
GPS COM1
GPS BA + 0h
GPS BA + 7h
GPS COM2
GPS COM2
COM BA + 0h
COM BA + 7h
N/A
Read RTD ID data
GPS BA + 400h
N/A
Read RTD ID data
GPS BA + 401h
N/A
Reset RTD ID Pointer
GPS BA + 402h
GPS Control
GPS Status
GPS BA + 403h
Set Digital Outputs 1-8
Digital I/O 1-8
GPS BA + 404h
Set Digital Outputs 9-16
Digital I/O 9-16
GPS BA + 405h
Set Direction Bits 1-8
Read Direction Bits 1-8
GPS BA + 406h
Set Direction Bits 9-16
Read Direction Bits 9-16
GPS BA + 407h
GPS BA = Base Address of GPS UART
COM BA = Base Address of COM UART (Jumper selected to GPS COM2)
GPS6185 Control/Status
GPS BA + 403h Control/Status
(Write/Read, 8-bit)
Write
Bit 0
Serial Port CN6 Protocol
0 = RS-232
1
=
RS-422/485
Bit 1-7 Reserved (write as 0)