background image

8.4.

Interrupt-Enable-Register

The interrupt-enable-register is used to enable or disable some or all interrupt
sources. Interrupts are enabled if the corresponding bit is set.

Read and write BaseAd 16

Bit 0

Interrupt if status changes to “Counter 1 running”

Bit 1

Interrupt if status changes to “Counter 1 stopped”

Bit 2

Interrupt if status changes to “Counter 1 fifo not empty"

Bit 3

Interrupt if fifo overflow on counter 1

Bit 4

Interrupt if incremental step error on counter 1

Bit 12

Interrupt if status changes to “Counter 2 running”

Bit 13

Interrupt if status changes to “Counter 2 stopped”

Bit 14

Interrupt if status changes to “Counter 2 fifo not empty"

Bit 15

Interruptif fifo overflow on counter 2

Bit 16

Interrupt if incremental step error on counter 2

Bit 22

Interrupt on changes at digital input 0

Bit 23

Interrupt on changes at digital input 1

Bit 24

Interrupt on changes at digital input 2

Bit 25

Interrupt on changes at digital input 3

Bit 26

Interrupt if status changes to “Reference counter running”

Bit 27

Interrupt if status changes to “Reference counter stopped”

Bit 28

Interrupt if incremental step error on reference counter

Bit 31

Global interrupt enable
0 All interrupts disabled
1 Interrupts enabled

8. The registers of the PCI 1389-S02

ERMA-Electronic GmbH

16

Summary of Contents for PCI 1389-S02

Page 1: ...ERMA Electronic GmbH Electronic GmbH PCI 1389 S02 Incremental Counter Card Special Application Instruction Manual ...

Page 2: ...s suppliers shall be liable for any other damages whatsoever including without limitation damages for loss of business profits business interruption or other pecuniary loss arising out of or inability to use this product All products from ERMA Electronic are warranted against defective material and workmanship for a period of two 2 years from date of delivery If it is necessary to return the produ...

Page 3: ...Installation 8 7 1 Hardware configuration 8 7 1 1 Component layout 9 7 1 2 Connection of encoders 10 7 1 3 Connection of digital inputs 10 7 1 4 Connection of digital outputs 10 7 2 Open PC 10 7 3 Card insertion 10 7 4 Close PC 11 7 5 Driver installation 11 7 5 1 Windows 95 98 ME 11 7 5 2 Windows NT4 0 11 7 5 3 Windows 2000 11 ERMA Electronic GmbH 2 ...

Page 4: ...r 16 8 5 Interrupt Status Register 17 8 6 Reference register 17 8 7 IO register 18 9 Programming 19 9 1 Programming under Windows 95 98 ME 19 9 2 Programming under Windows NT4 0 2000 19 9 3 Programming via the PCI1389S02 DLL 19 10 Pin assignment 23 11 Troubleshooting 24 12 Technical datas 25 13 Ordering information 25 Stand Mai 2003 PCI1389A PUB PCI1389AS02 Technical subjects to change 3 ERMA Elec...

Page 5: ...nspect the pc cards carton for obvious damages Be sure there are no shipping and handling damages on the card before processing Do not apply power to the card if it has damages The warranty does not apply to defects resulting from action of buyer such as mishandling improper interfacing operation outside of design limits improper repair or unauthorized modifications 2 Repair Maintenance and repair...

Page 6: ...els The two up down counter can be programmed for 1 2 or 4 fold mode counting It is also possible to use the counters as event counters Alternatively there is the possibility to measure the time event of each increment with a resolution of 5 MHz or 10 MHz Additional it is possible to trigger on the change of the counting direction The reference counter is able to trigger the two up down counters W...

Page 7: ...ring can be programmed separatly for each counter to softwa retriggering reference counter triggering digital input triggering or time trigge red mode It is possible to measure up to 10 000 values per second depending on the long latency of Microsoft Windows On faster PC s the number of meas urements per second increases The triggering on the change of the counting direction allows the measuring o...

Page 8: ...5 1 Block diagram Counter 1 Counter 2 Reference counter IO IRQ PCI Decoder 5 Function 7 ERMA Electronic GmbH ...

Page 9: ...s should be as far as possible If necessary protective screen or metal enclosures must be provided Coils of relays must be supplied with filters Parallel wiring of input signals and AC power lines should be avoided 7 Installation The installation of the card should only be done by qualified personal only Before installation all components have to be disconnected from power supply Because within PC...

Page 10: ...7 1 1 Component layout 7 Installation 9 ERMA Electronic GmbH ...

Page 11: ...ion of digital inputs The PCI 1389 S02 contains 4 digital inputs These inputs are highside driven and high activ The input circuit is build as voltage divider 100kΩ fixed resistor and R33 7 1 4 Connection of digital outputs The PCI 1389 S02 contains 4 digital outputs These outputs are short circuit protected highside switches with a voltage range of 7 30 VDC 7 2 Open PC Before opening the pc case ...

Page 12: ...ust have administrator rights to install drivers 7 5 1 Windows 95 98 ME Windows will recognize the new card and ask for the driver The driver is on the disc within the directory Win9x ATTENTION Windows 95 does not support PCI SubvendorID So you can t use different cards with AMCC S5920Q If that happens please use Windows 98 instead 7 5 2 Windows NT4 0 You have to start the program SETUP EXE The pr...

Page 13: ... space BaseAddress0 is used for the PCI target controller BaseAddress1 for the functions of the card If the PCI1389S02 DLL is used described later these informations are handled within the dll 8 1 Counterregisters for Counter 1 and 2 Read BaseAddress1 0 Read fifo of counter 1 BaseAddress1 4 Read fifo of counter 2 Write BaseAddress1 0 Set counter 1 value BaseAddress1 4 Set counter 2 value The 32 Bi...

Page 14: ... count direction Bit 7 Polariy of reset input of counter 1 0 High resets counter 1 Low resets counter Bit 8 Counter 1 enable 0 Counter stopped 1 Counter started Bit 9 Resetof counter 1 through reference counter enable 0 Disabled 1 Enabled Bit 13 12 Mode of counter 2 00 Inkremental evaluation 1 fold 01 Inkremental evaluation 2 fold 10 Inkremental evaluation 4 fold 11 Event counting Bit 15 14 Trigge...

Page 15: ... falling edge Bit 27 26 Mode of reference counter Counter 4 00 Inkremental evaluation 1 fold 01 Inkremental evaluation 2 fold 10 Inkremental evaluation 4 fold 11 Event counting Bit 28 Direction of reference counter Counter 4 0 normal direction 1 reverse direction Bit 29 Polarity of reset input of reference counter Counter 4 0 High resets counter 1 Low resets counter Bit 30 Mode of reference counte...

Page 16: ... Counter 2 waiting Bit 13 Status Counter 2 running Bit 14 Status Counter 2 stopped Bit 15 Status Counter 2 fifo not empty data present Bit 16 Status Counter 2 fifo overflow data lost Bit 17 Status Incremental step error on counter 2 missing increment Bit 26 Status Reference counter waiting Bit 27 Status Reference counter running Bit 28 Status Reference counter stopped Bit 29 Status Incremental ste...

Page 17: ...it 13 Interrupt if status changes to Counter 2 stopped Bit 14 Interrupt if status changes to Counter 2 fifo not empty Bit 15 Interruptif fifo overflow on counter 2 Bit 16 Interrupt if incremental step error on counter 2 Bit 22 Interrupt on changes at digital input 0 Bit 23 Interrupt on changes at digital input 1 Bit 24 Interrupt on changes at digital input 2 Bit 25 Interrupt on changes at digital ...

Page 18: ...pty Bit 15 Counter 2 fifo overflow Bit 16 Counter 2 incremental step error Bit 22 Digital input 0 changed Bit 23 Digital input 1 changed Bit 24 Digital input 2 changed Bit 25 Digital input 3 changed Bit 26 Status has changed to Reference counter running Bit 27 Status has changed to Reference counter stopped Bit 28 Reference counter incremental step error 8 6 Reference register The reference regist...

Page 19: ...t 2 State of digital output 2 read back Bit 3 State of digital output 3 read back Bit 4 State of digital input 0 Bit 5 State of digital input 1 Bit 6 State of digital input 2 Bit 7 State of digital input 3 Write BaseAddress1 28 Bit 0 Set digital output 0 Bit 1 Set digital output 1 Bit 2 Set digital output 2 Bit 3 Set digital output 3 8 The registers of the PCI 1389 S02 ERMA Electronic GmbH 18 ...

Page 20: ...l functions for the PCI 1389 S02 are placed in a dll So there is no need to program the PCI 1389 S02 directly This dll contains 2 types of functions At first there are low level function which can be used to handle the cards register The second set of functions are high level functions These high level functions are using a bigger software fifo to handle higher trigger rates The PCI1389S02 DLL sho...

Page 21: ...are using the register values as parameters The following functions are implemented char PCI1389S02_WriteCNT1 unsigned char Card unsigned long Value char PCI1389S02_ReadCNT1 unsigned char Card unsigned long Value char PCI1389S02_WriteCNT2 unsigned char Card unsigned long Value char PCI1389S02_ReadCNT2 unsigned char Card unsigned long Value char PCI1389S02_WriteMode unsigned char Card unsigned long...

Page 22: ...d char PCI1389S02_SetMode unsigned char Card struct _PCI1389S02_MODE Mode This functions will set the mode of the counters with a single call To keep the programming easy all possible values are predefined and kept the same for all counters Which value can be used for which counter can be seen in the file PCI1389S02 H The values can be ORed together char PCI1389S02_GetMode unsigned char Card struc...

Page 23: ...e unsigned long n This function will read counter values out of the fifo If no values are saved n will be set to 0 If values are read n will show the amount of values not bytes char PCI1389S02_GetCNT2Values unsigned char Card long buffer un signed long buffersize unsigned long n See function GetCNT1Values but used for counter 2 char PCI1389S02_LatchCounter unsigned char Card unsigned char Flags Th...

Page 24: ...ter2_B Counter2_B Counter2_Z Counter2_Z n c n c n c n c n c n c Counter4_A Counter4_A Counter4_B Counter4_B Counter4_Z Counter4_Z Ground Power supply for digital outputs Ground Power supply for digital outputs Digital input bit 0 Digital input bit 1 Digital input bit 2 Digital input bit 3 Digital output bit 0 Digital output bit 1 Digital output bit 2 Digital output bit 3 User name Don t connect Do...

Page 25: ... case The dimensions of the board are standardized But the dimension of the PC cases are sometimes out of the prescribed dimensions The cable of the peripherie should be tested The LED s V1 and V2 will show the state of the FPGA If both are off after booting this will show an error of IC3 FPGA If V1 keeps on after booting while V2 is off this will show an error on the PROM IC4 If that happens you ...

Page 26: ...utputs highside switches Output voltages 7 30 V DC Output current max 1A current limited to about 1 5 A Isolation voltage 500 V DC Inputs 4 digital inputs high activ Input voltage 5 V Input resistance 100 kΩ Isolation voltage 500 VDC Connectors 37 SUB D female EMC corresponding to 89 336 EWG Operating temperature 0 to 40 C Storage temperature 25 to 85 C Dimensions 200 x 113 mm 13 Ordering informat...

Page 27: ......

Page 28: ...ERMA Electronic GmbH Electronic GmbH ERMA Electronic GmbH Max Eyth Straße 8 D 78194 Immendingen Telefon 49 7462 2000 0 Fax 49 7462 2000 29 email info erma electronic com Web www erma electronic com ...

Reviews: