background image

PCIe-COM-4SMDB and RJ Family Manual 

15

Chapter 5: Programming

 

 

Sample Programs

 

  

There are sample programs with source-code provided with the card in a variety of common 
languages. DOS samples are located in the DOS directory and Windows samples are located 
in the WIN32 directory. 

 

 

Windows COM Utility Program

 

 

WinRisc is a COM utility program provided on CD with the installation package for this card 
that is very useful when working with any serial ports and serial devices.  If you haven’t used 
this program yet, do yourself a favor and run this program to test your COM ports. 

 

Windows Programming

 

 

The card installs into Windows as COM ports so standard API functions can be used. 
 

 

See the documentation for your chosen language for details.  
In DOS the process is identical to programming 16550- compatible UARTs. 
 

 

Baud Rate Generation 

The built-in Baud Rate Generator (BRG) allows a wide range of input frequency and flexible 
Baud Rate generation. To obtain the desired Baud Rate, the user can set the Sample Clock 
Register (SCR), Divisor Latch Low Register (DLL), Divisor Latch High Register (DLH) and 
Clock Prescale Registers (CPRM and CPRN). The Baud Rate is generated according to the 
following equation: 

 

The parameters in the equation above can be programmed by setting the “SCR”, “DLL”, 
“DLH”, “CPRM” and “CPRN” registers according to the table below. 
 

Setting  

Description

 

Divisor 

DLL + (256 * DLH) 

Prescaler 2

M-

1

 *(Sampl 

N

SampleClock 16 - 

SCR 

, (SCR = ‘0h’ to ‘Ch’) 

CPRM, (CPRM = ‘01h’ to ‘02h’)

CPRN, (CPRN = ‘0h’ to ‘7h’) 

Table 5-1: Baud Rate Generator Setting 

 

Содержание PCIe-COM-2SDB

Страница 1: ...ODELS PCIe COM 4SMDB PCIe COM 4SMRJ PCIe COM 4SDB PCIe COM 4SRJ PCIe COM232 4DB PCIe COM232 4RJ PCIe COM 2SMDB PCIe COM 2SMRJ PCIe COM 2SDB PCIe COM 2SRJ PCIe COM232 2DB PCIe COM232 2RJ PCI Express 4 and 2 Port RS 232 422 485 Serial Communication Cards USER MANUAL FILE MPCIe COM 4SMDB and RJ Family Manual A1d ...

Страница 2: ...hts of ACCES nor the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 2010 by ACCES I O Products Inc 10623 Roselle Street San Diego CA 92121 All rights reserved WARNING ALWAYS CONNECT AND DISCONNECT YOUR FIELD CABLING WITH THE COMPUTER POWER OFF ALWAYS TURN COMPUTER POWER OFF BEFORE INSTALLING A CARD CONNE...

Страница 3: ... labor or parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable rates similar to those of other manufacturers in the industry Equipment Not Manufactured by ACCES Equipment provided but not manufactured by ACCES is warranted and will be repaired according ...

Страница 4: ...nector 12 Factory Option Descriptions 13 Fast RS 232 transceivers F 13 Remote Wake Up W 13 Extended temperature T 13 RoHS compliance RoHS 13 Chapter 4 Address Selection 14 Chapter 5 Programming 15 Sample Programs 15 Windows COM Utility Program 15 Table 5 1 Baud Rate Generator Setting 15 Table 5 2 Sample Baud Rate Setting 16 Chapter 6 Connector Pin Assignments 17 Input Output Connections 17 Table 6...

Страница 5: ...ct directly to the industry standard DB9M connectors or via RJ45 connectors The board features a x1 lane PCI Express connector which can be used in any length PCI Express slot Features Four and two port PCI Express serial communication cards with on board DB9M or RJ45 connectivity Serial protocol RS 232 422 485 SOFTWARE CONFIGURED per port stored in EEPROM for auto configure at next boot High perf...

Страница 6: ...sking operating systems to help reduce CPU utilization and to improve data throughput Serial protocol RS 232 422 485 is software configured per port via a Port Configuration Utility provided on the CD which ships with each card When RS 485 is selected jumper selectable termination is provided per port Four port DB models PCIe COM 4SMDB PCIe COM 4SDB PCIe COM232 4DB ship with a additional mounting ...

Страница 7: ... 422 485 PCIe COM 2SDB PCI Express two port RS 422 485 PCIe COM 2SRJ PCI Express two port RS 422 485 PCIe COM232 2DB PCI Express two port RS 232 PCIe COM232 2RJ PCI Express two port RS 232 DB DB9M connectivity RJ RJ45 connectivity Four port DB models require the use of a provided additional mounting bracket Model Options T Extended temp operation 40 to 85 C F Fast version RS 232 up to 921 6kbps Ro...

Страница 8: ...tal oscillator may be specified contact factory with your precise requirement Examples of special orders would be conformal coating custom software etc we will work with you to provide exactly what is required Included with your board The following components are included with your shipment depending on options ordered Please take the time now to ensure that no items are damaged or missing Four or...

Страница 9: ...refer to this document for extensive information and guidance on software tools and programming support at your disposal CD Software Installation The following instructions assume the CD ROM drive is drive D Please substitute the appropriate drive letter for your system as necessary DOS 1 Place the CD into your CD ROM drive 2 Type B to change the active drive to the CD ROM drive 3 Type GLQR JJ to ...

Страница 10: ...the card and install and tighten the mounting bracket screw Make sure that the card mounting bracket is properly screwed into place and that there is a positive chassis ground 6 Four port DB model cards use a header to DB9M cable accessory that installs in an adjacent mounting bracket slot location Install this and tighten screw Figure 2 1 Port Configuration Utility Screenshot 7 Replace the comput...

Страница 11: ...er selectable options for this card are for applying a termination load to the RS 485 lines Channel protocols are selected via software Figure 3 1 Option Selection Map DB Models DB9M connector DB models use an industry standard 9 pin Male D Subminiature connector with screw locks ...

Страница 12: ...PCIe COM 4SMDB and RJ Family Manual 12 Figure 3 2 Option Selection Map RJ Models RJ45 connector RJ models use an industry standard 8P8C modular jack ...

Страница 13: ...s Remote Wake Up W The Remote Wake Up factory option is for use in RS232 mode when your PC enters the L2 low power state When the Ring Indicator is received on serial port COM A in the L2 power state Wake Up is asserted Extended temperature T This factory option is for use in harsh environments and is populated with all industrial rated components specified at a minimum temperature range of 40 C t...

Страница 14: ...M 4SMRJ card is 10DAh The Device ID for the PCIe COM 4SDB card is 105Ch The Device ID for the PCIe COM 4SRJ card is 105Ch The Device ID for the PCIe COM232 4DB card is 1099h The Device ID for the PCIe COM232 4RJ card is 1099h The Device ID for the PCIe COM 2SMDB card is 10D1h The Device ID for the PCIe COM 2SMRJ card is 10D1h The Device ID for the PCIe COM 2SDB card is 1050h The Device ID for the ...

Страница 15: ...PI functions can be used See the documentation for your chosen language for details In DOS the process is identical to programming 16550 compatible UARTs Baud Rate Generation The built in Baud Rate Generator BRG allows a wide range of input frequency and flexible Baud Rate generation To obtain the desired Baud Rate the user can set the Sample Clock Register SCR Divisor Latch Low Register DLL Divis...

Страница 16: ... a specific Baud Rate The examples assume an Input Clock frequency of 14 7456 Mhz The SCR register is set to 0h and the CPRM and CPRN registers are set to 1h and 0h respectively In these examples the Baud Rates can be generated by different combination of the DLH and DLL register values Baud Rate DLH DLL 1 200 3h 00h 2 400 1h 80h 4 800 0h C0h 9 600 0h 60h 19 200 0h 30h 28 800 0h 20h 38 400 0h 18h ...

Страница 17: ...PIN RS 232 RS 422 and 4 Wire RS 485 2 Wire RS 485 1 DCD TX 2 RX TX 3 TX RX TX RX 4 DTR RX TX RX 5 GND GND GND 6 DSR 7 RTS 8 CTS 9 RI Table 6 1 DB9 Male Connector Pin Assignments Figure 6 1 DB9 Male Connector Pin Locations PIN RS 232 RS 422 and 4 Wire RS 485 2 Wire RS 485 1 DSR 2 DCD TX 3 DTR RX TX RX 4 GND GND GND 5 RX TX 6 TX RX TX RX 7 CTS 8 RTS Table 6 2 RJ45 Connector Pin Assignments Figure 6 ...

Страница 18: ... Terminal Ready RX Receive Data GND Signal Ground GND Signal Ground DSR Data Set Ready RTS Request To Send CTS Clear to Send RI Ring Indicator Table 6 3 COM signal names to corresponding signal descriptions To ensure that there is minimum susceptibility to EMI and minimum radiation it is important that the card mounting bracket be properly screwed into place and that there be a positive chassis gr...

Страница 19: ...e transmit receive FIFO 16C550 compliant Character length 5 6 7 8 or 9 bits Parity Even Odd None Space Mark Stop interval 1 1 5 or 2 bits Flow Control RTS CTS and or DSR DTR Xon Xoff ESD Protection 15kV on all signal pins Environmental Operating temp Commercial 0 C to 70 C Industrial 40 C to 85 C Storage temp 65 C to 150 C Humidity 5 to 95 non condensing Power required 3 3VDC 0 8W typical Size 4 7...

Страница 20: ...th this manual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623 Roselle Street San Diego CA 92121 Tel 858 550 9559 FAX 858 550 7322 www accesio com ...

Отзывы: