Access PCIe-COM232-8 Скачать руководство пользователя страница 13

PCIe-COM232-8 User Manual 

13 

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 out your COM ports. 

 

Windows Programming

 

 

The card installs into Windows as COM ports. Thus the Windows standard API functions can 
be used. In particular: 
 

►CreateFile() and CloseHandle() for opening and closing a port. 
►SetupComm(), SetCommTimeouts(), GetCommState(), and SetCommState() to set 
and change a port’s settings. 
►ReadFile() and WriteFile() for accessing a port. 

 

 

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-COM232-8

Страница 1: ...n Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com MODELS PCIe COM232 8 and PCIe COM232 4 PCI Express Multi Port Low Profile Serial Communications Cards USER MANUAL F...

Страница 2: ...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 2009 by ACCES I O Products Inc 10623 Rosell...

Страница 3: ...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 reasonab...

Страница 4: ...cket L 10 Remote Wake Up W 11 Extended temperature T 11 RoHS compliance RoHS 11 VHDCI connector 11 Chapter 4 Address Selection 12 Chapter 5 Programming 13 Sample Programs 13 Windows COM Utility Progra...

Страница 5: ...communications Low profile MD1 form factor MD1 defines the shortest standard card length available High performance 16C950 class UARTs with 128 byte FIFO for each TX and RX Supports data communication...

Страница 6: ...rengthening bracket accessory The industrialized strengthening bracket accessory protects against damage to the very high density I O card mounted connector when side to side tension can occur on the...

Страница 7: ...standard card see Table 5 2 Sample Baud Rate Setting and still be within the standard tolerance range for serial communications If that method doesn t produce an exact enough baud rate a custom cryst...

Страница 8: ...ase 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...

Страница 9: ...screw Make sure that the card mounting bracket is properly screwed into place and that there is a positive chassis ground 6 Install a cable onto the card s bracket mounted connector 7 If you purchased...

Страница 10: ...rs used are capable of speeds up to 460 8kbps which is adequate in many applications For this factory option the board is populated with high speed RS 232 transceivers enabling error free communicatio...

Страница 11: ...ower 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 rang...

Страница 12: ...These COM designations correlate to the corresponding DB9 on breakout cable which are labeled as such Please note for 4 port card versions the ports will be installed as COM A COM B COM C and COM H T...

Страница 13: ...pComm SetCommTimeouts GetCommState and SetCommState to set and change a port s settings ReadFile and WriteFile for accessing a port See the documentation for your chosen language for details In DOS th...

Страница 14: ...60h 19 200 0h 30h 28 800 0h 20h 38 400 0h 18h 57 600 0h 10h 115 200 0h 08h 921 600 0h 01h Table 5 2 Sample Baud Rate Setting We re define the parameter of Baudrate on DCB structure Bit 30 28 User Def...

Страница 15: ...nt that the card mounting bracket be properly screwed into place and that there be a positive chassis ground Also proper EMI cabling techniques cable connect to chassis ground at the aperture shielded...

Страница 16: ...19 23 27 31 5 331 331 331 331 672 672 672 672 6 38 42 46 50 54 58 62 66 7 35 39 43 47 51 55 59 63 8 36 40 44 48 52 56 60 64 9 4 8 12 16 20 24 28 32 Table 6 2 VHDCI 68 Pin Female D Connector Pin Assig...

Страница 17: ...compliant Character length 5 6 7 or 8 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 Cable 3 sh...

Страница 18: ...s 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 1062...

Отзывы: