20F216-00 E5 User Manual - Diamond Point International

20F216-00 E5 User Manual - Diamond Point International

20F216-00 E5 – 2014-01-14

User Manual

F216 - 3U CompactPCI®

Octal UART

Configuration example

F216 - 3U CompactPCI® Octal UART

F216 - 3U CompactPCI® Octal UART

The F216 is an octal UART I/O board based on 3U CompactPCI®. Two UART controllers provide four full-duplex serial channels each. The physical layers are integrated on the board: each of the eight channels can be individually configured as single-ended RS232 or differential RS422 or RS485. The default setting is RS422.

The UART controller supports high data rates up to 921 600 bit/s, depending on the physical interface type. Its register set is fully 16550D compatible, even with larger,

60-byte FIFOs.

Each channel of the F216 has its own 500V isolation, with all ports being available on one 78-pin D-Sub connector. An adapter cable is also available to spread the 78pin connector to eight standard 9-pin D-Sub connectors.

The F216 is designed for use in rugged environments. For example, all components are specified for an operating temperature of -40 to +85°C. The card easily expands

CompactPCI® systems by an additional eight UARTs on 4 HP where the CPU does not provide enough COM interfaces.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

2

Diagram

Diagram

F Front connector

Options

Adapter cable to single 

9‐pin D‐Subs

F

F

F

F

F

F

F

F

F

78‐pin 

D‐Sub

Isolation

State Savers

Line Drivers

Line Drivers

Line Drivers

Line Drivers

RS232/

422/485

Line Drivers

Quad 16550

UART

FPGA

Cyclone™ III

Line Drivers

Line Drivers

Line Drivers

Quad 16550

UART

Serial

Flash

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

3

Technical Data

Technical Data

UART Interfaces

• Eight RS232/RS422/RS485 UARTs

• Software-configurable

• Default at start-up: RS422, can be customized through non-volatile state saver

• Two 16Z125_UART controllers with four UARTs each

• Data rates:

- Up to 921,600 bit/s with RS422/RS485

- Up to 230,400 bit/s with RS232

• 60-byte transmit/receive buffer

• Handshake lines: full support with RS232

• Full-duplex operation with RS422, half-duplex operation with RS485

• Isolation between channels: 500V

• Accessible on front-panel 78-pin D-Sub connector

Miscellaneous

• Four status LEDs at front panel

- One status LED to signal FPGA configuration (UARTs ready)

- Three user LEDs, FPGA-controlled by 16Z034_GPIO controller

CompactPCI® Bus

• Compliance with CompactPCI® Core Specification PICMG 2.0 R3.0

• Peripheral slot

• V(I/O): +3.3V (+5V tolerant)

Electrical Specifications

• Supply voltage/power consumption:

- +5V (-3%/+5%), 430mA

- +3.3V (-3%/+5%), 170mA

Mechanical Specifications

• Dimensions: conforming to CompactPCI® specification for 3U boards

• Front panel: 4HP with ejector

• Weight: 182g

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

4

Technical Data

Environmental Specifications

• Temperature range (operation):

- -40..+85°C (qualified components)

- Airflow: min. 1m/s

• Temperature range (storage): -40..+85°C

• Relative humidity (operation): max. 95% non-condensing

• Relative humidity (storage): max. 95% non-condensing

• Altitude: -300m to + 3,000m

• Shock: 15g/11ms

• Bump: 10g/16ms

• Vibration (sinusoidal): 2g/10..150Hz

• Conformal coating on request

MTBF

• 96,149h @ 40°C according to IEC/TR 62380 (RDF 2000)

Safety

• PCB manufactured with a flammability rating of 94V-0 by UL recognized manufacturers

EMC

• Conforming to EN 55022 (radio disturbance), IEC1000-4-2 (ESD) and

IEC1000-4-4 (burst)

Software Support

• Driver software for Windows®, Linux, VxWorks®, QNX®

• For more information on supported operating system versions and drivers see online data sheet.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

5

Product Safety

Product Safety

!

Electrostatic Discharge (ESD)

Computer boards and components contain electrostatic sensitive devices.

Electrostatic discharge (ESD) can damage components. To protect the board and other components against damage from static electricity, you should follow some precautions whenever you work on your computer.

• Power down and unplug your computer system when working on the inside.

• Hold components by the edges and try not to touch the IC chips, leads, or circuitry.

• Use a grounded wrist strap before handling computer components.

• Place components on a grounded antistatic pad or on the bag that came with the component whenever the components are separated from the system.

• Store the board only in its original ESD-protected packaging. Retain the original packaging in case you need to return the board to MEN for repair.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

6

About this Document

About this Document

This user manual is intended only for system developers and integrators, it is not intended for end users.

It describes the hardware functions of the board, connection of peripheral devices and integration into a system. It also provides additional information for special applications and configurations of the board.

The manual does not include detailed information on individual components (data sheets etc.). A list of literature is given in the appendix.

History

Issue

E1

E2

E3

E4

E5

Comments

First edition

Minor errors corrected; Windows package available; baud rate parameter values for Linux and VxWorks corrected; 5V V(I/O) added

5V V(I/O) corrected (tolerant, not universal board); note added to chapter 2.2.4.6

Added note in chapter 2.2.4.2

Changes made to chapter 2.2.4.2 UART ports

Date

2008-08-07

2008-12-12

2009-03-19

2010-12-13

2014-01-13

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

7

About this Document

Conventions

!

italics

bold

monospace

comment

hyperlink

IRQ#

/IRQ in/out

This sign marks important notes or warnings concerning the use of voltages which can lead to serious damage to your health and also cause damage or destruction of the component.

This sign marks important notes or warnings concerning proper functionality of the product described in this document. You should read them in any case.

Folder, file and function names are printed in italics.

Bold

type is used for emphasis.

A monospaced

font type is used for hexadecimal numbers, listings, C function descriptions or wherever appropriate. Hexadecimal numbers are preceded by "0x".

Comments embedded into coding examples are shown in green color.

Hyperlinks are printed in blue color .

The globe will show you where hyperlinks lead directly to the Internet, so you can look for the latest information online.

Signal names followed by "#" or preceded by a slash ("/") indicate that this signal is either active low or that it becomes active at a falling edge.

Signal directions in signal mnemonics tables generally refer to the corresponding board or component, "in" meaning "to the board or component", "out" meaning

"coming from it".

Vertical lines on the outer margin signal technical changes to the previous issue of the document.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

8

About this Document

Legal Information

Changes

MEN Mikro Elektronik GmbH ("MEN") reserves the right to make changes without further notice to any products herein.

Warranty, Guarantee, Liability

MEN makes no warranty, representation or guarantee of any kind regarding the suitability of its products for any particular purpose, nor does MEN assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including, without limitation, consequential or incidental damages. TO THE EXTENT APPLICABLE, SPECIFICALLY EXCLUDED ARE ANY IMPLIED

WARRANTIES ARISING BY OPERATION OF LAW, CUSTOM OR USAGE, INCLUDING WITHOUT

LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A

PARTICULAR PURPOSE OR USE. In no event shall MEN be liable for more than the contract price for the products in question. If buyer does not notify MEN in writing within the foregoing warranty period, MEN shall have no liability or obligation to buyer hereunder.

The publication is provided on the terms and understanding that:

1. MEN is not responsible for the results of any actions taken on the basis of information in the publication, nor for any error in or omission from the publication; and

2. MEN is not engaged in rendering technical or other advice or services.

MEN expressly disclaims all and any liability and responsibility to any person, whether a reader of the publication or not, in respect of anything, and of the consequences of anything, done or omitted to be done by any such person in reliance, whether wholly or partially, on the whole or any part of the contents of the publication.

Conditions for Use, Field of Application

The correct function of MEN products in mission-critical and life-critical applications is limited to the environmental specification given for each product in the technical user manual. The correct function of MEN products under extended environmental conditions is limited to the individual requirement specification and subsequent validation documents for each product for the applicable use case and has to be agreed upon in writing by MEN and the customer. Should the customer purchase or use MEN products for any unintended or unauthorized application, the customer shall indemnify and hold MEN and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim or personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that MEN was negligent regarding the design or manufacture of the part. In no case is MEN liable for the correct function of the technical installation where MEN products are a part of.

Trademarks

All products or services mentioned in this publication are identified by the trademarks, service marks, or product names as designated by the companies which market those products. The trademarks and registered trademarks are held by the companies producing them. Inquiries concerning such trademarks should be made directly to those companies.

Conformity

MEN products are no ready-made products for end users. They are tested according to the standards given in the

Technical Data and thus enable you to achieve certification of the product according to the standards applicable in your field of application.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

9

About this Document

RoHS

Since July 1, 2006 all MEN standard products comply with RoHS legislation.

Since January 2005 the SMD and manual soldering processes at MEN have already been completely lead-free.

Between June 2004 and June 30, 2006 MEN’s selected component suppliers have changed delivery to RoHScompliant parts. During this period any change and status was traceable through the MEN ERP system and the boards gradually became RoHS-compliant.

WEEE Application

The WEEE directive does not apply to fixed industrial plants and tools. The compliance is the responsibility of the company which puts the product on the market, as defined in the directive; components and sub-assemblies are not subject to product compliance.

In other words: Since MEN does not deliver ready-made products to end users, the WEEE directive is not applicable for MEN. Users are nevertheless recommended to properly recycle all electronic boards which have passed their life cycle.

Nevertheless, MEN is registered as a manufacturer in Germany. The registration number can be provided on request.

Copyright © 2014 MEN Mikro Elektronik GmbH. All rights reserved.

Germany

MEN Mikro Elektronik GmbH

Neuwieder Straße 3-7

90411 Nuremberg

Phone +49-911-99 33 5-0

Fax +49-911-99 33 5-901

E-mail [email protected]

www.men.de

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

France

MEN Mikro Elektronik SA

18, rue René Cassin

ZA de la Châtelaine

74240 Gaillard

Phone +33 (0) 450-955-312

Fax +33 (0) 450-955-211

E-mail [email protected]

www.men-france.fr

USA

MEN Micro Inc.

860 Penllyn Blue Bell Pike

Blue Bell, PA 19422

Phone (215) 542-9575

Fax (215) 542-9577

E-mail [email protected]

www.menmicro.com

10

Contents

Contents

1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

1.1 Front Panel and Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

1.2 Integrating the Board into a System . . . . . . . . . . . . . . . . . . . . . . . . . . 15

1.3 Installing Driver Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

2 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

2.1 Power Supply. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

2.2 UART Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

2.2.1

Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

2.2.2

RS232 Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

2.2.3

RS422/485 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

2.2.4

Setting the Physical Layer. . . . . . . . . . . . . . . . . . . . . . . . . . . 23

2.3 Front-Panel LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.4 CompactPCI Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

3 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

3.1 PCI Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

3.2 Literature and Web Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

3.2.1

CompactPCI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

3.3 Finding out the Board’s Article Number, Revision and Serial Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

11

Figures

Figure 1. Front panel and interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Figure 2. RS422/RS485 transmission length related to baud rate . . . . . . . . . . . . 22

Figure 3. Labels giving the board’s article number, revision and serial number. 27

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

12

Tables

Table 1.

Signal mnemonics of UART interfaces . . . . . . . . . . . . . . . . . . . . . . . . 16

Table 2.

Pin assignment of the 78-pin front connector – RS422 mode, full duplex. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Table 3.

Pin assignment of the 78-pin front connector – RS485 mode, half duplex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Table 4.

Pin assignment of the 78-pin front connector – RS232 mode . . . . . . . 19

Table 5.

Pin assignment of the 9-pin D-Sub adapter connector

– RS422 mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Table 6.

Pin assignment of the 9-pin D-Sub adapter connector

– RS485 mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Table 7.

Pin assignment of the 9-pin D-Sub adapter connector

– RS232 mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Table 8.

RS232 transmission length related to baud rate . . . . . . . . . . . . . . . . . . 21

Table 9.

Supported and tested baud rates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Table 10. Front-panel LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

13

1

Getting Started

Getting Started

This chapter gives an overview of the board and some hints for first installation in a system.

1.1

Front Panel and Interfaces

The F216 has one 78-pin D-Sub front connector that includes the signals of all eight

UARTs. An adapter cable is available from MEN to spread the 78-pin connector to eight standard 9-pin D-Sub plug connectors.

For ordering information please see the F216 data sheet on MEN’s website .

For more information on the UART functions and pin assignments of the 78-pin

connector see Chapter 2.2 UART Interfaces on page 16

.

For more information on the four front-panel LEDs please see Chapter 2.3 Front-

Panel LEDs on page 26 .

Figure 1. Front panel and interfaces

1 2 3 4

Adapter cable  spreads to 8x

9‐pin

D‐Sub plug

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

14

Getting Started

1.2

Integrating the Board into a System

You can use the following check list when installing the board in a system for the first time.

 Power-down the system.

 Insert the F216 into a peripheral slot of your CompactPCI system, making sure that the CompactPCI connectors are properly aligned.

Note: The peripheral slots of every CompactPCI system are marked by a circle on the backplane and/or at the front panel.

 Power-up the system.

 You can now install driver software for the F216 UART controllers.

1.3

Installing Driver Software

For a detailed description on how to install driver software please refer to the respective documentation.

You can find any driver software available for download on MEN’s website .

MEN drivers allow you to set the physical layer of the UART interface through software. The board supports differential RS422 (standard default) and RS485, and non-differential (single-ended) RS232.

See also Chapter 2.2.4 Setting the Physical Layer on page 23

.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

15

2

Functional Description

Functional Description

2.1

Power Supply

Power supply is fed via the CompactPCI backplane. The board operates on +3.3 V and +5 V.

2.2

UART Interfaces

The F216 offers eight standard UARTs that can be configured as a differential

RS422 (full duplex) or RS485 (half duplex), or a non-differential (single-ended)

RS232 interface with full handshake support. The physical layer is set individually

for each channel through software. See Chapter 2.2.4 Setting the Physical Layer on page 23

for more details.

Two UART controllers inside an onboard FPGA provide four full-duplex serial channels each. The register set of the octal UART is fully 16550D compatible. High data rates up to 921,600 bits/s are possible, depending on the physical interface type

selected. See Chapter 2.2.4.6 Supported Baud Rates on page 25

for an overview of supported baud rates.

Each channel of F216 has its own 500 V isolation.

2.2.1

Connection

All UART ports are available on one 78-pin D-Sub connector. An adapter cable is also available to spread the 78-pin connector to eight standard 9-pin D-Sub connectors. (See

Figure 1, Front panel and interfaces on page 14

and Chapter Pin

Assignments of 9-pin D-Sub Connectors on page 20

.)

Connector types:

• 78-pin high-density D-Sub receptacle, 2.54mm pitch, clinch nut 4-40 UNC

Mating connector:

• 78-pin high-density D-Sub plug

Table 1. Signal mnemonics of UART interfaces

Mode

All modes

RS422

RS485

Signal

IGND[8:1]

RX[8:1]+/-

TX[8:1]+/-

D[8:1]+/-

in

Direction

out in/out

Function

Isolated ground

Differential receive data

Differential transmit data

Differential transceive data

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

16

Functional Description

Mode

RS232

Signal

CTS[8:1]

DCD[8:1]

DSR[8:1]

DTR[8:1]

RI[8:1]

RTS[8:1]

RXD[8:1]

TXD[8:1] in out in out

Direction

in in in out

Function

Clear to send

Data carrier detected

Data set ready

Data terminal ready

Ring indicator

Request to send

Receive data

Transmit data

Table 2. Pin assignment of the 78-pin front connector – RS422 mode, full duplex

78

59

39

20

60

40

21

1

62

61

60

78

77

76

75

-

-

RX1+

-

59

58

57

56

-

-

RX1-

-

74 TX1+ 55

73 IGND1 54

72

71

-

RX2+

53

52

TX1-

-

IGND2

RX2-

35

34

33

32

39 IGND5 20

38 19

37

36

RX5+

-

18

17

TX5+

-

-

RX6+

-

-

RX5-

-

16

15

TX5-

-

14 IGND6

13 RX6-

70

69

68

67

-

TX2+

-

RX3+

51

50

49

48

-

TX2-

-

RX3-

31

30

29

28

-

TX6+

-

RX7+

66

65

-

TX3+

47

46

-

TX3-

27

26

-

TX7+

64 IGND3 45

63 44

-

IGND4

25

24

IGND7

-

RX4+

-

TX4+

43

42

41

40

RX4-

-

TX4-

-

23

22

21

RX8+

-

TX8+

12

11

10

9

8

7

6

5

4

3

2

1

RX8-

-

TX8-

-

-

TX6-

-

RX7-

-

TX7-

-

IGND8

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

17

Functional Description

Table 3. Pin assignment of the 78-pin front connector – RS485 mode, half duplex

78

59

39

20

60

40

21

1

62

61

60

78

77

76

75

-

-

-

-

59

58

57

56

-

-

-

-

74 D1+ 55

73 IGND1 54

72

71

-

-

53

52

D1-

-

IGND2

-

35

34

33

32

39 IGND5 20

38 19

37

36

-

-

18

17

D5+

-

-

-

16

15

D5-

-

14 IGND6

13 -

-

-

-

-

70

69

68

67

-

D2+

-

-

51

50

49

48

-

D2-

-

-

31

30

29

28

-

D6+

-

-

66

65

-

D3+

47

46

-

D3-

27

26

-

D7+

64 IGND3 45

63 44

-

IGND4

25

24

IGND7

-

-

-

D4+

43

42

41

40

-

-

D4-

-

23

22

21

-

-

D8+

12

11

10

9

8

7

6

5

4

3

2

1

-

-

D8-

-

-

D6-

-

-

-

D7-

-

IGND8

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

18

Functional Description

Table 4. Pin assignment of the 78-pin front connector – RS232 mode

78

59

39

20

60

40

21

1

62

61

60

78

77

76

75

-

DCD1

DTR1

RXD1

59

58

57

56

-

-

RI1

DSR1

74 TXD1 55

73 IGND1 54

72

71

DCD2

DTR2

53

52

CTS1

RTS1

IGND2

RI2

35

34

33

32

39 IGND5 20

38 DCD5 19

37

36

DTR5

RXD5

18

17

TXD5

-

DCD6

DTR6

-

-

RI5

DSR5

16

15

CTS5

RTS5

14 IGND6

13 RI6

70

69

68

67

RXD2

TXD2

DCD3

DTR3

51

50

49

48

DSR2

CTS2

RTS2

RI3

31

30

29

28

RXD6

TXD6

DCD7

DTR7

66

65

RXD3

TXD3

47

46

DSR3

CTS3

27

26

RXD7

TXD7

64 IGND3 45

63 DCD4 44

RTS3

IGND4

25

24

IGND7

DCD8

DTR4

RXD4

TXD4

43

42

41

40

RI4

DSR4

CTS4

RTS4

23

22

21

DTR8

RXD8

TXD8

12

11

10

9

8

7

6

5

4

3

2

1

RI8

DSR8

CTS8

RTS8

DSR6

CTS6

RTS6

RI7

DSR7

CTS7

RTS7

IGND8

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

19

Functional Description

Pin Assignments of 9-pin D-Sub Connectors

MEN offers an adapter cable to spread the 78-pin connector to eight standard 9-pin

D-Sub plug connectors, one for each channel. The channels numbers (1..8) are marked on the cables.

The following tables give the pin assignments for the possible physical layers. The pinouts are standard for RS422, RS485 and RS232.

Connector types:

• 9-pin D-Sub plug according to DIN41652/MIL-C-24308, with thread bolt UNC 4-40

• Mating connector:

9-pin D-Sub receptacle according to DIN41652/MIL-C-24308, available for ribbon cable (insulation piercing connection), hand-soldering connection or crimp connection

Table 5. Pin assignment of the 9-pin D-Sub adapter connector – RS422 mode

5

1

9

6

3

2

5

4

1

IGND

RX+

TX+

-

-

9

8

7

6

RX-

TX-

-

-

Table 6. Pin assignment of the 9-pin D-Sub adapter connector – RS485 mode

5

1

9

6

3

2

5

4

1

IGND

-

D+

-

-

9

8

7

6

-

D-

-

-

Table 7. Pin assignment of the 9-pin D-Sub adapter connector – RS232 mode

5

1

9

6

3

2

5

4

1

IGND

DTR

TXD

RXD

DCD

9

8

7

6

RI

CTS

RTS

DSR

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

20

Functional Description

2.2.2

RS232 Interface

In the RS232 standard (DIN 66020, 66022, CCITT V.24) a High level is defined as a voltage of between +3V and +15V, a Low level as a voltage of between -3V und

-15V. Data is always transmitted in negative logic.

The RS232 interface supports a transmission rate of up to 230,400 baud. The transfer rate is configurable (see

Chapter 2.2.4.6 Supported Baud Rates on page 25 ).

In the RS232 interface specification six control lines are defined in addition to the two signal lines, which can be used for control of data interchange. The F216 supports all of these handshake lines.

The following table gives an impression of typical transmission lengths related to baud rates.

Table 8. RS232 transmission length related to baud rate

Max. Baud Rate [bits/s]

2,400

4,800

9,600

19,200

57,600

115,200

230,400

Max. Cable Length

900 m

300 m

152 m

15 m

5 m

2 m

< 1 m

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

21

Functional Description

2.2.3

RS422/485 Interface

RS422 and RS485 are standard interfaces approved by the Electronic Industries

Association (EIA) for connecting serial devices. The RS422 standard was designed to replace the older RS232 standard because it supports higher data rates and greater immunity to electrical interference. RS485 is similar to RS422 but can support more nodes per line because it uses lower-impedance drivers and receivers.

The RS422 interface allows data transmission rates up to 1.152 Mbaud over 60 m.

(The F216 supports a maximum of 921.6 kbaud.) This reduces to 120 kbaud up to

1200 m. The RS422 interface is not only appropriate for point-to-point connections.

"Party line" applications can also be implemented. In this case the line driver is designed in such a way that it can drive up to 10 line receivers at the same time.

Real "multipoint operation", however, is not permitted by the RS422 interface. This requires one single bus with several receivers and transmitters to be connected. For this purpose, the RS485 specification was created, which permits real multipoint operation with 32 transmitters and 32 receivers on one single bus, while including all specifications of the RS422 interface.

In theory, both RS422 and RS485 may be configured as 2- or 4-wire interfaces.

However, for the most typical uses, F216 supports only full-duplex operation for

RS422, and half-duplex operation for RS485. The difference between the two interface types is the number of nodes on one bus (multipoint operation, see above).

The following table gives an impression of typical transmission lengths related to baud rates.

Figure 2. RS422/RS485 transmission length related to baud rate

10000 ft

4000 ft 1200 m

Cable

Length

1000 ft

100 ft

40 ft

12 m

10 ft

10 kbps

100 kbps

Baud Rate

1

Mbps

10

Mbps

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

22

Functional Description

!

!

2.2.4

Setting the Physical Layer

The eight UART channels can be configured individually as differential RS422 or

RS485, or non-differential (single-ended) RS232 interfaces. The setting is made using driver software. For Windows MEN offers a driver installation package that allows easy configuration through the Device Manager. For Linux, VxWorks and

QNX MEN also offers driver software that provides the necessary functions to write application software.

Please note that under Linux, VxWorks and QNX you should always load the driver with the desired parameter value for the respective physical layer. Otherwise the driver may change the F216's hardware start-up default stored in the non-volatile state saver!

The following chapters give hints on how to make settings under the supported operating systems.

2.2.4.1

Configuration under Windows

MEN’s driver installation package for Windows allows easy configuration through the Device Manager.

To do this, open the Properties page of each F216 UART device via the Windows

Device Manager, select the Port Interface tab and choose the used physical interface.

You can find more details on the Windows driver installation package in the F216 under Windows User Manual.

You can download the Windows driver and user manual from MEN’s website .

Note: Do not change from RS232 to RS422/485 when there is still a connection with the RS232 remote station. This will result in a blue screen because of continuous RS422/485 interrupts.

2.2.4.2

Configuration under Linux

MEN provides a Linux driver that allows to configure the interface mode and baud rate.

You can find more details on MEN’s Linux driver software in Application Note:

Using 16Z025_UART and 16Z125_UART under Linux (21APPN009).

You can download the application note from MEN’s website .

You can download the Linux driver from MEN’s website .

The baud_base parameter must be set to 1843200.

MEN’s Linux driver supports the following values for the mode parameter:

se df_fdx df_hdxe df_hdx

single ended (RS232) differential, full duplex (RS422) differential, half duplex, with echo (RS485) differential, half duplex, no echo (RS485)

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

23

Functional Description

The following examples show how to use the driver with F216.

Set all UART ports to RS232 mode

# modprobe men_lx_chameleon

# modprobe men_lx_frodo baud_base=1843200

mode=se,se,se,se,se,se,se,se,se

Set all UART ports to RS422 full-duplex mode

In order to change the settings, the driver needs to be removed first.

# modprobe men_lx_chameleon usePciIrq=1

# modprobe men_lx_frodo baud_base=1843200 mode=df_fdx,df_fdx,df_fdx,df_fdx,df_fdx,df_fdx,df_fdx,df_fdx,df_fdx

Note: Most Linux kernels only support 4 UARTs by default. If you need more than

4 UARTs, add parameter 8250.nr_uarts=48 to your kernel boot line in the bootloader or adjust kernel parameter CONFIG_NR_8250_UARTS and recompile the kernel.

2.2.4.3

Configuration under VxWorks

MEN provides a VxWorks driver that provides comprehensive I/O control support to configure the interfaces.

You can find more details on MEN’s VxWorks driver software in the driver’s included HTML documentation.

You can download the VxWorks driver from MEN’s website .

The UART clock frequency must be set to 58982400. You can use driver function

Z25_CreateDevice or Z25_SetBaseBaud to do this.

2.2.4.4

Configuration under QNX

MEN provides a QNX driver that allows configuration of the interfaces through

QNX tool stty.

The stty tool together with MEN’s QNX driver provides a large number of parameters to configure serial interfaces. MEN’s driver includes options to set the physical interface itself. You can get details on the driver using QNX command use

devc-serz025.

You can download the QNX driver from MEN’s website .

To get details on the driver use QNX command use devc-serz025.

You can find more information on stty also on the QNX developer community website .

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

24

Functional Description

!

2.2.4.5

Start-Up Default Setting

The F216 has a start-up default setting for the physical layer of each channel, which is hardware-coded by means of a non-volatile state saver. The factory default is

RS422. The state saver always stores the configuration that is present at power-off.

This way you do not need to make any additional settings apart from software configuration in order to change the default interface.

Please note that the driver software for the various operating systems may have default physical interfaces different to the F216 hard-coded default. You should make sure that your application software selects the right interface for each channel, especially under Linux, VxWorks and QNX.

2.2.4.6

Supported Baud Rates

The F216 provides highly accurate baud rates. The following baud rates are supported and tested

1

.

Table 9. Supported and tested baud rates

Desired Baud Rate [bits/s]

110

300

1200

2400

4800

9600

19200

38400

57600

115200

230400

460800

921600 x x x x x x x

RS422

Supported with

RS485 RS232

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x

Please note that at higher baudrates the system performance has to be sufficient to process the receive interrupts fast enough to prevent the internal FIFOs from overrunning. It may also be reasonable to reduce the FIFO trigger levels of the F216

UARTs.

1

Other settings are possible but are not tested.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

25

Functional Description

2.3

Front-Panel LEDs

The F216 has four status LEDs at the front panel. Three of them are controlled through the onboard FPGA (MEN standard 16Z034_GPIO controller). These lines are user LEDs driven by GPIO lines 0, 1 and 2. Programming these signals as outputs and driving them to logic 0 means the LED is turned on.

You can control the GPIO lines for the three user LEDs using MDIS4 driver software available on MEN’s website .

The green FPGA configured LED lights up as soon as the FPGA is loaded, i.e. when the UART interfaces are ready for operation.

Table 10. Front-panel LEDs

1 2 3 4

LED No. / Color

1 - red

2 - yellow

3 - yellow

4 - green

Function

User LED, controlled through GPIO0

User LED, controlled through GPIO1

User LED, controlled through GPIO2

FPGA configured, lights up when the FPGA is loaded, not GPIO-controlled

2.4

CompactPCI Interface

The F216 supports a 32-bit 33-MHz CompactPCI interface fully compatible with

CompactPCI specification PICMG 2.0 Rev. 3.0. The board works with 3.3V and tolerates 5V V I/O.

For full CompactPCI functionality only the J1 connector is needed, therefore the board only has a J1 connector to the bus.

Connector type of J1:

• 110-pin shielded, 2mm-pitch, 5-row receptacle according to IEC 917 and IEC

1076-4-101

The pin assignment of connector J1 as defined in the CompactPCI specification will not be repeated here.

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

26

3

Appendix

Appendix

3.1

PCI Configuration

The F216 has the following IDs on the PCI bus:

• PCI Device ID:

0x4D45

• PCI Vendor ID:

0x1A88

• Subsystem Device ID:

0x5A14

• Subsystem Vendor ID:

0x0072

3.2

Literature and Web Resources

• F216 data sheet with up-to-date information and documentation: www.men.de/products/02F216-.html

3.2.1

CompactPCI

• CompactPCI Specification Revision 2.0 R3.0:

1997; PCI Industrial Computers Manufacturers Group (PICMG) www.picmg.org

• PCI Local Bus Specification Revision 2.2:

1995; PCI Special Interest Group

P.O. Box 14070

Portland, OR 97214, USA www.pcisig.com

3.3

Finding out the Board’s Article Number, Revision and

Serial Number

MEN user documentation may describe several different models and/or hardware revisions of the F216. You can find information on the article number, the board revision and the serial number on two labels attached to the board.

Article number: Gives the board’s family and model. This is also MEN’s ordering number. To be complete it must have 9 characters.

Revision number: Gives the hardware revision of the board.

Serial number: Unique identification assigned during production.

If you need support, you should communicate these numbers to MEN.

Figure 3. Labels giving the board’s article number, revision and serial number

Complete article number

Revision number

Serial number

MEN Mikro Elektronik GmbH

20F216-00 E5 – 2014-01-14

27

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement