ESD AMC-ADIO24 AdvancedMC™ Analog/Digital I/O Module Owner's manual

Type
Owner's manual
AMC-ADIO24
AMC-ADIO24-HD50
AMC Analog/Digital I/O Module
Hardware Manual
to Products U.1001.01,
U.1001.02,
U.1001.09,
U.1001.10
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 1 of 106
esd electronic system design gmbh
Vahrenwalder Str. 207 • 30165 Hannover • Germany
http://www.esd.eu
Phone: +49 (0) 511 3 72 98-0 • Fax: +49 (0) 511 3 72 98-68
N O T E
The information in this document has been carefully checked and is believed to be entirely reliable.
esd makes no warranty of any kind with regard to the material in this document, and assumes no
responsibility for any errors that may appear in this document. In particular descriptions and
technical data specified in this document may not be constituted to be guaranteed product features
in any legal sense.
esd reserves the right to make changes without notice to this, or any of its products, to improve
reliability, performance or design.
All rights to this documentation are reserved by esd. Distribution to third parties, and reproduction
of this document in any form, whole or in part, are subject to esd's written approval.
© 2018 esd electronics gmbh, Hannover
esd electronics gmbh
Vahrenwalder Str. 207
30165 Hannover
Germany
Phone: +49-511-372 98-0
Fax: +49-511-372 98-68
Internet: www.esd.eu
This manual contains important information and instructions on safe and efficient
handling of the AMC-ADIO24/-HD50. Carefully read this manual before commencing
any work and follow the instructions.
The manual is a product component, please retain it for future use.
Trademark Notices
The PICMG® name and logo are registered trademarks of the PCI Industrial Computer Manufacturers Group.
All other trademarks, product names, company names or company logos used in this manual are reserved by their
respective owners.
Page 2 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
Document file: I:\Texte\Doku\MANUALS\AMC\AMC-ADIO24\Englisch\AMC-ADIO24_Hardware_en_21.odt
Date of print: 2018-01-09
Document type
number: DOC0800
Hardware version: AMC-ADIO: Rev. 2.01
AMC-ADIO24-HD50: Rev.1.0
AMC-ADIO-Adapter: Rev. 1.0 from serial number GB000024 and higher
AMC-ADIO24-HD50-Adapter Rev. 1.0
Firmware version: from FPGA release 2.0 on
Document History
The changes in the document listed below affect changes in the hardware as well as changes in
the description of the facts, only.
Revision Chapter Changes versus previous version Date
1.0 - First released version of English manual. 2011-01-10
2.0
- Description of AMC-ADIO24-HD50 inserted
2013-01-30
- Safety instructions revised, note to shielded cables inserted
- Hardware version of AMC-ADIO-Adapter inserted (serial number GB000024 and higher)
1. Description of AMC-ADIO24-HD50 inserted, block circuit diagram new
2.2 PCB view of AMC-ADIO24-HD50 inserted
3. Description of AMC-ADIO24-HD50 inserted
3.1.1 AMC-LED1 and LED2 changed in figure
3.1.2 Front panel LED and connector position of AMC-ADIO24-HD50 inserted
4.1.2 Description of PEX 8311
4.2 Note inserted
4.2.1 Chapter inserted:"esdmio driver user-level API"
4.6, 4.7.23 Description of DOWrite A/B changed
4.7 Description of format of analog data inserted
4.7.5 Content of register DIOMode inserted in table
4.7.22, 4.7.27.1,
4.7.28.1
Heading corrected
ADC0 ... ADC7
4.7.25 Format and description of ChanWrite corrected (rrr), note inserted
4.8 Figure corrected
4.9.1.2 Correction in 1. DMA-enabled: WA-RA>0
5. Technical data of AMC-ADIO24-HD50 inserted
6. Chapter revised, connector assignment of AMC-ADIO24-HD50 new
6.6, 6.7 Description of 50-pin har.mik connector inserted
7. Figure 8 and 10 changed
9. Declaration of conformity inserted
2.1
- Classification of safety instructions inserted
2018-01-09
5.1 Description of dimension corrected
6. Chapter restructured
7. Chapter “AMC-ADIO-Adapter for AMC-ADIO24 ” moved
8. Chapter “Connector Assignment of AMC-ADIO24-HD50” moved
9. Chapter “AMC-ADIO24-HD50-Adapter ” new
11. Declaration of Conformity new
12. Product AMC-ADIO24-HD50-Adapter inserted
Technical details are subject to change without further notice.
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 3 of 106
Classification of Warning Messages and Safety Instructions
This manual contains noticeable descriptions, warning messages and safety instructions, which
you must follow to avoid personal injuries or death and property damage.
This is the safety alert symbol.
It is used to alert you to potential personal injury hazards. Obey all safety messages
and instructions that follow this symbol to avoid possible injury or death.
DANGER, WARNING, CAUTION
Depending on the hazard level the signal words DANGER, WARNING or CAUTION are used to
highlight safety instructions and warning messages. These messages may also include a warning
relating to property damage.
DANGER
Danger statements indicate a hazardous situation which, if not avoided, will result in
death or serious injury.
WARNING
Warning statements indicate a hazardous situation that, if not avoided, could result in
death or serious injury.
CAUTION
Caution statements indicate a hazardous situation that, if not avoided, could result in
minor or moderate injury.
NOTICE
Notice statements are used to notify people on hazards that could result in things other than
personal injury, like property damage.
NOTICE
This NOTICE statement indicates that the device contains components sensitive to
electrostatic discharge.
NOTICE
This NOTICE statement contains the general mandatory sign and gives information that
must be heeded and complied with for a safe use.
INFORMATION
INFORMATION
Notes to point out something important or useful.
Page 4 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
Safety Instructions
When working with the AMC-ADIO24/-HD50 follow the instructions below and read the manual
carefully to protect yourself from injury and the AMC-ADIO24/-HD50 from damage.
The device is a built-in component. It is essential to ensure that the device is mounted in a way that
cannot lead to endangering or injury of persons or damage to objects.
Do not use damaged or defective cables to connect the AMC-ADIO24/-HD50.
In case of damages to the device, which might affect safety, appropriate and immediate measures
must be taken, that exclude an endangerment of persons and domestic animals and property.
Current circuits which are connected to the device have to be sufficiently protected against
hazardous voltage (SELV according to EN 60950-1).
The AMC-ADIO24/-HD50 may only be driven by power supply current circuits, that are contact
protected.
A power supply, that provides a safety extra-low voltage (SELV) according to EN 60950-1, complies
with this conditions.
Do not open the housing of the AMC-ADIO24/-HD50-Adapter.
The device has to be securely installed in the control cabinet before commissioning.
Protect the AMC-ADIO24/-HD50 from dust, moisture and steam.
Protect the AMC-ADIO24/-HD50 from shocks and vibrations.
The AMC-ADIO24/-HD50 may become warm during normal use. Always allow adequate ventilation
around the AMC-ADIO24/-HD50 and use care when handling.
Do not operate the AMC-ADIO24/-HD50 adjacent to heat sources and do not expose it to
unnecessary thermal radiation. Ensure an ambient temperature as specified in the technical data.
NOTICE
Electrostatic discharges may cause damage to electronic components.
To avoid this, perform the steps described on page 13 before you touch the AMC-
ADIO24/-HD50, in order to discharge the static electricity from your body.
Qualified Personnel
This documentation is directed exclusively towards personnel qualified in control and automation
engineering.
The installation and commissioning of the product may only be carried out by qualified personnel,
which is authorized to put devices, systems and electric circuits into operation according to the
applicable national standards of safety engineering.
Conformity
The AMC-ADIO24 is an industrial product and meets the demands of the EU regulations and EMC
standards printed in the conformity declaration at the end of this manual.
Warning: In a residential, commercial or light industrial environment the AMC-ADIO24/-HD50 may
cause radio interferences in which case the user may be required to take adequate
measures.
NOTICE
To sustain the compliance with directive 2014/30/EC, it is necessary to use shielded
cables.
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 5 of 106
Intended Use
The intended use of the AMC-ADIO24/-HD50 is the operation as AMC analog/digital IO module in
a µTCA system.
The guarantee given by esd does not cover damages which result from improper use, usage not in
accordance with regulations or disregard of safety instructions and warnings.
The AMC-ADIO24/-HD50 is intended for installation in a MicroTCA-system only.
The operation of the AMC-ADIO24/-HD50 in hazardous areas, or areas exposed to potentially
explosive materials is not permitted.
The operation of the AMC-ADIO24/-HD50 for medical purposes is prohibited.
Service Note
The AMC-ADIO24/-HD50 does not contain any parts that require maintenance by the user. The
AMC-ADIO24/-HD50 does not require any manual configuration of the hardware.
Disposal
Devices which have become defective in the long run have to be disposed in an appropriate way or
have to be returned to the manufacturer for proper disposal. Please make a contribution to
environmental protection.
Number Representation
All numbers in this document are base 10 unless designated otherwise. Hexadecimal numbers have a
prefix of 0x. For example, 42 is represented as 0x2A in hexadecimal.
Page 6 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
Table of contents
Safety Instructions...........................................................................................................................5
1. Overview.................................................................................................................................... 10
2. PCB View with Connectors......................................................................................................... 11
2.1 AMC-ADIO24 (U.1001.01)...................................................................................................11
2.2 AMC-ADIO24-HD50 (U.1001.02).........................................................................................12
3. Hardware Installation .................................................................................................................13
3.1 Front Panel LED and Connector Positions...........................................................................14
3.1.1 AMC-ADIO24..............................................................................................................14
3.1.2 AMC-ADIO24-HD50....................................................................................................15
3.1.3 LED Indication.............................................................................................................15
4. PCI Express Device Access.......................................................................................................16
4.1 PCI Address Space..............................................................................................................16
4.2 Software Development Kits for the PCI Bridge PEX8311.....................................................18
4.2.1 esdmio Driver user-level API.......................................................................................18
4.2.1.1 esdmio_DeviceOpen.............................................................................................19
4.2.1.2 esdmio_DeviceClose............................................................................................19
4.2.1.3 esdmio_DeviceInfo...............................................................................................20
4.2.1.4 esdmio_MapRegisters..........................................................................................21
4.2.1.5 esdmio_MapDMA.................................................................................................21
4.2.1.6 esdmio_DMASingle..............................................................................................22
4.2.1.7 esdmio_DMAMultiStart.........................................................................................23
4.2.1.8 esdmio_DMAMultiStop.........................................................................................24
4.2.1.9 esdmio_DMAPoll..................................................................................................24
4.2.1.10 esdmio_DMAWait...............................................................................................25
4.2.1.11 IRQWait..............................................................................................................25
4.2.1.12 Return Codes......................................................................................................26
4.2.1.13 Example Source.................................................................................................27
4.3 Data Access.........................................................................................................................30
4.3.1 Direct I/O Access.........................................................................................................30
4.3.2 Setting Output Data.....................................................................................................31
4.3.3 Periodic Pattern Generation........................................................................................31
4.4 Streaming I/O and Trigger Selection....................................................................................32
4.4.1 Streaming I/O Block Diagram......................................................................................32
4.4.2 Trigger Selection.........................................................................................................33
4.4.2.1 Overview............................................................................................................... 33
4.4.2.2 Timing Routing Pool..............................................................................................33
4.5 Store/Restore Default Parameters (Calibration, FRU, FPGA-Image)...................................34
4.6 FPGA Memory Map............................................................................................................. 35
4.7 Register Description.............................................................................................................38
4.7.1 Version........................................................................................................................38
4.7.2 Status.......................................................................................................................... 39
4.7.3 DDI (Direct Digital In, Inclusive Inversion)...................................................................41
4.7.4 DDO (Direct Digital Out, No Inversion)........................................................................42
4.7.5 DIOMode (Trigger Mode Din/Dout)..............................................................................43
4.7.6 DOut Invert (Digital Output Inverted)...........................................................................44
4.7.7 HSE/LSE (HighSide Enable / LowSide Enable)...........................................................45
4.7.8 FGENAB (DDFS Frequency Generator)......................................................................46
4.7.9 FGENCD (Clock Divider).............................................................................................47
4.7.10 SyncOut (External Trigger Output/Input)...................................................................48
4.7.11 DORout (Trigger Output/Input, DigOut-Route)..........................................................49
4.7.12 DInInvert (Digital Input Inverted)................................................................................50
4.7.13 DInFilter (Filter Digital Input)......................................................................................51
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 7 of 106
4.7.14 ADCMode (Trigger Mode ADC7...0)..........................................................................52
4.7.15 DIVMode (DMA-Mode, Timer Select, Interrupt Enable).............................................53
4.7.16 Auxreg (Trigger Mode DAC A/B)...............................................................................56
4.7.17 QDac (Direct Read Back DAC A/B)...........................................................................57
4.7.18 DACCorr (Gain/Offset Correction DAC B/A)..............................................................58
4.7.19 EVENT......................................................................................................................59
4.7.20 DMAMode (DMA enable/disable)..............................................................................61
4.7.21 Compare................................................................................................................... 63
4.7.22 ADC0Corr ... ADC7Corr (ADC Gain and Offset)........................................................64
4.7.23 DOWriteX (Digital Out Mask).....................................................................................65
4.7.24 DACWriteBA (Write DAC).........................................................................................66
4.7.25 ChanWrite.................................................................................................................67
4.7.26 Current Register Values............................................................................................68
4.7.26.1 ADCxAct (Current Analog Input Values).............................................................68
4.7.26.2 DInAAct, DInBAct (Current Digital Input Values).................................................69
4.7.26.3 DOutAAct, DOutBAct (Current Digital Output Values).......................................69
4.7.26.4 DACAAct, DACBAct (Current Analog Output Values)........................................70
4.7.26.5 TSAct (Current Timestamp Counter Value)........................................................71
4.7.27 Last DMA Values.......................................................................................................72
4.7.27.1 ADC0Last... ADC7Last (Last Analog Input DMA Values)....................................72
4.7.27.2 DInALast, DInBLast (Last Digital Input DMA Values)..........................................73
4.7.27.3 DOutALast, DOutBLast (Last Digital Output DMA Values)..................................73
4.7.27.4 DACALast, DACALast (Last Analog Output DMA Values)..................................74
4.7.27.5 TSLast (Last TS-Counter DMA Values)..............................................................74
4.7.28 Difference Values for Trigger Conditions ..................................................................75
4.7.28.1 ADC0Delta … ADC7Delta..................................................................................75
4.7.28.2 DInA/BMask........................................................................................................76
4.7.28.3 DOutA/BMask.....................................................................................................77
4.7.28.4 DACA/BDelta......................................................................................................78
4.7.28.5 TSDelta............................................................................................................... 79
4.7.29 Command Register...................................................................................................80
4.8 I/O Data Processing............................................................................................................. 82
4.9 DMA Access........................................................................................................................83
4.9.1 DMA Input Data...........................................................................................................83
4.9.1.1 Read Data FIFO...................................................................................................83
4.9.1.2 Setting DMA Operation.........................................................................................85
4.9.2 DMA Output Data........................................................................................................86
5. Technical Data...........................................................................................................................87
5.1 General Technical Data.......................................................................................................87
5.2 MicroTCATM /AMC Standards.............................................................................................88
5.3 Analog Outputs.................................................................................................................... 88
5.4 Analog Inputs.......................................................................................................................89
5.5 Digital Inputs/Outputs...........................................................................................................90
5.6 Trigger Ports........................................................................................................................90
6. Connector Assignment of AMC-ADIO24.....................................................................................91
6.1 Analog Out........................................................................................................................... 91
6.2 Analog In..............................................................................................................................92
6.3 Digital I/O............................................................................................................................. 93
6.4 Trigger Ports........................................................................................................................94
7. AMC-ADIO-Adapter for AMC-ADIO24 .......................................................................................95
7.1 AMC-ADIO-Adapter View....................................................................................................96
7.2 Technical Data AMC-ADIO-Adapter.....................................................................................96
7.3 Connector Assignment.........................................................................................................97
8. Connector Assignment of AMC-ADIO24-HD50..........................................................................99
8.1 Trigger Ports........................................................................................................................99
Page 8 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
8.2 ADIO via 50-pin har.mik connector....................................................................................100
9. AMC-ADIO24-HD50-Adapter ...................................................................................................101
9.1 Technical Data AMC-ADIO24-HD50-Adapter....................................................................102
9.2 Connector Assignment ......................................................................................................103
10. Abbreviations..........................................................................................................................104
11. Declaration of Conformity of AMC-ADIO24............................................................................105
12. Order Information...................................................................................................................106
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 9 of 106
Overview
1. Overview
INFORMATION
The AMC-ADIO24 and the AMC-ADIO24-HD are identically constructed except of the har-
link®/har.mik® connectors. Furthermore the functionalities are identical.
In this manual both modules are described together (AMC-ADIO24/-HD50), differences
are specified in the corresponding sections.
Figure 1: Block circuit diagram
The AMC-ADIO24/-HD50 is an AMC analog/digital I/O module.
It is equipped with a Spartan FPGA, which manages the I/O data exchange in cooperation with the
PCIe bridge. FIFOs for input and output direction and DMA to the PCIe host CPU’s memory
minimizes undesired latency during PCIe read cycles at higher data rates. Read cycles of the PCIe
CPU are reduced to set-up and diagnosis tasks.
The AMC-ADIO24 (esd order No.: U.1001.01) is equipped with 7 Harting® har-link® connectors.
The AMC-ADIO24-HD50 (esd order-No.: U.1001.02) is equipped with one Harting® har.mik®
connector and one Harting® har-link® connector.
The eight overvoltage protected analog inputs are connected to eight 16-bit A/D converters with a
sampling rate of up to 200 kHz each.
Both 16 bit analog outputs have a differential and a single ended output circuit, accessible at
separate pins at the connector. The outputs are transient and short circuit protected. The maximum
update rate of the analog outputs is 600 KSPS (kilo samples per second).
Each of the 24 TTL-level I/Os can be separately configured as input or output. The outputs can be
configured as high side driver, low side driver or both (sink/source). The I/O port state can be read
back in any configuration via a comparator with hysteresis.
For the trigger I/Os for synchronisation the firmware offers a so called ‘Timing-Routing-Pool’ with
various trigger conditions (RS-485 trigger input, timer, software, free run) that can be individually
evaluated for each I/O or I/O group.
For setup and I/O data exchange a comprehensive register description is accessible via PCIe (see
chapter 4).
Page 10 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
P4, P5, P6
3x har-link
Connector
P1
har-link
Connector
P2, P3
2x har-link
Connector
P7
har-link
Connector
Microwire
EEPROM
Timing
PCI Bridge
PEX8311
LVDS
FPGA
Spartan II
SPI
EEPROM
Bus Interface
ADC
DAC
OUT
IN CONFIG
IPMI
Controller
(ATMEL AVR) IPMB
3.3 VMP
PCIe
12 V
3.3 V
±15 V
5 V
Power Supply
4x RS-485
24x Digital I/O
TTL
A/D-Converter
MAX1162
200 KSPS
D/A-Converter
DAC8550
600 KSPS
2x Analog Out
10V
8x Analog In
10V
J1
AMC Plug
Connector
P1
P2
har-link
Connector
har.mik
Connector
AMC-ADIO24
only
(7x har-link® connector)
AMC-ADIO24-HD50
only
(1x har-link® connector,
1x har.mik® connector)
AMC-ADIO24,
AMC-ADIO24-HD50
PCB View with Connectors
2. PCB View with Connectors
2.1 AMC-ADIO24 (U.1001.01)
Figure 2: PCB top view of AMC-ADIO24
See also page 91 et seqq. for signal assignments of the connectors.
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 11 of 106
PCB View with Connectors
2.2 AMC-ADIO24-HD50 (U.1001.02)
Figure 3: PCB top view of AMC-ADIO24
See also page 99 et seqq. for signal assignments of the connectors.
Page 12 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
Hardware Installation
3. Hardware Installation
NOTICE
Read the safety instructions at the beginning of this document carefully, before
you start with the hardware installation!
NOTICE
Electrostatic discharges may cause damage to electronic components.
To avoid this, please discharge the static electricity from your body by touching the
metal case of the µTCA system before you touch the AMC-ADIO24/-HD50.
Furthermore, you should prevent your clothes from touching the AMC-ADIO24/-
HD50, because your clothes might be electrostatically charged as well.
Procedure:
1. The AMC-ADIO24/-HD50 is hot-pluggable.
Insert the AMC-ADIO24/-HD50 into a free slot in your µTCA system.
2. Fix the AMC-ADIO24/-HD50 by pushing the handle with interlocking mechanism (see figure 4
for AMC-ADIO24 or figure 5 for AMC-ADIO24-HD50).
3. AMC-ADIO24:
AMC-ADIO24-HD50:
AMC-ADIO24/-HD50:
Connect the signal lines to the har-link-connectors (P1 - P7) in the
front panel as described in figure 4, e.g. via the har-link® cable (see
page 106).
Connect the signal lines to the har.mik connector (P1) and the har-link
connector P2 in the front panel as described in figure 5.
The external signal-lines are 'hot-pluggable' and can be connected or
disconnected at discretion.
4. End of hardware installation.
5. Set the interface properties in your operating system. For further information refer to the
documentation of the operating system.
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 13 of 106
Hardware Installation
3.1 Front Panel LED and Connector Positions
3.1.1 AMC-ADIO24
Figure 4: AMC-ADIO24 connectors and LEDs
Page 14 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
Hardware Installation
3.1.2 AMC-ADIO24-HD50
Figure 5: AMC-ADIO24-HD50 connectors and LEDs
3.1.3 LED Indication
Name Colour Description
LED name in
schematics
diagram
AMC-LED1 red Controlled by IPMI. LED621
AMC-LED2 green Controlled by IPMI.
Local function: Lit if FPGA is booted correctly. LED622
AMC-Blue blue
Controlled by IPMI.
LED620
Off in operation
Blinking preparing for hot-plug (in transition)
Lit powered off, hot-plug allowed
Table 1: LED indication of AMC-ADIO24/-HD50
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 15 of 106
PCI Express Device Access
4. PCI Express Device Access
A 64K address space is required for the AMC-ADIO24/-HD50. The address space must be
accessible by the host CPU of the PCIe bus.
4.1 PCI Address Space
The PCI base address of the AMC-ADIO24/-HD50 depends on the PCI host that assigns the PCI
bus memory addresses to the connected PCI bus boards.
Note that the PCIe bridge of the AMC-ADIO24/-HD50 (PEX8311) internally carries two PCI-
bridges, one 8111-compatible PCIe to PCI bridge and one 9056-compatible PCI to Local Bus
(connected to the FPGA) bridge. Therefore the PCI host detects and displays two devices:
Figure 6: Internal bridges of PEX 8311
The following listing shows an example of the memory assignment at a x86 Linux system, after
calling the command 'lspci -vv'.
Page 16 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
PCI
PCI
PCIe
Local
Bus
Bridge
PCI
Bridge
PEX 8311
PEX 9056-
compatible
bridge
PEX 8111-
compatible
bridge
PCIe
FPGA
Local Bus
Interface
(Programming,
Configuration)
PCI Express Device Access
...
06:00.0 PCI bridge: PLX Technology, Inc. PEX 8111 PCI Express-to-PCI Bridge (rev 21) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0, Cache Line Size: 32 bytes
Region 0: Memory at fea00000 (64-bit, prefetchable) [size=64K]
Bus: primary=06, secondary=07, subordinate=07, sec-latency=36
I/O behind bridge: 00002000-00002fff
Memory behind bridge: fe600000-fe6fffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
Address: 0000000000000000 Data: 0000
Capabilities: [60] Express PCI/PCI-X Bridge IRQ 0
Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag-
Device: Latency L0s <64ns, L1 <1us
Device: AtnBtn- AtnInd- PwrInd-
Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-
Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
Device: MaxPayload 128 bytes, MaxReadReq 4096 bytes
Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s L1, Port 0
Link: Latency L0s <1us, L1 <16us
Link: ASPM Disabled CommClk- ExtSynch-
Link: Speed 2.5Gb/s, Width x1
Capabilities: [100] Power Budgeting
07:04.0 Signal processing controller: PLX Technology, Inc. Francois (rev ba)
Subsystem: ESD Electronic System Design GmbH Unknown device 0600
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 7
Region 0: Memory at fe610000 (32-bit, non-prefetchable) [size=512]
Region 1: I/O ports at 2000 [size=256]
Region 2: Memory at fe600000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] #06 [0000]
Capabilities: [4c] Vital Product Data
...
For the user the memory base address of the FPGA at the AMC-ADIO24 is most important. It is
always placed in the PCI bridge called
'Subsystem: ESD Electronic System Design GmbH...'
after the I/O-ports and is displayed as
'Region 2: Memory at fe600000 (32-bit, non-prefetchable) [size=64K]',
i.e. the base address is 0xFE600000 in this example.
The memory space size reserved for the FPGA registers always is defined as 64k.
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 17 of 106
PCI Express Device Access
4.2 Software Development Kits for the PCI Bridge PEX8311
For an easier start we recommend to use the esd driver for the AMC-ADIO24, called 'esdmio'. This
kit contains an universal driver for Linux (with source code) that allows the access to the card (see
chapter 4.2.1).
The Linux driver and library need to be built from source.
Another possibility is to use the SDK of PLX, called 'PlxSDK'. This kit contains an universal driver
for Windows and Linux (with source code) that allows the access to the user memory space of the
bridge.
The PlxSDK can be downloaded from the PLX homepage:
http://www.plxtech.com/products/sdk/pde
INFORMATION
The Plx9056 driver (and not the 8311 or Svc driver) is needed to get access to the FPGA.
4.2.1 esdmio Driver user-level API
In this chapter the functions of the user-level API of the esdmio library "libesdmio" and the return
values are described. In addition, an example code is given.
Each function description is structured identically into a description of:
• Syntax
• Description
• Arguments
• Return Values
• Usage
Page 18 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
PCI Express Device Access
4.2.1.1 esdmio_DeviceOpen
Syntax:
ESDMIO_RESULT esdmio_DeviceOpen
(
int32_t idx,
ESDMIO_HANDLE *hnd
);
Description: Opens a connection to an I/O card.
Arguments: idx is a number from 0..255 (actual number of supported cards by a driver may
be less than 256)
hnd must point to an ESDMIO_HANDLE space.
Return Values: If it returns with ESDMIO_RESULT_SUCCESS, the ESDMIO_HANDLE is valid
afterwards.
4.2.1.2 esdmio_DeviceClose
Syntax:
ESDMIO_RESULT esdmio_DeviceClose
(
ESDMIO_HANDLE *hnd
);
Description: Closes a connection to an I/O card.
Arguments: hnd must point to a valid ESDMIO_HANDLE.
Return Values: If it returns with ESDMIO_RESULT_SUCCESS, the ESDMIO_HANDLE is invalid
afterwards.
AMC-ADIO24/-HD50 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 Page 19 of 106
PCI Express Device Access
4.2.1.3 esdmio_DeviceInfo
Syntax:
ESDMIO_RESULT esdmio_DeviceInfo
(
ESDMIO_HANDLE hnd,
ESDMIO_DEVINFO *info
);
Description: Returns information about an I/O card.
Arguments: hnd must point to a valid ESDMIO_HANDLE.
info must point to an ESDMIO_DEVINFO space.
Return Values: If it returns with ESDMIO_RESULT_SUCCESS, the ESDMIO_DEVINFO contains
valid data.
Page 20 of 106 Hardware Manual • Doc. No.: U.1001.21 / Rev. 2.1 AMC-ADIO24/-HD50
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106

ESD AMC-ADIO24 AdvancedMC™ Analog/Digital I/O Module Owner's manual

Type
Owner's manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI