CTI MPG401 User Manual

Mini pcie adc
Table of Contents

Advertisement

Quick Links

Connect Tech Inc.
42 Arrow Road
Guelph, Ontario
N1K 1S6
www.connecttech.com
CTIM-00149 Revision 0.02 2018-10-25
Mini PCIe ADC
Tel:
Toll:
Fax:
Email:
519-836-1291
800-426-8979 (North America only)
519-836-4878
sales@connecttech.com
support@connecttech.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MPG401 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for CTI MPG401

  • Page 1 Mini PCIe ADC Connect Tech Inc. Tel: 519-836-1291 42 Arrow Road Toll: 800-426-8979 (North America only) Guelph, Ontario Fax: 519-836-4878 N1K 1S6 Email: sales@connecttech.com www.connecttech.com support@connecttech.com CTIM-00149 Revision 0.02 2018-10-25...
  • Page 2: Table Of Contents

    Mini PCIe ADC Users Guide www.connecttech.com Table of Contents Table of Contents ........................... 2 Preface ..............................4 Disclaimer ............................... 4 Customer Support Overview ........................... 4 Contact Information ............................4 Limited Product Warranty ..........................5 Copyright Notice ............................. 5 Trademark Acknowledgment .......................... 5 ESD Warning ..............................
  • Page 3 Mini PCIe ADC Users Guide www.connecttech.com SCRATCHPAD_REG_2 (COMMON_BASE +0x1C – Read/Write) ................17 IRQ_MSTR_STATUS (IRQ_BASE +0x40 – Read Only) ....................18 IRQ_MSTR_ENABLE (IRQ_BASE +0x50 – Read/Write Only) ..................18 RELEASE (ID_BASE +0x0 – Read Only)........................18 TIMESTAMP (ID_BASE +0x4 – Read Only) ........................18 Application Examples .........................
  • Page 4: Preface

    Mini PCIe ADC Users Guide www.connecttech.com Preface Disclaimer The information contained within this user’s guide, including but not limited to any product specification, is subject to change without notice. Connect Tech assumes no liability for any damages incurred directly or indirectly from any technical or typographical errors or omissions contained herein or for discrepancies between the product and the user’s guide.
  • Page 5: Limited Product Warranty

    Mini PCIe ADC Users Guide www.connecttech.com Limited Product Warranty Connect Tech Inc. provides a 2 year Warranty for this product. Should this product, in Connect Tech Inc.'s opinion, fail to be in good working order during the warranty period, Connect Tech Inc. will, at its option, repair or replace this product at no charge, provided that the product has not been subjected to abuse, misuse, accident, disaster or non-Connect Tech Inc.
  • Page 6: Esd Warning

    Mini PCIe ADC Users Guide www.connecttech.com ESD Warning Electronic components and circuits are sensitive to ElectroStatic Discharge (ESD). When handling any circuit board assemblies including Connect Tech COM Express carrier assemblies, it is recommended that ESD safety precautions be observed. ESD safe best practices include, but are not limited to: ...
  • Page 7: Introduction

    Warranty and Support 2 year Warranty Free Technical Support Part Numbers / Ordering Information Part Number Description MPG401 Mini PCIe 16 ADC input channels 16-bit resolution, 500kSPS, -40°C to +85°C RoHS compliant Document: CTIM-00149 Page 7 of 22 Date: 2018-10-25 Revision: 0.02...
  • Page 8: Product Overview

    Mini PCIe ADC Users Guide www.connecttech.com Product Overview The Mini PCIe ADC is based on a custom FPGA controller and SPI ADCs. The following block diagram shows the connection between the interfaces. Each SPI bus is independent, and managed by separate control block. Connection to analog signals is provided by single high density latching connector.
  • Page 9: Detailed Feature Description

    Mini PCIe ADC Users Guide www.connecttech.com Detailed Feature Description General Board Operation Interfacing Convention All board features are controlled through a simple memory mapped register based interface. Each analog to digital controller block (ADC) is controlled from a separate base address location; however the registers within those blocks have identical functionality.
  • Page 10: Analog Inputs (Adcs)

    Mini PCIe ADC Users Guide www.connecttech.com Analog Inputs (ADCs) Overview The Mini PCIe ADC uses two Texas Instruments ADS8688, each having an 8-channel multiplexer that allows for the sampling of 8 single ended analog signals. The SPI interface of each ADS8688 is connected to the FPGA controller, while the analog side is connected to the high density latching connector.
  • Page 11: Continuous Sampling Mode

    Mini PCIe ADC Users Guide www.connecttech.com Continuous Sampling Mode Each ADC channel’s code is captured and stored into their CHx-LAST_SAMPLE register. This CHx- LAST_SAMPLE register is then constantly updated/overwritten with a latest/newest code received. Waveform Capture Mode (FIFO Mode) This mode is supplementary to the Continuous Sampling Mode in that the ADC blocks will continue to update their CHX-LAST_SAMPLE registers while also storing data in their associated sample FIFOs.
  • Page 12: Memory Map

    Mini PCIe ADC Users Guide www.connecttech.com Memory Map Offset 0x03 0x02 0x01 0x00 (Hex) 0x0000 CONTROL_CONFIG 0x0004 STATUS 0x0008 CLK_DIV 0x000C CLK_DIV_CNTR 0x0010 INPUT_RANGE_SELECT 0x0014 CH1-LAST_SAMPLE CH0-LAST_SAMPLE 0x0018 CH3-LAST_SAMPLE CH2-LAST_SAMPLE 0x001C CH5-LAST_SAMPLE CH4-LAST_SAMPLE 0x0020 CH7-LAST_SAMPLE CH6-LAST_SAMPLE 0x0024 MEM_WRITE_CONTROL 0x1000 CHANNEL_ID/TIMESTAMP_0 MEM_SAMPLE_0 0x1004 CHANNEL_ID/TIMESTAMP_1 MEM_SAMPLE_1 0x1008 CHANNEL_ID/TIMESTAMP_2 MEM_SAMPLE_2 …...
  • Page 13: Chx_Last_Sample (Offset 0X0014, Read Only)

    Mini PCIe ADC Users Guide www.connecttech.com This register contains all of the channel input range values which are described below. CHx Range [2:0] Postive Full Scale (V) Negative Full Scale (V) Full-Scale Range (V) LSB (µV) 10.24 -10.24 20.48 312.5 5.12 -5.12 10.24...
  • Page 14: Mem_Write_Control (Adc# Offset 0X0024)

    Mini PCIe ADC Users Guide www.connecttech.com MEM_WRITE_CONTROL (ADC# Offset 0x0024) 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Reserved / Future Use Current FIFO Write Count Trigger IRQ at FIFO Count This register contains the current FIFO capacity, and the interrupt trigger.
  • Page 15: Example B - Adc Operation With Different Input Range

    Mini PCIe ADC Users Guide www.connecttech.com Example B – ADC Operation with different input range In this example we will set: ADC0 to take a readings from CH0 with an input voltage range of +/-10.24V ADC1 to take a readings from CH0 with an input voltage range of +10.24V printf("ADC0&1: enabling chan0 and setting input range\n");...
  • Page 16: Flash Controller

    Mini PCIe ADC Users Guide www.connecttech.com Flash Controller Overview The Mini PCIe ADC has a built-in flash controller to facilitate remote updates over the Mini PCIe bus. There are two usage modes – update flash and cold boot reconfig or update flash and live reconfiguration. Update flash and cold boot –...
  • Page 17: Common Features

    Mini PCIe ADC Users Guide www.connecttech.com Common Features The following section describes several of the board level common features, including the interrupt controller and ID register. Memory Map Block Offset 0x03 0x02 0x01 0x00 (Hex) COMMON_BASE 0xC IRQ_STATUS COMMON_BASE 0x18 SCRATCHPAD_REG_1 COMMON_BASE 0x1C SCRATCHPAD_REG_2...
  • Page 18: Irq_Mstr_Status (Irq_Base +0X40 - Read Only)

    Mini PCIe ADC Users Guide www.connecttech.com IRQ_MSTR_STATUS (IRQ_BASE +0x40 – Read Only) 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Not used ADC0 ADC controller block 0 has a pending interrupt...
  • Page 19: Application Examples

    Mini PCIe ADC Users Guide www.connecttech.com Application Examples Example A – writing/reading from scratch pad /**************************************************************/ printf("reading scratch pad registers\n"); /***************************************************************/ wrreg=0xABCDEF01; ret = CTIFPGAWrDword(pbrd, BAR_MAIN, COMMON_BASE+SCRATCHPAD_REG_1, wrreg); if(ret != CTI_STATUS_OK) printf("Error write to SCRATCHPAD_REG_1\n"); result = FALSE; ret = CTIFPGARdDword(pbrd, BAR_MAIN, COMMON_BASE+SCRATCHPAD_REG_1, &rdreg); if(ret != CTI_STATUS_OK) printf("Error read from FPGA mem");...
  • Page 20: Software Installation

    Mini PCIe ADC Users Guide www.connecttech.com Software Installation The Mini PCIe ADC is fully supported by Connect Tech’s Universal FPGA Driver(UFD). The UFD is available for download from the ConnectTech’s download zone: http://www.connecttech.com/asp/Support/DownloadZone_results.asp?Product=37 The UFD is available for multiple operating systems; refer to the website for availability and check back for the latest releases.
  • Page 21: Appendix - A Header File

    Mini PCIe ADC Users Guide www.connecttech.com Appendix – A Header File #ifndef DEV_ID_MPG401 #define DEV_ID_MPG401 0x1211 #endif // Useful constants #define NUM_ADC 2 #define NUM_ADC_CH 8 // Memory Map #define BAR_MAIN 0 #define COMMON_BASE #define RESERVED_0 #define RESERVED_1 #define LEDMODE #define IRQ_STATUS #define...
  • Page 22 Mini PCIe ADC Users Guide www.connecttech.com #define IRQ_MSTR_ENABLE 0x50 #define IRQBIT_ADC0 0x00 #define IRQBIT_ADC1 0x01 Document: CTIM-00149 Page 22 of 22 Date: 2018-10-25 Revision: 0.02 Connect Tech Inc. 800-426-8979 | 519-836-1291...

Table of Contents