background image

 

RTD Embedded Technologies, Inc. 

www.rtd.com 

 

37

 

DM35418HR/DM35218HR

 User’s Manual 

 

 

BDM-610010041 Rev F

  

6.2

 

BAR2: Functional Block Standard DMA 

This section describes a standard DMA engine implementation that may be used by the Functional Blocks.  Any Functional Block that uses DMA 
shall use this implementation so that the kernel mode driver may be used to service it, resulting in better performance. 

Table 20: DMA Registers  

Offset 

0x03 

0x02 

0x01 

0x00 

D + 0x00 

FB_DMAm_Stat_Underflow 

FB_DMAm_Stat_Overflow 

FB_DMAm_Setup 

FB_DMAm_Action 

D + 0x04 

FB_DMAm_Current_Buffer 

FB_DMAm_Count 

D + 0x08 

FB_DMAm_RD_FIFO_CNT 

FB_DMAm_WR_FIFO_CNT 

D + 0x0C 

FB_DMAm_Last_Action 

FB_DMAm_Stat_Complete 

FB_DMAm_Stat_Invalid  FB_DMAm_Stat_Used 

D + 0x10 

FB_DMAm_CTRL0 

FB_DMAm_STAT0 

Reserved 

D + 0x14 

Reserved 

FB_DMAm_SIZE0 

D + 0x18 

FB_DMAm_ADDRESS0 

D + 0x1C 
D + 0x20 

FB_DMAm_CTRL1 

FB_DMAm_STAT1 

Reserved 

D + 0x24 

Reserved 

FB_DMAm_SIZE1 

D + 0x28 

FB_DMAm_ADDRESS1 

D + 0x2C 

… 

D + 0x10 + 
(0x10 * n) 

FB_DMAm_CTRLn 

FB_DMAm_STATn 

Reserved 

D + 0x14 + 
(0x10 * n) 

Reserved 

FB_DMAm_SIZEn 

D + 0x18 + 
(0x10 * n) 

FB_DMAm_ADDRESSn 

D + 0x1C + 
(0x10 * n) 

 

6.2.1

 

FB_DMA

M

_A

CTION 

(R

EAD

/W

RITE

)

 

 

After writing to the Action register, the driver should poll the Last_Action register (below) until it reads the same value.  This shows that the 
action has been performed by the DMA state machine.  This is especially important when entering and exiting the Clear state. 

 

0x00 = Clear: Clear the Current Buffer field, the internal offset counters, and the FIFO.  DMA is stopped. 

 

0x01 = Go: Starts DMA 

 

0x02 = Pause: DMA transfers are stopped, but all internal registers maintain their state. During PAUSE you will still receive 
Stat_Underflow and Stat_Overflow interrupts. After PAUSE, you may transition to GO or CLEAR. 

 

0x03 = Halt: Buffer has been filled that has the HALT bit set, or has attempted to use a buffer with th

Valid

 bit cleared. After HALT, 

you must transition to CLEAR. 

6.2.2

 

FB_DMA

M

_L

AST

_A

CTION 

(R

EAD

/W

RITE

)

 

 

The DMA Engine writes the value of FB_DMAm_Action to this register after it has completed this channel.  This indicates to the driver that the 
last command has been processed.  It specifically aids the transition to Clear.  When transitioning to Clear, the driver should wait until 
FB_DMAm_Last_Action indicates that the Clear has been processed before allowing any other Action changes. 

The driver may also write a value to this register and then poll the register to see when the value changes.  This method can be used to detect 
when the DMA engine services the channel without an Action change. 

6.2.3

 

FB_DMA

M

_S

ETUP 

(R

EAD

/W

RITE

)

 

 

 

B0:IntEna: Set to ‘1’ to enable the DMA engine to generate interrupts on completion of a buffer. 

 

B1:ErrIntEna: Set to ‘1’ to enable the DMA engine to generate interrupts on error. 

 

B2:Direction (RO or R/W): Set to ‘1’ to transfer from the FPGA to the PCI bus.  Clear to ‘0’ to transfer from the PCI bus to the 
FPGA. 

 

B3:IgnoreUsed: Set to ‘1’ to prevent an error condition when accessing a buffer with th

Used

 bit set.  When "IgnoreUsed" is set, the 

hardware will still set the Used_Desc bit (below) if the next buffer has the Used bit set.  However, it will not generate an interrupt, and 
will not PAUSE the DMA engine.  Examples are continuous output from a DAC, or very large Pre-trigger buffering using system 
memory. 

Содержание DM35218HR

Страница 1: ...RTD Embedded Technologies Inc AS9100 and ISO 9001 Certified DM35418HR DM35218HR PCI Express Data Acquisition Board User s Manual BDM 610010041 Rev F...

Страница 2: ...rtd com ii DM35418HR DM35218HR User s Manual BDM 610010041 Rev F RTD Embedded Technologies Inc 103 Innovation Boulevard State College PA 16803 USA Telephone 814 234 8087 Fax 814 234 5218 www rtd com...

Страница 3: ...ty of their respective owners Failure to follow the instructions found in this manual may result in damage to the product described in this manual or other components of the system The procedure set f...

Страница 4: ...16 Other Connectors 16 3 3 3 Jumpers 16 3 3 4 LEDs 17 LED 0 Clock Reset 17 LED 1 Clock Status 17 LED 2 SYNCBUS Lock 17 LED 3 Clock Select 17 3 4 Steps for Installing 18 4 IDAN Connections 19 4 1 Modul...

Страница 5: ...Only 35 6 1 6 GBC_SYS_CLK_FREQ Read Only 35 6 1 7 GBC_USER_ID Read Only 36 6 1 8 GBC_IRQ_STATUS Read Clear 36 6 1 9 GBC_DIRQ_STATUS Read Clear 36 6 1 10 GBC_EOI Read Clear 36 6 1 11 FBn_ID Read Only 3...

Страница 6: ...ad Write 46 6 5 6 CLK_DIV Read Write 46 6 5 7 CLK_DIV_CNTR Read Only 46 6 5 8 POST_STOP_CONVERSIONS Read Write 47 6 5 9 CONVERSION_CNT Read Only 47 6 5 10 INT_ENA Maskable Read Write 47 6 5 11 INT_STA...

Страница 7: ...4 Functional Characteristics 11 Table 5 CN3 Single Ended Mode Pin out 15 Table 6 CN4 Differential Mode Pin out 16 Table 7 CN4 Single Ended Mode Pin out 16 Table 8 CN5 Pin out 16 Table 9 IDAN DM35418...

Страница 8: ...and messages o Message Signaled Interrupt MSI support Analog inputs o 4 8 channels high speed inputs with independent sampling or simultaneous sampling o 1 538 MSPS maximum input sampling rate o 18 bi...

Страница 9: ...a custom built RTD HiDAN or HiDANplus High Reliability Intelligent Data Acquisition Node Contact RTD sales for more information on our high reliability systems 1 4 Contact Information 1 4 1 SALES SUPP...

Страница 10: ...77 A DM35218HR Active 1 18 A PCIe 104 Bus Differential Output Voltage 0 8 1 2 V DC Differential TX Impedance 80 120 Differential Input Voltage 0 175 1 2 V DC Differential RX Impedance 80 120 Electric...

Страница 11: ...12mA 0 0 4 V VOH Output High Voltage IO 12mA 2 4 3 3 V 3 3V Output CN3 100 mA SyncBus LVDS Differential Input Voltage 2 4 V Input Voltage Threshold 0 05 0 05 V Differential Output Voltage IO 4 A 0 48...

Страница 12: ...ated using a Blackman Hanning three term window Figure 1 Channel FFT 2 1 2 ANALOG INPUT HISTOGRAMS In Figure 2 you can see a histogram of samples from sampling a grounded input in 10 V differential in...

Страница 13: ...our system When removing it from the bag hold the board at the edges and do not touch the components or connectors Handle the board in an antistatic environment and use a grounded workbench for testin...

Страница 14: ...ctor The PCIe connector is the connection to the system CPU The position and pin assignments are compliant with the PCI 104 Express Specification See PC 104 Specifications on page 54 The DM35418HR DM3...

Страница 15: ...able 5 CN3 Single Ended Mode Pin out DIO0 1 2 1 DIO0 0 DIO0 3 4 3 DIO0 2 DIO0 5 6 5 DIO0 4 DIO0 7 8 7 DIO0 6 DIO0 9 10 9 DIO0 8 DIO0 11 12 11 DIO0 10 DIO0 13 14 13 DIO0 12 DIO0 15 16 15 DIO0 14 GND 18...

Страница 16: ...d Mode Pin out No Connect 2 1 ADC0 0 GND 4 3 GND No Connect 6 5 ADC1 0 GND 8 7 GND No Connect 10 9 ADC2 0 GND 12 11 GND No Connect 14 13 ADC3 0 GND 16 15 GND Reserved 18 17 Reserved GND 20 19 GND Rese...

Страница 17: ...t When on the system clock is no longer in reset LED 1 Clock Status This LED blinks when the systems clock is running LED 2 SYNCBUS Lock This LED is on when using the SYNCBUS and the clock is locked L...

Страница 18: ...nnector are properly positioned 6 Check the stacking order make sure all of the busses used by the peripheral cards are connected to the cpuModule 7 Hold the module by its edges and orient it so the b...

Страница 19: ...you are ready to install it into your system When removing it from the bag hold the module by the aluminum enclosure and do not touch the components or connectors Handle the module in an antistatic en...

Страница 20: ...4 21 22 ADC5 0 CN4 22 23 GND CN4 23 24 GND CN4 24 25 ADC6 0 CN4 25 26 ADC6 0 CN4 26 27 GND CN4 27 28 GND CN4 28 29 ADC7 0 CN4 29 30 ADC7 0 CN4 30 31 GND CN4 31 32 GND CN4 32 33 DAC0 0 CN4 33 34 GND CN...

Страница 21: ...SYNC0 CN5 1 22 ADC0 0 CN4 2 23 ADC1 0 CN4 5 24 GND CN4 8 25 GND CN4 11 26 ADC3 0 CN4 14 27 ADC4 0 CN4 17 28 GND CN4 20 29 GND CN4 23 30 ADC6 0 CN4 26 31 ADC7 0 CN4 29 Table 10 IDAN DM35418 62 Pin Hig...

Страница 22: ...CN4 7 5 DIO0 8 CN4 9 6 DIO0 10 CN4 11 7 DIO0 12 CN4 13 8 DIO0 14 CN4 15 9 GND CN4 17 10 DIO0 16 CN4 19 11 DIO0 18 CN4 21 12 DIO0 20 CN4 23 13 DIO0 22 CN4 25 14 DIO0 24 CN4 27 15 DIO0 26 CN4 29 16 DIO0...

Страница 23: ...ed CN4 22 23 GND CN4 23 24 GND CN4 24 25 Reserved CN4 25 26 Reserved CN4 26 27 GND CN4 27 28 GND CN4 28 29 Reserved CN4 29 30 Reserved CN4 30 31 GND CN4 31 32 GND CN4 32 33 DAC0 0 CN4 33 34 GND CN4 34...

Страница 24: ...CN5 1 22 ADC0 0 CN4 2 23 ADC1 0 CN4 5 24 GND CN4 8 25 GND CN4 11 26 ADC3 0 CN4 14 27 Reserved CN4 17 28 GND CN4 20 29 GND CN4 23 30 Reserved CN4 26 31 Reserved CN4 29 Table 13 IDAN DM35218 62 Pin Hig...

Страница 25: ...CN4 7 5 DIO0 8 CN4 9 6 DIO0 10 CN4 11 7 DIO0 12 CN4 13 8 DIO0 14 CN4 15 9 GND CN4 17 10 DIO0 16 CN4 19 11 DIO0 18 CN4 21 12 DIO0 20 CN4 23 13 DIO0 22 CN4 25 14 DIO0 24 CN4 27 15 DIO0 26 CN4 29 16 DIO0...

Страница 26: ...DAN system 3 Remove the module from its anti static bag 4 Check that pins of the bus connector are properly positioned 5 Check the stacking order make sure all of the busses used by the peripheral car...

Страница 27: ...3 SyncBus This module features an LVDS SyncBus The SyncBus provides the user with three event based triggering lines and one 10MHz based master clock All four are software configurable for input outpu...

Страница 28: ...module also provides 28V overvoltage input protection to the analog connector CN4 The DM35418HR DM35218HR has a programmable input This provides the user the ability to select single ended differenti...

Страница 29: ...MA 10 Start the ADC MODE Go 5 6 2 SIMPLIFIED BLOCK DIAGRAM OF ANALOG INPUT The following figure shows the front end circuit for the DM35418HR DM35218HR It also shows the names of the FPGA registers in...

Страница 30: ...erence between the input vs output from the PGA 5 4 3 2 Differential Bipolar 10V Full scale range The following figure shows an example how to set up the FPGA registers for a differential bipolar sign...

Страница 31: ...ow to set up the FPGA registers for a differential unipolar signal with a gain of 1 Also provided are graphs showing the difference between the input vs output from the PGA Figure 13 Unipolar Differen...

Страница 32: ...AC converter has a 511 sample FIFO for DMA Each sample is packed into 32 bits right justified and sign extended 5 7 1 INITIALIZING THE DAC CONVERTER The following is a list of the typical steps needed...

Страница 33: ...1 1 8 n a Table 17 Key DAC Bit Weight DAC Bit Weight Ideal Output Voltages mV 2 5 to 2 5 V 5 to 5 V 10 to 10 V 1111 1111 1111 1111 2499 9237 4999 8474 9999 6948 1000 0000 0000 0001 0 0763 0 1526 0 305...

Страница 34: ...cky Registers This is a status read register When a bit in this register has a value of 1 a 1 needs written to that bit to reset the register to 0 This is typically used for interrupt status registers...

Страница 35: ...ID 0x3F4 FB61_OFFSET 0x3F8 FB61_OFFSET_DMA 0x3FC reserved 6 1 1 GBC_FMT READ ONLY This register contains the format ID that is used in this board B 7 4 Major Format Changes to this value indicate chan...

Страница 36: ...his register corresponds to one of the Function Blocks bit 0 corresponds to FB0 whose ID and OFFSET are at 0x020 etc Bits 60 through 63 are reserved This is a sticky register and the driver clears it...

Страница 37: ...are stopped but all internal registers maintain their state During PAUSE you will still receive Stat_Underflow and Stat_Overflow interrupts After PAUSE you may transition to GO or CLEAR 0x03 Halt Buff...

Страница 38: ...low occurred on the FIFO 6 2 8 FB_DMAM_STAT_COMPLETE READ WRITE This register is used to determine the source of a DMA interrupt The bits are cleared by writing 0x00 to the byte B0 Buffer_Complete R C...

Страница 39: ...ine will halt and the Current_Buffer will be set to 0 6 2 16 FB_DMAM_STATN READ CLEAR B0 Used R C DMA engine sets to 1 to indicate that it has completely used this descriptor The driver must clear thi...

Страница 40: ...Threshold Pacer Tick etc FB 0x24 INT_STAT Reserved FB 0x28 CLK_SRC_GBL3 CLK_SRC_GBL2 Reserved FB 0x2C CLK_SRC_GBL7 CLK_SRC_GBL6 CLK_SRC_GBL5 CLK_SRC_GBL4 FB 0x30 AD_CONFIG Maskable register 16 bit ADC...

Страница 41: ...e channels has exceeded the High or Low threshold o 0x09 Channel Threshold Inverted All of the channels are within the High and Low threshold o 0x0A CLK_GBL2 Inverted o 0x0B CLK_GBL3 Inverted o 0x0C C...

Страница 42: ...d Reading a value of 0 indicates that the event has not occurred Writing a 1 will clear that bit B0 Sample A sample has been taken B1 Channel Threshold One of the channels has exceeded the High or Low...

Страница 43: ...ar operation 1 unipolar operation B 1 0 MODE o 00 input connected to 5V VREF o 01 single ended operation o 11 differential operation 6 4 16 CHN_FIFO_DATA_CNT READ This register shows the current sampl...

Страница 44: ...low threshold 6 4 20 CH_THRESH_LOW READ WRITE Signed 32 bit value indicating the low threshold If the input signal drops below this value an interrupt or clock can be generated until the signal goes a...

Страница 45: ...ENA Conversion Start Stop Error Channel FB 0x24 INT_STAT Reserved FB 0x28 CLK_SRC_GBL3 CLK_SRC_GBL2 Reserved FB 0x2C CLK_SRC_GBL7 CLK_SRC_GBL6 CLK_SRC_GBL5 CLK_SRC_GBL4 FB 0x30 DA_CONFIG Maskable regi...

Страница 46: ...annel Marker One of the channels has an enabled marker o 0x09 Channel Marker Inverted No enabled markers are asserted o 0x0A CLK_GBL2 Inverted o 0x0B CLK_GBL3 Inverted o 0x0C CLK_GBL4 Inverted o 0x0D...

Страница 47: ...n A value has been sent B 1 Channel Marker One of the channels has an enabled marker B 2 Reserved B 3 Start Trigger B 4 Stop Trigger B 5 Post Stop Conversions Completed 6 5 12 CLK_SRC_GBLN NOTE If a C...

Страница 48: ...nerate an interrupt when a certain part of the waveform is sent to the DAC This allows an automated indication to the application software as to the state of the data being sent to the DAC Marker bit...

Страница 49: ...th the Digital I O pins as follows Bit CN3 Pin Number Signal Name 31 34 DIO0 31 30 33 DIO0 30 29 32 DIO0 29 28 31 DIO0 28 27 30 DIO0 27 26 29 DIO0 26 25 28 DIO0 25 24 27 DIO0 24 23 26 DIO0 23 22 25 DI...

Страница 50: ...nctional Block Offset 0x03 0x02 0x01 0x00 Header FB 0x00 FB_ID FB 0x04 FB_DMA_BUFFERS FB_DMA_CHANNELS Reserved Reserved FB 0x08 Reserved TEMPERATURE_VAL 6 7 2 TEMPERATURE_VAL READ ONLY The current val...

Страница 51: ...lock is using the local clock or the SyncBus clock If the SyncBus PLL loses its lock this register will revert back to the local clock B0 Select main clock input 0 local clock 1 SyncBus clock 6 8 3 PL...

Страница 52: ...0x0D CLK_GBL5 Inverted o 0x0E CLK_GBL6 Inverted o 0x0F CLK_GBL7 Inverted 6 8 7 DIRECTION READ WRITE Selects the direction of SYNCBUS_N NOTE When synchronizing multiple boards enabling multiple output...

Страница 53: ...ng with the least number of modules in the system possible Swap Components Try replacing parts in the system one at a time with similar parts to determine if a part is faulty or if a type of part is c...

Страница 54: ...on 8 1 PC 104 Specifications A copy of the latest PC 104 specifications can be found on the webpage for the PC 104 Embedded Consortium www pc104 org 8 2 PCI and PCI Express Specification A copy of the...

Страница 55: ...acts of God or other contingencies beyond the control of RTD Embedded Technologies or as a result of service or modification by anyone other than RTD Embedded Technologies Except as expressly set for...

Страница 56: ...ologies Inc 103 Innovation Boulevard State College PA 16803 USA Telephone 814 234 8087 Fax 814 234 5218 www rtd com sales rtd com techsupport rtd com Copyright 2016 by RTD Embedded Technologies Inc Al...

Отзывы: