background image

Manual ME-582x Series 

Revision 0.9 

 

 

4  Programming 

page 27 

Meilhaus Electronic 

 

 

Picture 154: Interrupt options 

 

Please observe the ME-iDS manual and the ME-iDS help file (*.chm) for 
the procedure. You can open both of these documents through the “ME-
iDS Control Center” or through the Windows Start menu. 

 

4.2.1 

Bit-Pattern Change 

In the bit-pattern change mode, one or more bits that are to be monitored 
for a change of state can be defined (masked). A 32-bit-wide argument per 
subdevice contains the mask. For each input pin both one bit for rising 
edge and one bit for falling edge is available. If the state of at least one bit 
masked with a "1" changes (0 

→ 1 or 1 → 0), an interrupt is issued (see 

picture 16 on page 27). 

In what is known as the "extended format" of interrupt handling (see the 
ME-iDS manual), two bits are available for the interrupt status of each pin. 
One is for the rising edge, and one for the falling edge. The bits for the fall-
ing edges are assigned to the bit b 

15…0, while the bits for the rising 

edges are assigned to the bits b 

31…16. 

 

Picture 16: Bit-pattern change 

 

Example

 (see picture 16): 

By writing the value 0x00800004 Hex as a mask value (see parameter 

<iIrqArg>

 of the function 

meIOIrqStart())

, bit 2 is monitored for a falling 

edge, and bit 7 for a rising edge. A rising edge now is to arrive at bit 7, so 
that an interrupt is issued and in the interrupt status value bit b 23 returns 

Summary of Contents for ME-582 Series

Page 1: ...Meilhaus Electronic Manual ME 582x Series Opto Isolated Digital I O Board with Bit Pattern Detection 3 x 16 bit Counters 8254 compatible alternatively Frequency Measurement and Pulse Generator...

Page 2: ...information contained in this manual has been reviewed with great care and is believed to be complete and accurate Meilhaus Electronic as sumes no responsibility for its use any infringements of pate...

Page 3: ...ion 9 2 2 Test Program 9 3 Hardware 10 3 1 Block Picture 10 3 2 ME 582x PXIe 11 3 3 ME 582x PCIe 11 3 4 Digital Input Output 12 3 4 1 Opto Isolated Inputs 12 3 4 2 Opto Isolated Outputs 13 3 4 2 1 Sin...

Page 4: ...ard Operation Modes 26 4 1 3 2 Pulse Width Modulation 26 4 2 Interrupt Operation 26 4 2 1 Bit Pattern Change 27 4 2 2 Bit Pattern Compare 28 5 Appendix 29 A Specification 29 B Pinout 36 B1 78 pin D Su...

Page 5: ...using a PC Depending on type install the models of the ME series into a free PCI Express slot PCIe versions or a free PXI Express slot 3 HE PXI express versions For information on how to install a plu...

Page 6: ...ro priate precautions to avoid any unforeseeable misapplication must be taken by the user 1 2 Package Contents We take great care to ensure your delivery is complete Nonetheless please check the list...

Page 7: ...h the concept of configurable subde vices the subdevice 0 and subdevice 5 ME 5821 only can also be used as a frequency counter Four 8 independent channels are avail able to measure the frequency and d...

Page 8: ...ents The ME 582x may be installed into any PC Intel Pentium processor with a free standard PCI Express or PXIExpress slot The board is sup ported by the Meilhaus Electronic Intelligent Driver System M...

Page 9: ...y on your computer e g C Temp Meilhaus ME iDS Use the Meilhaus Electronic Intelligent Driver System ME iDS for pro gramming your new data acquisition hardware For installation and opera tion of the dr...

Page 10: ...re Picture 1 Block picture of ME 5820 21 Pinout picture of the 78 pin D sub female connector in the appendix see Pinout page 36 In the following chapters you will learn more about the external wiring...

Page 11: ...Manual ME 582x Series Revision 0 9 3 Hardware page 11 Meilhaus Electronic 3 2 ME 582x PXIe Picture 2 ME 5821 PXIe 3 3 ME 582x PCIe Picture 3 ME 5821 PCIe...

Page 12: ...16 opto isolated inputs port A and 16 opto isolated outputs port B The ME 5821 has 32 opto isolated inputs port A and port C and 32 opto isolated outputs port B and port D Due to the opto isola tion...

Page 13: ...t allow a selection of sink and source via software Depending on the application the user can switch between low active outputs sink driver standard set ting and high active outputs source driver via...

Page 14: ...oltage Picture 7 Collector current against duty cycle and number of active channels in use To supply the sink output drivers an external power supply has to be con nected to VCC_EXT Pin 10 20 with suf...

Page 15: ...mpera ture of typ 130 C is still exceeded the overloaded channel remains disa bled and is only reactivated if the temperature decreases below TCR 110 C Channels in standard no overload condition can b...

Page 16: ...ins are marked with FI_x and FO_x in the pinout picture on page 24 The remaining I O channels of the digital ports cannot be used in this configuration Note For the configuration pulse generator FO ta...

Page 17: ...to be in the range of 24 30 V The counter outputs are equipped with pull up resistors RUP 4 7 k For programming the timers see chapter 4 1 on page 22 3 6 1 Wiring of the Counters Picture 9 Wiring of...

Page 18: ...with the help of counters 0 2 The duty cycle can be varied in the range of 1 99 in steps of 1 The prescaler has to be sourced with an external base clock of max 250 kHz This results in a max output si...

Page 19: ...igital input port You can select one of the modes bit pattern change and bit pattern com pare As soon as the specified event occurs an interrupt is issued and passed directly to the PC The digital inp...

Page 20: ...ilhaus de download ME iDS Further details regarding the assignment of the subdevices and device specific arguments can be found in the help file help file format under Windows chm which can be accesse...

Page 21: ...f the Configuration Subdevice 5 DI FI Digital input DI single 16 bit port 0 Frequency input FI single 4 channels 1 Subdevice 6 DO FO Digital output DO single 16 bit port 0 Frequency output FO single 4...

Page 22: ...direction is determined by the ME 582x hard ware opto couplers In power down state and after switching on the PC all outputs are in a high impedance state Only if 1 is written the output changes to c...

Page 23: ...wiring of the digital ports 4 1 2 Frequency Input Output ME 5820 ME 5821 Before you can use the Frequency measurement or Pulse generator modes it is necessary before opening your application to run th...

Page 24: ...ime reference is provided by a 66 MHz counter It is configured using the meIOSingleConfig function A period of 15 15 ns follows from this and is defined as the smallest unit of time It is referred to...

Page 25: ...o 3 kHz and with a resolution of 1 tick On the ME 5820 all 4 pulse genera tor channels FO_B0 3 are addressed as subdevices of type ME_TYPE_FO subtype ME_SUBTYPE_SINGLE Each channel can be programmed i...

Page 26: ...he wiring shown in picture 10 on page 19 you can simplify program ming considerably using the functions meUtilityPWMStart Stop for this op eration mode see also ME iDS manual and ME iDS help file 4 2...

Page 27: ...state of at least one bit masked with a 1 changes 0 1 or 1 0 an interrupt is issued see picture 16 on page 27 In what is known as the extended format of interrupt handling see the ME iDS manual two bi...

Page 28: ...tion meIOIrqWait We rec ommend using what is known as the extended format to obtain detailed information about the triggering edge 4 2 2 Bit Pattern Compare In the bit pattern compare mode the bit pat...

Page 29: ...put port opto iso lated subdevice 1 Single 16 bit output port opto iso lated Ports ME 5821 only subdevice 5 Single 16 bit input port opto iso lated subdevice 6 single 16 bit output port opto iso lated...

Page 30: ...Iin Uin 24 V 5 5 6 mA Limiting Values Measured Quantity Criterion Condition Explanation Value URWM over voltage pro tection for inputs max 600 W pulse power at a pulse width of 1 ms 64 4 V Opto Isola...

Page 31: ...UOUT 50 V CL 15 pFina 0 1 1 s toff switch off time RL 125 UOUT 50 V CL 15 pF 0 2 1 s Output current The maximum current per output IC depends of the saturation voltage UCE and is limited by the power...

Page 32: ...Switching Times Measured Quantity Test Criterion MIN Type MAX Unit ton switch on time RL 47 to 90 Uout 64 120 s toff switch off time RL 47 to 10 Uout 89 120 s dUout dt on slope on switch on RL 47 up...

Page 33: ...Tmin sym Tmax asym Tmax sym 3 3 s 300 kHz 16 25 s 0 06 Hz 32 5 s 0 03 Hz Duty cycle variable depending on T measurable in steps of 1 tick Resolution 1 tick 15 15 ns Accuracy 15 15 ns Operating modes...

Page 34: ...ly for opto couplers Uext 24 30 V Level for Counter Outputs OUT_x Type Open Collector ULmax Uext IOut max 30 mA Level for Counter Inputs CLK_x Gate_x Logic level inverted by opto couplers low active I...

Page 35: ...Express 0 8 1 2 A full load Board dimensions without slot bracket and connector PXI Express 3 U PXI Express board PCI Express 162 mm x 98 mm Connections ST1 78 pin D sub female socket Operating tempe...

Page 36: ...f ME 582x subde vice 0 alternative configuration FO_B0 3 pulse generator outputs of ME 582x subdevice 1 alternative configuration FI_C0 3 frequency measurement input of ME 582x subdevice 5 alternative...

Page 37: ...x Picture 19 78 pin D sub female connector ME 582x These pins can only be used as frequency measurement inputs FI_x resp pulse generator outputs FO_x after appropriate configuration of the correspondi...

Page 38: ...haus Electronic C Accessories We recommend to use high quality connector cables with single shielded lines per channel For further accessories please refer to the current Meilhaus Electronic cat alog...

Page 39: ...52 71 169 eMail sales meilhaus deeMail support meilhaus de Download Server and Driver Update To download current driver versions for Meilhaus Electronic devices as well as manuals in PDF format pleas...

Page 40: ...Features 6 Frequency measurement 16 H Hardware 10 I Important Notes 5 Index 40 Initial Operation 9 Interrupt 21 Interrupt Operation 26 Introduction 5 M ME 582x PCIe 11 ME 582x PXIe 11 Model overview 7...

Reviews: