Home
V1718 & VX1718 User Manual
Contents
1. 9 FIG 2 2 VITIS SEAVE OPERATION re eet 12 FIG 2 3 13 FIG 2 4 STATUS REGISTER eee 16 PIG 2 5 CONTROL REGISTER 17 FIG 2 6 FIRMWARE REVISION REGISTER nr aiiai s 17 FIG 2 7 STATUS REGISTER ososi ERR a ERR ER nba a eR EAE 18 FIG 2 8 INPUT REGISTER 18 BIG 2 9 OUTPUT SET REGISTER 19 56 2 10 OUTPUT SET REGISTER etit 19 Filename Number of pages Page 00106 03 V 1718 MUTx 09 5 V1718 REV9 DOC 62 Is for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 FIG 2 11 INPUT MULTIPLEXER REGISTER ee FIG 2 12 INPUT MULTIPLEXER REGISTER FIG 2 13 OUTPUT MULTIPLEXER SET REGISTER ee FIG 2 14 OUTPUT MULTIPLEXER SET REGISTER eaten sane essen aa FIG 2 15 LED POLARITY SET sies setate dass sena FIG 2 16 LED POLARITY CLEAR REGISTER
2. 57 4 3 38 CAENVME_GetFIFOMOde pt 57 4 3 39 _ 57 4 3 40 a p n 58 4 3 41 CAENVME EnableScalerGate Re 58 4 3 42 CAENVME_DisableScalerGate Ne 58 4 3 43 CAENVME_StartPulseT et 58 4 3 44 CAENVME_StopPulser ee 59 4 3 45 CAENVME IRQEnable rennen rsen resin tenes rin nennen 59 4 3 46 CAENVME IRQbDisable enne tern nnns seen ettet nn 59 4 3 47 444404 4 4 60 4 3 48 CAENVME ReadFlashPage 60 4 3 49 CAENVME_WriteFlashPage pp 60 4 3 50 CAENVME SetInputConf trennen trennen trennen nennen 61 4 3 51 CAENVME SetLocationMonitor 000 000 010000 nn nennen 61 4 3 52 CAENVME SetOutputRegister eese enne eren ener nee 61 4 3 53 _ 1 e aee E EE E a EER Eea 62 LIST OF FIGURES FIG 1 1 MOD V 17 18 BLOCK DIAGRAM Sse e ae EEE EP Gunes 8 FIG 2 1 INTERNAL ARBITRATION FOR VME BUS
3. PLSA_START PLSA_RESET PLSB_START PLSB_RESET SCR_GATE SCR_RESET OUT1 OUT2 OUT3 OUT4 Fig 2 9 Output set register 2 13 9 Output clear register 0x10 D16 write only This register allows to clear the output register pattern 1 Clear 0 Leave previous setting L PLSA START PLSA RESET PLSB START PLSB RESET SCR GATE SCR RESET OUTO OUT1 OUT2 OUT3 OUT4 Fig 2 10 Output set register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 19 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 10 Input Multiplexer Set register OxOB D16 read write This register allows to set the IN O and IN 1 polarity as well as the source of Pulsers Scaler Signals 1 7 set 0 leave previous setting L INO POL INO OR POL IN1 POL PLSA START SOURCE PLSA RES SOURCE PLSB START SOURCE PLSA RES SOURCE SCR GATE SOURCE SCR HIT SOURCE SCR RES SOURCE Fig 2 11 Input Multiplexer register INPUT POLARITY 0 Direct 1 Inverted PULSER START SOURCE 00 SYSRES Button short pressure or Software 01 IN 0 10 2 IN 1 11 IN O OR 1 PULSER A
4. 51 432 CAENVMEB GetScalerGoht 5 35 eet eere 51 4322 CAENVME ReadRegistei dec eripe RU steve e C 51 4 3 23 SetOutp tReglstet corpi pete pine etas 52 4 3 24 CAENVME ClearOutputRe cistern 52 4 3 25 PulseOutputRe sister 52 4 3 26 CAENVME ReadDispl y e EUREN RE eigen Re De pue 53 453221 CABNVME SetArbiter Ly pe eee en e aoo tuo CS MERE REV pe REN ROV ER Ee e oe 53 4 328 CAENVME SetRequester Lype euge rne 54 4 3 29 SetReleaselType oe enge pae tor aruit de Dueb e pan aye pant Lupe rua 54 4 3 30 CABNVME e 54 4 3 31 _ 55 4 3 32 SetFIFOMOde 55 4 3 33 CAENVME GetArbiterType 55 4 3 34 CAENVME GetRequesterType 2 netter rnnt terne tere san ioro e p 56 4 3 35 CAENVME GetRele ase Type riter terti 56 4 3 36 CAENVME GetBusReqLevel esses enne enne 56 4 3 37 _
5. 25 2 138 252 Display 26 Filename Number of pages 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 Tools for Disco very Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 26 Display Control Left register ra ee eaim AERE cR etes 2 13 27 Display Control Right register iecit ertet 2 13 28 Location Monitor Address Low Tegister et 2 13 29 Location Monitor Address High register et 2 13 30 Location Monitor Control register esee 3 TECHNICAL SPECIFICATIONS 5 2 nie prr the etai eel aaa ica XV ev ncm HUE 3 20 POWER REQUIREMENTS rN 333 BRONTPANEL 34 ZBEXIERNAI COMPONENTS 3 4 1 Front panel connectors 3 4 2 3 5 INTERNAL HARDWARE COMPONENTS 3 51 WINE 3 5 2 rp EE 3 6 PROGRAMMABLE 3 6 1 Timer amp Pulse Generator erit tte temet pete rire be erbe Un 3 6 2 3 6 3 on EE 3 6 4 Input Output Register Bi
6. re d m De ls 1 6 ou Z D Z gt 0 mxo R 41 gt INO De T NB is 2 IR 6 0 Ed INPUTO Bl NOOR INT 1 ou Xn INPUT1 5941 4 050 0 a IN1 5 os 00 05 ORI 5 1 De PULSER A 7 B STARTA oOMxB2 UTER AS o 0 O1 AS o SYSRES Hem WA a T Q PUSHBUTTON 2 1 P Ens v COL T L owxs4 p IMXI 6 om 0 2 PULSERB 7 et 4 STARTB OUTPI ORI8 11 Input MUX t M Ue OMX Output MUX MXE TE oMxrl OMXI13 R input Feder d BERR lop re O3 BERR Input Register RESETB LPOL LED Polarity ENCE bi 1 E gt 11 SCALER BE 0 cate END_CNT 1 0 O4 VMON 1 PULSE 01 mil 9 1 IMX 11 pi grad p RUTORES NPO 00106 03 V 1718 MUTx 09 Fig 3 4 Input Output connections scheme LOC MON 2 AD LMADL AM m WRITE IMC LWORD V1718_REV9 DOC Number of pages 62 Page Tools for Discover Document Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 3 8 VME Dataway Display CONTROL ADDRESS DATA GREEN LED E RED LED Fig
7. Is for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 11 IACK Daisy Chain Driver The V1718 can operate as IACK Daisy Chain Driver it drives low the IACKOUT line of the first slot thus starting the chain propagation as soon as it detects an Interrupt Acknowledge cycle by an Interrupt Handler that could be the V1718 itself 2 12 VME64X Cycles not yet implemented Presently the module does not implement the following functions foreseen by the VME64X Unaligned Transfer UAT MD32 cycles 2eVME cycles 08 cycles 64 addresing Cycles terminated with 2 13 Internal registers Table 2 2 Registers map NAME ADDRESS Type Nbit Function STATUS 00 read 16 Status register VME CTRL 01 read write 16 VME control register FW REV 02 read only 16 Firmware revision FW DWNLD 03 read write 8 Firmware download FL ENA 04 read write 1 Flash enable IRQ STAT 05 read only T IRQ status IN_REG 08 read write 7 Front panel input register OUT_REG_S 0 read write 11 Front panel output register set IN MUX S 0B read write 12 Input multiplexer set OUT MUX S 0C read write 15 Output multiplexer set LED POL S 0 read write 7 LED polarity set OUT REG C 10 write only 11 Front panel output register clear IN MUX C 11 write only 12 Input multiplexer clear OUT MUX C 12
8. PROG_3 ON BASE ADDRESS LOW SW8 BASE ADDRESS HIGH SW9 PROG_3 OFF BASE ADDRESS LOW SW8 BASE ADDRESS HIGH SW9 Fig 3 2 PROG 3 Switch setting PROG 4 Type DIP switch Function not used DIP switch Function it allows the selection between NIM and TTL I O signals RIGHT TTL LEFT NIM 3 5 2 Firmware jumpers One jumper allows to select whether the Standard or the Back up firmware must be loaded at power on jumper position is shown in Fig 3 3 NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 31 Tools for Discover Document Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 Jumper for firmw are selection NPO Rotary sw itches or Base address selection OFF _ PROG DIP sw itches VMEP2 connector vO NIM TTL Fig 3 3 Component Location Programmable Input Output The V1718 front panel houses 7 LEMO 00 type connectors 5 outputs and 2 inputs signals can be either NIM or TTL dip switch selectable Seven green LEDs one per connector light up as the relevant signal is active All the signals can perform several functions default setting of the output signals is DS either DSO or DS1 AS DTACK BERR LMON output of Location Monitor All the signals whose detailed description is reported in 2 may be connected to other logic functions the available functions a
9. SOURCE SELECTION cvVMESignals cvCoincidence cvMiscSignals cvManualSW 0 IDS Input Coinc Pulser A Manual SW 5 1 AS Input Coinc Pulser A Manual SW E 2 DTACK Input Coinc Pulser B Manual SW 2 3 Input Pulser Manual SW 4 LMON Input Coinc Scaler end Manual SW CAENVME API CAENVME SetOutputConf long Handle CVOutputSelect OutSel CVIOPolarity OutPol CVLEDPolarity LEDPol CVIOSources Source 4 3 19 CAENVME SetlnputConf Parameters in Handle The handle that identifies the device in InSel The input line to configure see CVInputSelect enum in InPol The input line polarity see CVIOPolarity enum in LEDPol The output LED polarity see CVLEDPolarity enum Returns An error code about the execution of the function Description The function permits to configure the input lines of the module It can be specified the polarity for the line and for the LED CAENVME API CAENVME SetlnputConf long Handle CVInputSelect InSel CVIOPolarity InPol CVLEDPolarity LEDPol NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 50 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 20 CAENVME GetPulserConf Parameters in Handle The handle that identifies the device in PulSel The pulser to configure see CVPulserSelect enum out Period The period of the pulse in time unit
10. SYSTEM CONTROL DTACK BERR DIP SWITCH 4 0 USB TYPE NPO Filename DIP SWITCH 4 USB TYPE Fig 2 4 Status Register 0 Inactive 1 Active 0 Disabled 1 Enabled 1 7 Last cycle terminated with DTACK 0 Any other case 1 7 Last cycle terminated with BERR 0 Any other case 0 Switch set to OFF 1 Switch set to ON 0 Full speed 1 High speed Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 16 Tools for Discover Document Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 2 Control register 0x01 D16 read write This register allows performing some general settings of the module 15 12 11110 9 84716 514 32 1 0 ARBITER REQUESTER TYPE RELEASE TYPE BUS LEVE INTERRUPT REQ SYS RES BUS TIMEOUT ADDR INCREMENT Fig 2 5 Control Register Arbiter Type 0 Fixed Priority 1 Round Robin Requester Type 0 Fair 1 Demand Release Type 0 Release when done 1 Release on request Bus Timeout 0 50 ys 1 1400 us Address Increment 0 Enabled 1 Disabled FIFO mode 2 13 3 Firmware Revision register 0x02 D16 read only This register contains the firmware revision number coded on 16 bit For example the REV X Y would feature 8 X Y F
11. 4Mbit FLASH FPGA FIRMWARE USER DEFINED HOST PC Fig 1 1 Mod V1718 block diagram The FPGA Field Programmable Gate Array is the module s core it implements the USB communication protocol the LED display and I O connectors management on the front side and the VME Master on the backside A 128 kbyte buffer allows to provide a temporary data storage during VME cycles the VME data rate is therefore decoupled from the USB rate and may take place at full speed Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 Tools for Discover Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 VME Interface The V1718 provides all of the addressing and data transfer modes documented in the VME64 specification except A64 and those intended to improve 3U applications i e A40 and MD32 The V1718 is also compatible with all VME bus modules compliant to pre VME64 specifications As VME bus master the V1718 supports Read Modify Write RMW and Address Only with Handshake ADOH but does not accept RETRY as a termination from the VME bus slave The ADOH cycle is used to implement the VME bus Lock command allowing the PC Host to lock VME bus resources 2 1 VME bus Requester REL TYPE REG TYPE ARB TYPE Fig 2 1 Internal Arbitration for VME bus Requests When the V1718 operates as VME bus Hequester the functional sequence is the fo
12. The function disables the IRQ lines specified by Mask CAENVME API CAENVME_IRQDisable long dev unsigned long Mask 4 3 47 CAENVME IRQWait Parameters in Handle The handle that identifies the device in Mask A bit mask indicating the IRQ lines in Timeout Timeout in milliseconds Returns An error code about the execution of the function Description The function waits the IRQ lines specified by Mask until one of them raise or timeout expires CAENVME API CAENVME_IRQWait long dev unsigned long Mask unsigned long Timeout 4 3 48 CAENVME ReadFlashPage Parameters in Handle The handle that identifies the device out Data The data to write in PageNum The flash page number to write Returns An error code about the execution of the function Description The function reads the data from the specified flash page CAENVME API CAENVME ReadFlashPage long Handle unsigned char int PageNum 4 3 49 CAENVME_WriteFlashPage Parameters in Handle The handle that identifies the device in Data The data to write in PageNum The flash page number to write Returns An error code about the execution of the function Description NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 60 Tools for Discovery Document type User s Manual MUT 4 3 50 4 3 51 4 3 52 NPO 00106 03 V 1718 MUTx 09 Title Revision date R
13. FIG 2 17 PULSER REGISTER 4 FIG 2 18 PULSER Al REGISTER n odes FIG 2 19 PULSER B REGISTER ee FIG 2 20 PULSER B T REGISTER FIG 2 21 SCALER REGISTER 4 BIG 2 22 SCALER ROGER FIG 2 23 DISPLAY ADDRESS LOW REGISTER 4 FIG 2 24 DISPLAY ADDRESS HIGH REGISTER csssssssccccceesesseaececececsenseaecesececsesseaeeeceescsesseaeeesececsesseaeeeeeeseeenees FIG 2 25 DISPLAY ADDRESS LOW REGISTER 1 1111111 sess etse tensa sess enean FiG 2 26 DISPLAY DATA HIGH REGISTER FIG 2 27 DISPLAY CONTROL LEFT FIG 2 28 DISPLAY CONTROL LEFT REGISTER ccssscssceccceesesseececeesesesseaececececsesseaesecececsenseaeeecececsesseaeeeeeeeeeenees FIG 2 29 LOCATION MONITOR ADDRESS LOW REGISTER ee FIG 2 30 LOCATION MONITOR ADDRESS LOW REGISTER eene eene entente nnn sten FIG 2 31 LOCATION MONITOR CONTROL nsns sensn FIG 3 1 V1718 V1718LC FRONT nean FIG 3 2 3 SWITCH SETTING 4 FIG 3 3 COMPONENT LOCATION FIG 3 4 INPUT
14. The data to be written to the VME bus in Size The size of the transfer in bytes in AM The address modifier see CVAddressModifier enum out count The number of bytes tranferred Returns An error code about the execution of the function Description The function performs a VME multiplexed block transfer write cycle CAENVME API CAENVME MBLTWriteCycle long Handle unsigned long Address unsigned char Buffer int size CVAddressModifier AM int count 4 3 12 CAENVME ADOCycle Parameters in Handle The handle that identifies the device in Address The VME bus address in AM The address modifier see CVAddressModifier enum Returns An error code about the execution of the function Description The function performs a VME address only CAENVME API CAENVME ADOOCycle long Handle unsigned long Address CVAddressModifier 4 3 13 CAENVME ADOHCycle Parameters in Handle The handle that identifies the device in Address The VME bus address in AM The address modifier see CVAddressModifier enum NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 47 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 Returns An error code about the execution of the function Description The function performs a VME address only with handshake cycle CAENVME API CAENVME ADOHCycl
15. BoardFWhRelease Nt ABA End 4 3 5 _ enne trennen inneren eene rennen 4 3 60 CAENVME_RMWCycle ee 4 37 CAENVME WriiteCycle Eee 4 3 8 CAENVME BLTReadCycle trente trennen een 4 3 9 _ 4 3 10 CAENVME BLTWiriteCycle 4 3 11 CAENVME MBLTWriteCycle ee 4 3 12 CAENVME 4 3 13 CAENVME ADOBHCYycCle repe br ER peti NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 4 s for Discove ry Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 434 Reo peri 48 4315 48 4 3 16 SetPulserConf 0 48 4 3 17 _ 49 43 18 CAENVME 50 43 19 50 4 3 20 000 0 6
16. WR DTK LWRD BERR 0 DSn N 8 PROGRAMMABL OUTPUTS Se SH e U 2DTK T WE 29 3 BERR 4LMON 9 PROGRAMMABL l 0 E INPUTS N 9 unk O uik O USB PORT SYSRES PUSHBUTTO N O SYSRES svsnRES USB BRIDGE Fig 3 1 Mod V1718 V1718LC front panel NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 29 Tools for Discover Document type Title User s Manual MUT 3 4 External components 3 5 3 4 1 Front panel connectors Mod V1718 VME USB Bridge Revision date Revision 29 06 2009 9 The location of the connectors is shown in Fig 2 1 Their electromechanical specifications are listed here below USB PORT PROGRAMMABLE In Out 3 4 2 Buttons Mechanical specifications B type USB connector Electrical specifications USB 2 0 compliant Mechanical specifications LEMO 00 connectors Electrical specifications standard NIM TTL signals dip switch selectable 50 impedance SYSRES pushbutton Long touch gt 2 s for SYSRES generation Short touch for Manual START of Pulsers see 3 6 1 Internal hardware components In the following some hardware setting components located on the boards are listed See Fig 3 5 for their exact location on the PCB and their settings 3 5 1 Switches ROTARY SWITCHES PROG_0 PROG 1 N
17. 1 Fair and Demand Request modes nennen trennen rene ene 10 2 1 2 b s 10 2 2 ADDRESSING nan 10 2 3 DATA TRANSFER CAPABILITIES eet tete 11 2 4 INTERRUPT CAPABILITIES isi es 11 259 CYCLE TERMINATIONS is 11 PA 12 Dede LOCATIONMONITOR esis reip ai dee ibi erii ie e e RE rea Resp tors 13 2 8 VME BUS FIRST SLOT DETECTOR ese de e deese bee 13 2 0 SYSTEM CONTROLLER FUNCTIONS 13 2 9 1 Na 14 2 9 2 Arbitration 14 2 9 2 1 Fixed Priority Arbitration Mode 14 2 9 2 2 Round Robin Arbitration Mode 5 14 2 10 M 14 2 11 TACK DAISY CHAIN DRIVER eiecit 15 2 12 WME64X CYCLES NOT YET 20220 8 15 2 13 2 INTERNAL REGISTERS 15 10 2 13 2 Control register o eine deinen e 17 2 13 3 Firmware Revision register 17
18. AM The address modifier see CVAddressModifier enum in DW The data width see CVDataWidth enum Returns An error code about the execution of the function Description The function performs a single VME read cycle CAENVME API CAENVME_ReadCycle long Handle unsigned long Address void Data CVAddressModifier AM CVDataWidth DW NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 44 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 6 CAENVME RMWCycle Parameters in Handle The handle that identifies the device in Address The VME bus address in out Data The data read and then written to the VME bus in AM The address modifier see CVAddressModifier enum in DW The data width see CVDataWidth enum Returns An error code about the execution of the function Description The function performs a Read Modify Write cycle The Data parameter is bidirectional it is used to write the value to the VME bus and to return the value read CAENVME API CAENVME_RMWCycle long Handle unsigned long Address unsigned long Data CVAddressModifier AM CVDataWidth DW 4 3 7 CAENVME_WriteCycle Parameters in Handle The handle that identifies the device Address The VME bus address in Data The data written to the VME bus in AM The address modifier see CVAddressModifier enum
19. OUTPUT CONNECTIONS SCHEME 4 FIG 3 5 DATAWAY DISPLAY LA VOUT bee Eee FIG 3 6 FIRMWARE REVISION ON THE DATAWAY DISPLAY ee FIG 4 1 THE SOFTWARE amp DOCUMENTATION PACK CD INTRODUCTION pp FIG 4 1 THE MAIN MENU 4 4 2 THE I O SETTING MENU VME SETTINGS pe FIG 4 3 THE I O SETTING MENU sess ette 4 4 THE I O SETTING MENU SCALER ee 4 5 THE I O SETTING MENU LOCATION 2 12 22242440000010100000000000000000000000 FIG 4 6 THE I O SETTING MENU INPUT 44400 FIG 4 7 THE I O SETTING MENU INPUT FIG 4 8 THE I O SETTING MENU DISPLAY estate FIG 4 9 THE I O SETTING MENU DISPLAY ee LIST OF TABLES TABLE 1 1 AVAILABLE VERSIONS sisse teinte TABLE 2 1 ADDRESS MAP FOR THE MODEL 1718 222 pire TABLE 3 1 FFPGOAAVAITLABLEEFEUNCIIONS eii ranae TABLE 3 2 V1718 TECHNICAL SPEC
20. Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 27 Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 3 Technical specifications 3 1 Packaging The Model V1718 is a 1 unit wide 6U high VME module 3 2 Power requirements Crate Power Supply Current 12V connected but not used 12 V 150mA all NIM outputs active 40mA TTL outputs or outputs not active 5 800 Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718 REV9 DOC 62 28 CAEN Tools for Discover Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 3 3 Front Panel Mod V1718LC 00 El Doo A01 001 A02 D02 A03 D03 A04 D04 A05 005 A06 D06 A07 D07 A08 D08 DATAWAY D DISPLAY An pi 12 D12 A13 D13 A14 014 A15 D15 A16 D16 A17 D17 A18 D18 A19 D19 A20 D20 A21 D21 A22 022 A23 023 A24 D24 A25 D25 A26 D26 A27 D27 A28 D28 A29 D29 A30 D30 A31 D31 AMO IRQ1 1 IRQ2 AM2 IRQ3 AM3 IRQ4 AMA IRQ5 AM5 IRQ6 DS0 IRQ7 DS1 IBREQ AS IBGNT ISRES
21. RESET SOURCE 0 Output register 1 Input O PULSER B RESET SOURCE 0 Output register 1 Input 1 SCALER GATE SOURCE 0 Output register 1 Input 1 SCALER HIT SOURCE 0 Output register 1 Input 0 SCALER RESET SOURCE 0 Output register 1 Input 1 2 13 11 Input Multiplexer Clear register 0x11 D16 write only This register allows to clear the Input Multiplexer settings 1 Clear 0 Leave previous setting NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 20 Tools for Discover Document Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 L INO POL INO OR IN1 POL IN1 POL PLSA START SOURCE PLSA RES SOURCE PLSB START SOURCE PLSA RES SOURCE SCR GATE SOURCE SCR HIT SOURCE SCR RES SOURCE Fig 2 12 Input Multiplexer register 2 13 12 Output Multiplexer Set register 0 0 D16 read write This register allows to set the OUT 4 0 polarity as well as the source of such signals 1 set 0 leave previous setting 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 OUTO SOURCE OUT1 SOURCE OUT2 SOURCE OUT3 SOURCE OUT4 SOURCE OUTO POL OUT1 POL OUT2 POL OUT3 POL OUTA4 POL Fig 2 13 Output Multiplexer Set register OUTPUT 0 SOURCE 00 Data Strobe 01
22. Software User Interface An user friendly interface has been developed for the module s control the following sub sections will show the features of the software which is anyway mostly self explanatory 4 1 1 Software User Interface Installation The following instructions will help through the module installation the package includes 1718 Software amp Documentation Pack CD User Manual Before you begin be sure that the V1718 is not connected to your computer the V1718 supports your operating system Place the CD in the CD tray in your PC then the following window will open CAEN Tools for Discovery CD Software Pack The CAEN Demo Program is an user friendly interface for Install CAEN VME Demo the module control Suitable for Windows 98 2000 Windows developers can install the CAEN ME Software Library to build their own software application in order to use Programmer s Interface and control the module Lab iew library is provided too All the components for the Linux Operating System are available here See the Readme file to install the software This section contains the technical manuals of CAEN VME User Guides products and other documents related to CAEN VME technology Keep yourself updated with the latest technical information Online Resources visiting periodically the CAEN web site Important Notice This note is dedicated t
23. in DW The data width see CVDataWidth enum Returns An error code about the execution of the function Description The function performs a single VME write cycle CAENVME API WriteCycle long Handle unsigned long Address void Data CVAddressModifier AM CVDataWidth DW 4 3 8 CAENVME BLTReadCycle Parameters in Handle The handle that identifies the device in Address The VME bus address out Buffer The data read from the VME bus in Size The size of the transfer in bytes NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 45 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 in AM The address modifier see CVAddressModifier enum in DW The data width see CVDataWidth enum out count The number of bytes transferred Returns An error code about the execution of the function Description The function performs a VME block transfer read cycle It can be used to perform MBLT transfers using 64 bit data width CAENVME API CAENVME BLTReadCycle long Handle unsigned long Address unsigned char Buffer int Size CVAddressModifier AM CVDataWidth DW int count 4 3 9 CAENVME MBLTReadCycle Parameters in Handle The handle that identifies the device in Address The VME bus address out Buffer The data read from the VME bus in Size The size of th
24. to configure the scaler Limit range is O 1024 10 bit The hit signal source can be input signal 0 cvlnputSrcO or input coincidence cvCoincidence The gate signal source can be front panel button or software cvManualSW or input signal 1 cvInputSrc1 The reset signal source can be front panel button or software cvManualSW or input signal 1 cvInputSrc1 CAENVME API CAENVME SetScalerConf long Handle short Limit short AutoReset CvlOSources Hit CVIOSources Gate CVIOSources Reset Number of pages Page NPO Filename 62 49 00106 03 V 1718 MUTx 09 V1718_REV9 DOC Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 18 CAENVME SetOutputConf Parameters in Handle The handle that identifies the device in OutSel The ouput line to configure see CVOutputSelect enum in OutPol The output line polarity see CVIOPolarity enum in LEDPol The output LED polarity see CVLEDPolarity enum in Source The source signal to propagate to the output line see CVlOSources enum Returns An error code about the execution of the function Description The function permits to configure the output lines of the module It can be specified the polarity for the line and for the LED The output line source depends on the line as figured out by the following table Table 4 1 Source selection
25. 0 Comet System Reset Arbiter Type Bus Request Level Priorized BR 0 Release Requester RwD ra Timeout FIFO Mode T 50 us Yes Status Success Fig 4 2 The I O Setting Menu VME Settings 4 1 4 Software User Interface I O Setting Menu Pulser The Pulser Setting Menu allows to perform the settings of the V1718 built in pulsers see 8 3 7 The V1718 features two internal pulsers Pulser A and Pulser B the output pulses are provided in the following way Out 0 or Out 1 for Pulser A Out 2 or Out 3 for Pulser B The programmable parameters are the step units the period width and number of produced pulses Start can be sent via software via the SYSRES button short pressure or via the Input O Input 1 signals Stop can be sent either via software or via the Input 0 Pulser A and Input 1 Pulser B The pulsers can be reset via the front panel SYSRES button long pressure Refer also to 8 2 13 10 MO Setting Pulser Pulser Select Puser B Units ns Period Start Manual SW Stop Software M Pulse N I 1 1 B Apply Output Dut2 Start Stop Status 2 Success Fig 4 3 The I O Setting Menu Pulser 4 1 5 Software User Interface I O Setting Menu Scaler NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 40 CAEN Tools for Discovery Document type Title Revision date Revision User s Manual MUT M
26. 1 and of the relevant LEDs see also 2 13 10 and 2 13 14 1 0 Settings Input x High Low Input Select 0 v LED Polarity s Dr Inv 140 Polarity Apply Read Status Fig 4 6 The I O Setting Menu Input NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 1718 REV9 DOC 62 41 CAEN Tools Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 1 8 Software User Interface I O Setting Menu Output The Output Setting Menu allows to set the polarity of Output 0 4 and of the relevant LEDs as well as to select the output source and to produce an output pulse at will see also 2 13 12 Inv Output Select Qut_2 Y 1 0 Polarity g High Low Source DTACK v LED Polarity C Apply Clear Set Pulse Status Fig 4 7 The I O Setting Menu Input 4 1 9 Software User Interface I O Setting Menu Display The Display Setting Menu allows actually to monitor the status of the Display corresponding to a serviced cycle see also S 2 13 22 through S 2 13 27 0 Settings Display mod Address AM I IGEA EE000004 EI I IGES ANS I IGEI 4 I JU TEE ANS 052 051 eres AS I IM necs WRITE LURD eerr Status 9 Success Fig 4 8 The I O Setting Menu Display 4 1 10 Software User Interface Setting Menu About The A
27. 2 13 4 Firmware Download register 18 2 13 5 Fash Enable resister 18 2139 6 IRQ Stats IEgISEeE uie oe SE Sick 18 2 13 7 Input PES ster IR a 18 2 13 8 UUSEE SI 19 2 13 0 Output Clear register RUE tyran GE alee etic i ae 19 2 13 10 Input Multiplexer Set resister i eto n 20 2 13 11 Input Multiplexer Clear register 5 dep e RE 20 2 13 12 Output Multiplexer Set register uu de e e eden edad eee 21 2 13 13 Output Mul plexer Clear resister ke eae 27 2 13 14 LED Polarity s t teglstet Mine ases eese 22 2 13 15 LED polarity clear register e POL 23 muc 23 2 13 17 Pulser A eese itasse tette E 23 2 13 18 Pulser B 24 2 13 19 Pulser B 24 2 13 20 Scaler 3 24 2 13 21 Scaler SI 25 2 13 22 Display Address DOW 25 2 13 23 Display Address High treten ene teet rper eret t aded een 25 2 13 24 Display Data
28. 3 Display Address High register 0x21 D16 read only This register allows to monitor the LED Display Address bits 31 16 15 4 13 12 11 1019 7 6 5 4 3 2 0 DISP AD 31 16 Fig 2 24 Display Address High register 2 13 24 Display Data Low register 0x22 D16 read only This register allows to monitor the LED Display Data bits 15 0 15 14 13 12 11 10 9 7 6 5 4 3 2 0 DISP DATA 15 0 Fig 2 25 Display Address Low register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 25 Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 25 Display Data High register 0x23 D16 read only This register allows to monitor the LED Display Data bits 31 16 15 4 13 2 11 1019 7 6 5 4 3 2 0 DISP DATA 81 16 Fig 2 26 Display Data High register 2 13 26 Display Control Left register 0x24 D16 read only This register allows to monitor the LED Display Control Left bar 15 14 13 12 11 9 9 8 716 5 4 121110 AM 5 0 B DS1 AS WR LWRD Fig 2 27 Display Control Left register 2 13 27 Display Control Right register 0x25 D16 read only This register allows t
29. 3 5 Dataway Display layout The V1718 is provided with a 88 LED Dataway Display such LEDs report the VME Bus status address data and control lines related to the latest cycle ADDR 31 0 AM 5 0 IACK WRITE and LWORD These LEDs are freezed on the AS leading edge and remain stable until the next cycle DATA 31 0 These LEDs are freezed either on the DS leading edge during the write cycles or on the DTACK or BERR leading edge during the read cycles The datum remains stable until the next cycle In case of BLT cycles the last read datum remains visible DSO and DS1 These LEDs turn on as the signal is active during the cycle just executed they remain stable until the next cycle AS This LED flashes on the AS leading edge it is used for signalling a cycle execution NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 35 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 3 9 NPO BGR This LED flashes as any Bus Grant line BG 3 0 is active This LED flashes as any Bus Request line BR 3 0 is active SRES This LED flashes as the SYSRES is active DTK This LED turns on if the cycle just executed was terminated with a DTACK asserted by a slave it remains on until the next cycle BERR This LED turns on if the cycle just executed was terminated with a BERR it remains on until the next cycle The
30. IFICATIONS TABLE 12 SOURCE SELECTION Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 6 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 1 General description 1 1 Overview The Mod V1718 is a 1 unit wide VME master module which can be operated from the USB port of a standard PC which represents the intelligent section of the system The module is capable of performing all the cycles foreseen by the VME64X specifications The Mod VX1718 is the VME64X mechanics version of the module in the present manual the generic term V1718 refers to all versions except as otherwise specified The module can work in a multimaster system with the possibility of operating as a system controller in this case which is the default option as the board is inserted in the slot 1 it works as Bus Arbiter Sysclock Driver IACK Daisy Chain Driver etc The module features a LED display which allows to monitor the VME bus activity in detail The front panel features 5 TTL NIM programmable outputs LEMO 00 connectors default assignment is DS AS DTACK BERR signals and the output of a programmable Location Monitor and two programmable TTL NIM inputs on LEMO 00 connectors Operation as a Slave module is av
31. Input O AND Input 1 10 Pulser A Output 11 Output Register OUTPUT 1 SOURCE 00 Address Strobe 01 Input 0 AND Input 1 10 Pulser A Output 11 Output Register OUTPUT 2 SOURCE 00 Data Acknowledge 01 Input 0 AND Input 1 10 Pulser B Output 11 Output Register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 21 Tools for Discover Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 OUTPUT 3 SOURCE 00 Bus Error 01 Input 0 AND Input 1 10 Pulser B Output 11 Output Register OUTPUT 4 SOURCE 00 Location Monitor 01 Input 0 AND Input 1 10 7 Scaler End Count 11 Output Register OUTPUT POLARITY 0 Direct 1 Inverted 2 13 13 Output Multiplexer Clear register 0x12 D16 write only This register allows to clear the Output Multiplexer settings 1 Clear 0 Leave previous setting OUTO SOURCE OUT1 SOURCE OUT2 SOURCE OUT3 SOURCE OUT4 SOURCE OUTO POL OUT1 POL OUT2 POL OUT3 POL OUT4_POL Fig 2 14 Output Multiplexer Set register 2 13 14 LED Polarity set register OxOD D16 read write This register allows to set the LED polarity status 1 set 0 leave previous setting Fig 2 15 LED Polarity set register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09
32. LEDs status can be monitored also via the relevant registers 0x20 through 0x25 when the module operates as slave in this case the VME cycle executed for the LED display readout does not cause the display update the display shows the status related to the previous cycle Firmware upgrade The V1718 can store two firmware versions called STD and BKP respectively at Power On a microcontroller reads the Flash Memory and programs the modules with the firmware version selected via the relevant jumper see S 3 5 2 which can be placed either on the STD position or in the BKP position It is possible to upgrade the board firmware via USB by writing the Flash for this purpose download the software package available at http www caen it nuclear product php modzV1718 The package includes the new firmware release file V1718VUB RevXY rbf For upgrading the firmware open a DOS Shell then launch CAENBRIDGEUpgrade V1718 VME INDEX PCI INDEX V1718VUB RevXY rbf standard backup If an error occurs during the upgrading turn off and then on the board it might be necessary to shift the jumper in order to launch the non corrupted resident firmware and then try again N B it is strongly suggested to upgrade ONLY one of the stored firmware revisions generally the STD one if both revision are simoultaneously updated and a failure occurs it will not be possible to upload the firmware via USB again At Power On or after pushing t
33. PO 00106 03 V1718 MUTx 09 Type 2 rotary switches Function they allow to select the VME base address of the module when it operates in slave mode See Fig 2 2 for their location Type DIP switch Function Forces the System Controller to be enabled regardless the 1 Slot detection ON SYSTEM CONTROLLER enabled OFF don t care Type DIP switch Function Forces the System Controller to be disabled regardless the 15 Slot detection ON SYSTEM CONTROLLER disabled Two Leds indicate the Link activity green connection active yellow data transfer 7 If PROG 0 is set to ON then PROG_1 must be set to OFF and vice versa Filename V1718_REV9 DOC Number of pages Page 62 30 Is for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 OFF don t care PROG 2 Type DIP switch Function When this switch is ON the master initiates the VME cycles without waiting the Bus Grant from the arbiter this setting must be used only for test purposes since conflicts may occur when more VME masters are present ON Requester bypassed OFF don t care PROG_3 Type DIP switch Function Selects between A24 and A32 mode for the SLAVE addressing see Fig 2 2 ON The board responds only to A32 cycles bits 31 24 b a bits 23 16 don t care OFF The board responds only to A24 cycles bits 31 24 b a bits 23 16 don t care
34. RegisterBits enum to compose and decoding the bit mask CAENVME API CAENVME ClearOutputRegister long Handle unsigned short Mask 4 3 25 CAENVME PulseOutputRegister Parameters in Handle The handle that identifies the device NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 52 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 in Mask The lines to be pulsed Returns An error code about the execution of the function Description The function produces a pulse on the specified lines by setting and then clearing them Refer the CVOutputRegisterBits enum to compose and decode the bit mask CAENVME API CAENVME PulseOutputRegister long Handle unsigned short Mask 4 3 26 CAENVME ReadDisplay Parameters in Handle The handle that identifies the device out Value The values read from the module see CVDisplay enum Returns An error code about the execution of the function Description The function reads the VME data display on the front panel of the module Refer to the CVDisplay data type definition and comments to decode the value returned CAENVME API CAENVME_ReadDisplay long Handle CVDisplay Value 4 3 27 CAENVME SetArbiterType Parameters in Handle The handle that identifies the device in Value The type of VME bus arbitration to implement see CVArbiterTypes enum Retu
35. Technical Information Manual Revision 9 29 June 2009 MOD V1718 VX1718 SERIES VME USB 2 0 BRIDGE MANUAL REV 9 NPO 00106 03 V1718 MUTx 09 will repair replace product within the guarantee period if the declares that the product is defective due to workmanship or materials and has not been caused by mishandling negligence on behalf of the User accident or any abnormal conditions or operations CAEN declines all responsibility for damages or injuries caused by an improper use of the Modules due to negligence on behalf of the User It is strongly recommended to read thoroughly the CAEN User s Manual before any kind of operation CAEN reserves the right to change partially or entirely the contents of this Manual at any time and without giving any notice Is for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 TABLE OF CONTENTS 1 GENERAL DESCRIPTION nit tbe rte ei SEE YR CER SERRE Ret ues 7 Ll OVERVIEW EI enne EE EE 7 8 20 Een editae qe 9 2 1 WME BUS REQUESTER sete esta ee aa 9 2 1
36. V1718 REV9 DOC 62 22 Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 15 LED polarity clear register 0x13 D16 write only This register allows to clear the LED polarity set via the LED Polarity set register 1 Clear 0 Leave previous setting 15 14 13 12 11 10 9 18 7 61 5 4 312 1 0 E OUT 0 OUT 1 OUT 2 OUT 3 OUT 4 IN_0 IN_1 Fig 2 16 LED polarity clear register 2 13 16 Pulser A 0 register 0x16 D16 read write This register allows to set the period and width of the relevant Pulser measured in range steps see 8 2 13 17 PERIOD WIDTH Fig 2 17 Pulser A 0 register 2 13 17 Pulser A 1 register 0x17 D17 read write This register allows to set the number of pulses and the range of the relevant Pulser 15 14 13 12 11 10 654321 0 NUM_PULSES RANGE Fig 2 18 Pulser 1 register RANGE 00 25 ns 01 1 6 hs 10 400 us 11 104 ms NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 23 Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 18 Pulser B 0 register 0x19 D16 read write This register allows to set the perio
37. ailable for reading the Dataway display and the Internal Test RAM The V1718 PC interface is USB 2 0 compliant previous issues are also supported USB data transfer takes place through the High Speed Bulk Transaction protocol The VME Bus data transfer does not require to be strictly synchronised to the USB transfer thanks to a 128 kbyte local buffer The Module drivers which support the use with the most common PC platforms Windows 98 2000 XP VISTA Linux are available at the web page http www caen it nuclear software download php useful example programs are provided as well Future firmware upgrade is possible via USB only tools developed by CAEN must be used for the firmware upgrade Table 1 1 Available versions Description LED display TTL NIM 1 05 V1718 VME USB 2 0 Bridge VME6U WVI718LCXAAA V1718LC VME USB 2 0 Bridge VME6U 1718 VX1718 VME USB 2 0 Bridge VME64X WVXI7ISLCXAA VX1718LC VME USB 2 0 Bridge VME64X NPO 2eVME cycles and 3U boards cycles are not implemented yet Not available on Mod V VX1718LC versions 3 Not available on Mod V VX1718LC versions Not available on Mod V VX1718LC versions Filename Number of pages Page 7 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 CAEN Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 1 2 Block diagram NPO V1718
38. ampled low after reset by the first board in the crate there is no preceding board to drive BG3IN high If BG3IN is sampled at logic low immediately after reset due to the master internal pull down then the V1718 is in slot 1 and becomes SYSTEM CONTROLLER otherwise the SYSTEM CONTROLLER module is disabled This mechanism may be overridden via dip switch setting the SYSTEM CONTROLLER bit is forced to one by setting to ON PROG 0 and is forced to zero by setting to ON PROG 1 note that such switches must always be in opposite positions see S 3 5 1 2 9 System Controller Functions When located in Slot 1 of the VME crate the V1718 assumes the role of SYSTEM CONTROLLER and sets the SYSTEM CONTROLLER status bit in the STATUS register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 13 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 In accordance with the VME64 specification as SYSTEM CONTROLLER the V1718 provides system clock driver arbitration module anlACK Daisy Chain Driver DCD abus timer 2 9 1 System Clock Driver The V1718 provides a 16 MHz SYSCLK signal when configured as System Controller 2 9 2 Arbitration Module When the V1718 is SYSTEM CONTROLLER the Arbitration Module is enabled The Arbitration Module supports the following arbitration modes Fixed Priority A
39. bout Setting Menu allows to detect the revision number of the running software About CAEN Demo CAEN Demo Program Mu Hardware Release 0 1 Software Release 1 0 Copyright Caen Engineering s r l 2004 OK Fig 4 9 The I O Setting Menu Display NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 42 Tools for Discover Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 2 CAENVMELib introduction This section describes the CAENVMELib library and its implemented functions CAENVMELib is a set of ANSI C functions which permits an user program the use and the configuration of the V1718 The present description refers to CAENVMELib Rel 2 x available in the following formats Win32 DLL CAEN provides the CAENVMELib lib stub for Microsoft Visual 6 0 Linux dynamic library CAENVMELib is logically located between an application like the samples provided and the lower layer software libraries 4 3 CAENVMELib 2 x description 4 3 1 CAENVME_SWRelease Parameters out SwRel Returns the software release of the library Returns An error code about the execution of the function Description Permits to read the software release of the library CAENVME API CAENVME_SWRelease char SwRel 4 3 2 CAENVME_Init Parameters BdType The model of the bridge V2718 in Link not used
40. code about the execution of the function Description The function sets the specified VME bus requester priority level on the module CAENVME API CAENVME SetBusReqLevel long Handle CVBusReqLevels Value NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 54 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 31 CAENVME SetTimeout Parameters in Handle The handle that identifies the device in Value Value of VME bus timeout to set see CVVMETimeouts enum Returns An error code about the execution of the function Description The function sets the specified VME bus timeout on the module CAENVME API CAENVME SetTimeout long Handle CVVMETimeouts Value 4 3 32 CAENVME SetFIFOMode Parameters in Handle The handle that identifies the device in Value Enable disable the FIFO mode Returns An error code about the execution of the function Description The function enables disables the auto increment of the VME addresses during the block tranfer cycles With the FIFO mode enabled the addresses are not incremented CAENVME API CAENVME SetFIFOMode long Handle short Value 4 3 33 CAENVME GetArbiterType Parameters in Handle The handle that identifies the device out Value The type of VME bus arbitration implemented see CVArbiterTypes enum Returns An error code about the
41. d and width of the relevant Pulser measured in range steps see 2 13 19 PERIOD WIDTH Fig 2 19 Pulser B 0 register 2 13 19 Pulser B 1 register 1 016 read write This register allows to set the number of pulses and the range of the relevant Pulser 15 14 13 12 11 1019181765413 2 1 0 NUM_PULSES RANGE Fig 2 20 Pulser B 1 register RANGE 00 25 ns 01 1 6 hs 10 400 us 11 104 ms 2 13 20 Scaler 0 register 0 1 D16 read write This register allows to set the Scaler END COUNT LIMIT and to enable the AUTO RESET option 1 enabled AUTO_RES END COUNT LIMIT Fig 2 21 Scaler 0 register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 24 Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 21 Scaler 1 register Ox1D D16 read only This register allows to monitor the hits accumulated by the Scaler 15 14 13 12 11 1101918765413 4 2 1 0 HITS COUNT Fig 2 22 Scaler 1 register 2 13 22 Display Address Low register 0x20 D16 read only This register allows to monitor the LED Display Address bits 15 0 15 14 13 12 1110 9 6 5 4 3 2 1 0 DISP AD 15 0 Fig 2 23 Display Address Low register 2 13 2
42. del V1718 Base 761000 DISP AD RAM 32x16 Fig 2 2 V1718 Slave operation NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 12 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 7 Location Monitor The V1718 monitors the cycles on the bus whether they are held by itself or by other masters and produces a Trigger Out LMON signal as soon as a particular cycle is performed see Fig 3 3 The LMON out is available by default as front panel signal lt LM ADH LM ADL 9 DYME AD J Le LE LM AM Id LM LWORD LM_WRITE gt LM OUT LM le TE VME WRITE VME BUS VME LWORD AM Fig 2 3 The Location Monitor 2 8 VME bus First Slot Detector The First Slot Detector module samples BG3IN immediately after reset to determine whether the V1718 resides in slot 1 The VME bus specification requires that BG 3 0 lines be driven high during reset This means that if a board is preceded by another board in the VME bus system it will always sample BG3IN high after reset BG3IN can only be s
43. ds I OINTERNAE CONNECTIONS 3 5 VMEDATAWAY DISPLAY ER MEE IZ NIU LCIH DUM 3 10 TECHNICAL SPECIFICATIONS TABLE 50 tinte SE etae pe Ea e eere Re EIE enne 4 SOPIWARE OVERVIEW nu ee ee dees 4 1 SORPWAREUSEBR INTERFACE eet ree PER cdbeosnsssievsceneduebacestevaeygbeb eons ME 4 1 1 Software User Interface Installation 3 4 1 1 1 Hardware Instalati n 4 1 2 Software User Interface The Main Menu 4 4 1 3 Software User Interface I O Setting Menu VME SettingS eene 4 1 4 Software User Interface I O Setting Menu Pulser pe 4 1 5 Software User Interface I O Setting Menu Scaler Ne 4 1 6 Software User Interface I O Setting Menu Location Monitor eene 4 1 7 Software User Interface I O Setting Menu Input eese nennen 4 1 8 Software User Interface I O Setting Menu Output eese enne 4 1 9 Software User Interface I O Setting Menu 0 4 1 10 Software User Interface I O Setting Menu About pe 4 2 CAENVMEBLIB INTRODUCTION eeiam Hh e a e e e ER 43 CAENVMELIB2 X DESCRIPTION ieeseeeci sisceseeseseeoes ise est 4 3 1 _ NM 4 3 3
44. e AM the PC Host passes them via USB as VME cycle parameters The AM broadcasting depends on the PC drivers The master generates ADdress Only with Handshake ADOH cycles in support of lock commands for A16 A24 and A32 spaces Supported addressing A16 A24 A32 CR CSR for R W RMW ADO and ADOH A16 A24 A32 for BLT A16 A24 A32 for MBLT ADO Address Only ADOH Address Only with Handshake Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 10 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 3 Data transfer capabilities The V1718 supports the following cycles Cycle Type R W Single Read Write RMW Read Modify Write BLT Block Transfer MBLT Multiplexed Block Transfer Data sizing 008 016 032 for R W RMW D64 for MBLT BLT MBLT cycles may be performed with either address increment or with fixed address FIFO mode BLT MBLT cycles are split at hardware level when the boundary BLT Nx256 bytes MBLT Nx2 Kbytes is met AS is released and then re asserted the bus is not re arbitered The boundaries are neglected in FIFO operating mode Non aligned accesses are not supported 2 4 Interrupt capabilities The USB does not allow transferring an interrupt to the PC so the communication between the PC and the V1718 is always started by the PC The VME interrupts are activated by read
45. e RESET input If END COUNT LIMIT N N 0 the scaler counts up to hits then produces END CNT PULSE if AUTORES is enabled the scaler after N hits returns to zero and can accept new hits to count otherwise it halts 3 6 3 Coincidence 3 6 NPO It is a two input OR port Since each input and output can be negated it can operate also as AND The Coincidence output can be connected either to other units input or to an output connector 4 Input Output Register The output signals can be programmed via an Output Register while the input signals can be monitored via an Input Register Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 33 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 3 7 internal connections 4 7 5 e woua bd DNS 2 e gt ici Poya g
46. e long Handle unsigned long Address CVAddressModifier AM 4 3 14 CAENVME_IACKCycle Parameters in Handle The handle that identifies the device in Level The IRQ level to aknowledge see CVIRQLevels enum in DW The data width see CVDataWidth enum Returns An error code about the execution of the function Description The function performs a VME interrupt acknowledge cycle CAENVME_API IACKCycle long Handle CVIRQLevels Level void Vector CVDataWidth DW 4 3 15 CAENVME_IRQCheck Parameters in Handle The handle that identifies the device out Mask A bit mask indicating the active IRQ lines Returns An error code about the execution of the function Description The function returns a bit mask indicating the active IRQ lines CAENVME_API CAENVME_IRQCheck long Handle byte Mask 4 3 16 CAENVME_SetPulserConf Parameters in Handle The handle that identifies the device in PulSel The pulser to configure see CVPulserSelect enum in Period The period of the pulse in time units in Width The width of the pulse in time units in Unit The time unit for the pulser configuration see CVTimeUnits enum NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718 REV9 DOC 62 48 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 in PulseNo The number of pu
47. e transfer in bytes in AM The address modifier see CVAddressModifier enum out count The number of bytes transferred Returns An error code about the execution of the function Description The function performs a VME multiplexed block transfer read cycle CAENVME API CAENVME MBLTReadCycle long Handle unsigned long Address unsigned char Buffer int Size CVAddressModifier AM int count 4 3 10 CAENVME BLTWriteCycle Parameters in Handle The handle that identifies the device in Address The VME bus address in Buffer The data to be written to the VME bus in Size The size of the transfer in bytes in AM The address modifier see CVAddressModifier enum in DW The data width see CVDataWidth enum out count The number of bytes tranferred Returns An error code about the execution of the function Description NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 46 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 The function performs a VME block transfer write cycle CAENVME API CAENVME BLTWriteCycle long Handle unsigned long Address unsigned char Buffer int size CVAddressModifier AM CVDataWidth DW int count 4 3 11 CAENVME MBLTWriteCycle Parameters in Handle The handle that identifies the device Address The VME bus address in Buffer
48. ester on an equal level has access to the bus In Demand mode the requester asserts its bus request regardless of the state of the BRn line By requesting the bus frequently requesters far down the daisy chain may be prevented from ever obtaining bus ownership This is referred to as starving those requesters Note that in order to achieve fairness all bus requesters in a VME bus system must be set to Fair mode 2 VME bus Release The Requester can be configured as either RWD release when done or ROR release on request using the Release Type bit in the Control register The default setting is for RWD the bus is released as soon as the VME access is terminated in case of BLT MBLT cycles the access is terminated either when the N required bytes are transferred although the cycle is divided into several blocks according to the VME boundaries or when BERR is asserted ROR means the master releases BBSY only if a bus request is pending from another VMEbus master and once the channel that is the current owner of the VME bus Master Interface is done Ownership of the bus may be assumed by another channel without re arbitration on the bus if there are no pending requests on any level on the VME bus Addressing capabilities V1718 generates A16 A24 A32 CR CSR and LCK address phases on the VME bus Address Modifiers of any kind supervisor non privileged and program data are also programmed through the USB the V1718 does not handle th
49. evision Mod V1718 VME USB Bridge 29 06 2009 9 The function writes the data into the specified flash page CAENVME API CAENVME WriteFlashPage long Handle unsigned char Data int PageNum CAENVME SetlnputConf Parameters in Handle The handle that identifies the device in InSel The input line to configure see CVInputSelect enum in InPol The input line polarity see CVIOPolarity enum in LEDPol The output LED polarity see CVLEDPolarity enum Returns An error code about the execution of the function Description The function permits to configure the input lines of the module It can be specified the polarity for the line and for the LED CAENVME API CAENVME SetlnputConf long Handle CVInputSelect InSel CVlOPolarity InPol CVLEDPolarity LEDPol CAENVME SetLocationMonitor Parameters in Handle The handle that identifies the device in Address in Write in Lword in Icak Returns An error code about the execution of the function Description The function sets the Location Monitor CAENVME API CAENVME SetLocationMonitor long Handle unsigned long Address CVAddressModifier Am short Write short Lword short lack CAENVME_SetOutputRegister Parameters in Handle The handle that identifies the device in Mask The lines to be set Returns An error code about the execution of the function Filename Number of pages Page 1718 REV9 DOC 62 61 Tools for D
50. execution of the function Description The function get the type of VME bus arbiter implemented on the module CAENVME_API CAENVME GetArbiterType long Handle CVArbiterTypes Value NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 55 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 34 CAENVME_GetRequesterType Parameters in Handle The handle that identifies the device out Value The type of VME bus requester implemented see CVRequesterTypes enum Returns An error code about the execution of the function Description The function get the type of VME bus requester implemented on the module CAENVME_API CAENVME GetRequesterType long Handle CVRequesterTypes Value 4 3 35 CAENVME GetReleaseType Parameters in Handle The handle that identifies the device out Value The type of VME bus release policy implemented see CVReleaseTypes enum Returns An error code about the execution of the function Description The function get the type of VME bus release implemented on the module CAENVME API CAENVME GetReleaseType long Handle CVReleaseTypes Value 4 3 36 CAENVME GetBusReqLevel Parameters in Handle The handle that identifies the device out Value The type of VME bus requester priority level see CVBusReqLevels enum Returns An error code about the execution o
51. f the function Description The function reads the VME bus requester priority level implemented on the module CAENVME API CAENVME GetBusReqLevel long Handle CVBusReqLevels Value NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 56 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 37 CAENVME GetTimeout Parameters in Handle The handle that identifies the device out Value The value of VME bus timeout see CVVMETimeouts enum Returns An error code about the execution of the function Description The function reads the specified VME bus timeout setting of the module CAENVME API CAENVME GetTimeout long Handle CVVMETimeouts Value 4 3 38 CAENVME GetFIFOMode Parameters in Handle The handle that identifies the device out Value The FIFO mode read setting Returns An error code about the execution of the function Description The function reads whether the auto increment of the VME addresses during the block tranfer cycles is enabled 0 or disabled 0 CAENVME API CAENVME_GetFIFOMode long Handle short Value 4 3 39 CAENVME SystemReset Parameters in Handle The handle that identifies the device Returns An error code about the execution of the function Description The function performs a system reset on the module CAENVME API CAENVME SystemReset l
52. handle that identifies the device in Reg The internal register to read see CVRegisters enum NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 51 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 out Data The data read from the module Returns An error code about the execution of the function Description The function permits to read some internal registers the input register the output register and the status register For the meaning and decoding of register bits see CVStatusRegisterBits CVInputRegisterBits and CVOutputRegisterBits definitions and comments CAENVME API CAENVME ReadRegister long Handle CVRegisters Reg unsigned short Data 4 3 23 CAENVME SetOutputRegister Parameters in Handle The handle that identifies the device in Mask The lines to be set Returns An error code about the execution of the function Description The function sets the specified lines Refer the CVOutputRegisterBits enum to compose and decode the bit mask CAENVME API CAENVME SetOutputRegister long Handle unsigned short Mask 4 3 24 CAENVME ClearOutputRegister Parameters in Handle The handle that identifies the device in Mask The lines to be cleared Returns An error code about the execution of the function Description The function clears the specified lines Refer the CVOutput
53. has to write the address where the cycle must be performed and the eventual datum to be written then the VME Operation buttons allows to select the desired cycle The operation results are shown in the relevant field The last row allows to detect eventual errors on the bus IRQ cycles Seven boxes allow to detect an input request on the bus by clicking on the CAEN VME Demo Exit 10 Settings VME Settings Address Mode 432 Data Width 016 Address D write Size 256 VME Dperation Read Write Read Write BLT ADO ADOH RMW Loop Stop IRQ Operation Check Level 801 pw 08 Vector IACK Cycle USB FullSpeed System Controller Enabled Status 1 r7 Success Check button the remaining fields allow to broadcast an interrupt acknowledge CYCLE Fig 4 1 The Main Menu NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718 REV9 DOC 62 39 CAEN Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 1 3 Software User Interface I O Setting Menu VME Settings The VME Settings Menu allows to perform the VME general settings of the V1718 the VME Settings are explained in detail in 8 2 Board type must be set to V1718 Board number is the used USB port and Link must be set to 0 Board Type Board Number 1718 0 E Link
54. he SYSRES button for 2 s at least the A00 A15 leds show the running firmware revision as shown in Fig 3 6 REV X Y Fig 3 6 Firmware revision on the Dataway Display Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 36 CAEN Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 3 10 Technical specifications table Table 3 2 Mod V1718 technical specifications Packaging 1 unit wide and 6U high VME module PC Interface USB 2 0 compliant Transfer rate 30 MByte s A16 A24 A32 CR CSR LCK Addressing ADO ADOH cycles 008 016 D32 for R W and RMW Data cycles D16 D32 for BLT D64 for MBLT Interrupt cycles D08 016 032 IACK cycles IRQ 7 1 software monitored through the USB LED display Panel outputs Data bus address bus address modifier interrupt request control signals 5 NIM TTL programmable default DSn AS DTACK BERR Panel inputs 2 NIM TTL programmable Transfer rate supported in MBLT read cycles block size 32 kb using a PC host with Windows XP or Linux and High Speed USB NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 37 CAEN Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 Software overview 4 1
55. ig 2 6 Firmware Revision Register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 17 CAEN Document type Title User s Manual MUT Mod V1718 VME USB Bridge 2 13 4 Firmware Download register 0x03 D16 read write This register is reserved for internal use only 2 13 5 Flash Enable register 0x04 D16 read write This register is reserved for internal use only 2 13 6 IRQ Status register 0x05 D16 read only Revision date Revision 9 This register allows to monitor the IRQ lines status 1 Active 0 Inactive 15 14 13 12 11 1019871615 IRQ1 IRQ2 IRQ3 IRQ4 IRQS IRQ6 IRQ7 Fig 2 7 IRQ Status register 2 13 7 Input register 0x08 D16 read write This register carries the input register pattern L INO IN1 INO_OR_IN1 PLSA_OUT PLSB_OUT SCR_END_CNT_PLS LMON Fig 2 8 Input register NPO Filename 00106 03 V1718 MUTx 09 V1718_REV9 DOC Number of pages Page 62 18 CAEN Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 8 Output set register 0 016 read write This register allows to set the output register pattern 1 set 0 leave previous setting 15 12 11 1019876540312 1 0
56. in BdNum The board number in the link out Handle The handle that identifies the device Returns An error code about the execution of the function Description The function generates an opaque handle to identify a module attached to the PC It must be specified only the module index BdNum because the link is PCI CAENVME API NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 43 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 CAENVME Init CVBoardTypes BdType short Link short BdNum long Handle 4 3 3 CAENVME_BoardFWRelease Parameters in Handle The handle that identifies the device out FWRel Returns the firmware release of the device Returns An error code about the execution of the function Description Permits to read the firmware release loaded into the device CAENVME API CAENVME_BoardFWRelease long Handle char FWRel 4 3 4 CAENVME End Parameters in Handle The handle that identifies the device Returns An error code about the execution of the function Description Notifies the library about the end of work and free the allocated resources CAENVME API CAENVME End long Handle 4 3 5 CAENVME ReadCycle Parameters in Handle The handle that identifies the device in Address The VME bus address out Data The data read from the VME bus in
57. ing the IRQ lines status from the PC and if one line is active then a cycle can be executed The V1718 supports the following IACK cycles 008 016 032 2 5 Cycle terminations The V1718 accepts BERR or DTACK as cycle terminations BERR is handled as cycle termination whether it is produced by the V1718 itself or by another board The Status word broadcasted as the cycle is acknowledged informs the PC HOST about the cycle termination type BERR or 5 BLTOS not implemented NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 11 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 6 Slave When the V1718 operates as slave it responds to VME cycles which must be initiated by another module i e a V1718 cannot adaress itself as a slave for accessing the Dataway Display internal registers and a Test RAM 32 x 16 The V1718 is accessed both with A32 and A24 base address see 8 3 5 1 the module is provided with only two rotary switches for board addressing so the addressing mode is selected via the dip switch 3 A24 3 OFF A32 PROG 3 ON see 8 0 The Address map for V1718 is listed in Table 2 1 All register addresses are referred to the Base Address of the board i e the addresses reported in the Tables are the offsets to be added to the board Base Address Table 2 1 Address Map for the Mo
58. iscovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 Description The function sets the lines specified Refer the CVOutputRegisterBits enum to compose and decoding the bit mask CAENVME API CAENVME SetOutputRegister long Handle unsigned short Mask 4 3 53 CAENVME_WriteRegister Parameters in Handle The handle that identifies the device in Reg The internal register to read see CVRegisters enum in Data The data to be written to the module Returns An error code about the execution of the function Description The function permits to write to all internal registers CAENVME_API CAENVME_WriteRegister long Handle CVRegisters Reg unsigned short Data NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 62
59. llowing NPO The USB sends a VME bus access request The Master asserts DWB Device Want Bus and waits for DGB Device Grant Bus The Requester requests the bus to the Arbiter via VME whether the Arbiter is the V1718 itself or not when the Arbiter has granted the bus the Requester asserts DGB and BBSY on the bus The Master performs the the VME cycle then releases DWB If REL TYPE is RWD Release When Done then the Requester releases BBSY Filename Number of pages Page 9 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 1 1 Fair and Demand Request modes 2 1 2 2 NPO The V1718 produces requests on all VME bus request levels BR3 BR2 BR1 and BRO The default setting is for level 3 VME bus request The request level is a global programming option set through the Bus Request field in the Control register see 8 2 13 2 The programmed request level is used by the VME bus Master Interface regardless of the channel currently accessing the VME bus Master Interface The Requester may be programmed for either Fair or Demand mode The request mode is a global programming option set through the Requester Type bit in the Control register In Fair mode the V1718 does not request the VME bus until there are no other VME bus requests pending at its programmed level This mode ensures that every requ
60. lses to generate 0 infinite in Start The source signal to start the pulse burst see CVlOSources enum in Reset The source signal to stop the pulse burst see CVlOSources enum Returns An error code about the execution of the function Description The function permits to configure the pulsers All the timing parameters are expressed in the time units specified The start signal source can be one of front panel button or software cvManualSW input signal 0 cvInputSrcO input signal 1 cvInputSrc1 or input coincidence cvCoincidence The reset signal source can be front panel button or software cvManualSW or for pulser A the input signal 0 cvInputSrcO for pulser B the input signal 1 cvlInputSrc1 CAENVME API CAENVME SetPulserConf long Handle CVPulserSelect PulSel unsigned char Period unsigned char Width CVTimeUnits Unit unsigned char PulseNo CVIOSources Start CVIOSources Reset 4 3 17 CAENVME SetScalerConf Parameters in Handle The handle that identifies the device in Limit The counter limit for the scaler in AutoReset Enable disable the counter auto reset in Hit The source signal for the signal to count see CVlOSources enum in Gate The source signal for the gate see CVlOSources enum in Reset The source signal to stop the counter see CVlOSources enum Returns An error code about the execution of the function Description The function permits
61. o monitor the LED Display Control Left bar IRQ6 IRQ7 BRQ BGR SRES DTK BERR Fig 2 28 Display Control Left register NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718 REV9 DOC 62 26 Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 28 Location Monitor Address Low register 0x28 D16 read write This register allows to set monitor the Location monitor Address bits 15 0 see 8 2 7 15 14 13 12 11 7 6 5 s 2 s o LMON AD 15 0 Fig 2 29 Location Monitor Address Low register 2 13 29 Location Monitor Address High register 0x29 D16 read write This register allows to set monitor the Location monitor Address bits 31 16 2 7 15 14 13 12 11 e s e r e s 4 3121110 LMON AD 31 16 Fig 2 30 Location Monitor Address Low register 2 13 30 Location Monitor Control register 0 2 D16 read write This register allows to set monitor the Location monitor control parameters see S 2 7 15 14 13 12 11 10 98760514 211 0 LWORD IACK WRITE L ADDRESS MODIFIER Fig 2 31 Location Monitor control register NPO Filename Number of pages
62. o owners of V1718 V2718 modules with firmware releases previous to 0 12 All the software included in this CD doesn t work with V1718 V2718 modules equipped with firmware releases previous to 0 12 Please contact support computing caen it to obtain the needed support in order to upgrade your hardware Fig 4 1 The Software amp Documentation Pack CD introduction Click on Install CAEN VME Demo in order to install the provided user friendly interface which allows an easy and immediate control of the module see 8 4 1 2 NPO Filename Number of pages Page 00106 03 V1718 MUTx 09 V1718_REV9 DOC 62 38 CAEN Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 Click on Programmer Interface in order to install the provided Software Library which allows experienced developers to build their own applications for the module control see S 4 2 a C example program file is installed too 4 1 1 1 Hardware Installation Connect the USB cable s A type connector to an available USB port on your PC Connect the USB cable s B type connector to the USB port on your V1718 Turn ON the VME bus crate Now the V1718 is ready for operation Bem gt 4 1 2 Software User Interface The Main Menu The Main Menu allows to perform and monitor the supported Data and IRQ cycles Data cycles Once the address mode and the data width are selected the User
63. od V1718 VME USB Bridge 29 06 2009 9 The Scaler Setting Menu allows to perform the settings of the V1718 built in scaler see 8 3 7 The V1718 features an internal scaler which counts hits arriving on the enabled front panel input Input 0 or Input 1 Gate and Reset signals be sent either on the unused input connector or software generated an End Count Pulse is eventually available on Out 4 The End Count field allows to set the number of hits to be stored End Count Limit Auto Reset and Loop options can be either enabled or disabled independently The lowest field allows to read the stored hits Refer also to S 2 13 20 Settings Scaler Hit Input 0 X Gate Software Enable Disable EndCount 0 Reset Software v Reset Counter Yes Yes AutoReset 6 EndCountonDu4 C lt Read 0 Loop Stop Status 9 Success Fig 4 4 The I O Setting Menu Scaler 4 1 6 Software User Interface I O Setting Menu Location Monitor The Location Monitor Setting Menu allows to produce an output signal when a particular VME cycle at a particular base address is detected see 8 2 7 for details Setting Location Monitor Address Hex Address Mode 432 B 3 1 Gl 4 Write Lword C lack C Apply Status Fig 4 5 The I O Setting Menu Location Monitor 4 1 7 Software User Interface I O Setting Menu Input The Input Setting Menu allows to set the polarity of Input 0 Input
64. ong Handle NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 57 Tools for Discover Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 40 CAENVME ResetScalerCount Parameters in Handle The handle that identifies the device Returns An error code about the execution of the function Description The function resets the counter of the scaler CAENVME API CAENVME ResetScalerCount long Handle 4 3 41 CAENVME EnableScalerGate Parameters in Handle The handle that identifies the device Returns An error code about the execution of the function Description The function enables the gate of the scaler CAENVME API CAENVME EnableScalerGate long Handle 4 3 42 CAENVME DisableScalerGate Parameters in Handle The handle that identifies the device Returns An error code about the execution of the function Description The function disables the gate of the scaler CAENVME API CAENVME DisableScalerGate long Handle 4 3 43 CAENVME StartPulser Parameters in Handle The handle that identifies the device in PulSel The pulser to configure see CVPulserSelect enum Returns NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 58 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 An e
65. rbitration Mode PRI Round Robin Arbitration Mode RRS default setting These are set with the ARBITER bit in the STATUS register 2 9 2 1 Fixed Priority Arbitration Mode PRI In this mode the order of priority is BR 3 BR 2 BR 1 and BR 0 as defined by the VME64 specification The Arbitration Module issues a Bus Grant BGO 3 0 to the highest requesting level If a Bus Request of higher priority than the current bus owner becomes asserted the Arbitration Module asserts BCLR until the owner releases the bus BBSY is negated 2 9 2 2 Round Robin Arbitration Mode RRS This mode arbitrates all levels in a round robin mode repeatedly scanning from levels 3 to 0 Only one grant is issued per level and one owner is never forced from the bus in favor of another requester BCLR is never asserted Since only one grant is issued per level on each round robin cycle several scans will be required to service a queue of requests at one level 2 10 Bus Timer A programmable bus timer allows users to select a VMEbus time out period The time out period is programmed through the Bus Timeout bit in the Control register 0 timeout 50 us 1 timeout 4001 The VMEbus Timer module asserts BERR if a VMEbus transaction times out indicated by one of the VMEbus data strobes remaining asserted beyond the time out period NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 14
66. re listed in the following table Filename Number of pages Page 32 00106 03 V 1718 MUTx 09 1718 REV9 DOC 62 Tools for Discover Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 Table 3 1 FPGA available functions Availability Input Output Register Timer amp Pulse Generator 2 2 1 3 Scaler 1 3 1 2 Coincidence 1 2 1 0 Input Register 1 2 1 Output Register 1 5 1 Location Monitor 1 VME bus 1 3 6 1 Timer amp Pulse Generator It is an unit which produces a burst of N pulses N can be infinite i e the pulses are countinuously generated whose period T and duration W are programmable see 8 2 13 16 8 2 13 17 8 2 13 18 and 2 13 19 The burst START can be sent either as input signal on one LEMO input connector or as manual software command A RESET can interrupt the sequence and set to zero the outputs These modules can be used for example as Clock Generator Burst Generator Monostable Gate and Delay Generator Set Reset Flip Flop 3 6 2 Scaler It is a counter with the GATE input for enabling the counter and the counter RESET input The counter has the programmable END COUNT LIMIT parameter LIMIT can be set in the 0 1023 range if LIMIT 0 the scaler counts countinuously and produces END CNT PULSE every 1024 hits each time ZERO is met the scaler can be halt via th
67. rns An error code about the execution of the function Description The function sets the behaviour of the VME bus arbiter on the module CAENVME API CAENVME SetArbiterType long Handle CVArbiterTypes Value NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 53 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 4 3 28 CAENVME SetRequesterType Parameters in Handle The handle that identifies the device in Value The type of VME bus requester to implement see CVRequesterTypes enum Returns An error code about the execution of the function Description The function sets the behaviour of the VME bus requester on the module CAENVME_API CAENVME_SetRequesterType long Handle CVRequesterTypes Value 4 3 29 CAENVME_SetReleaseType Parameters in Handle The handle that identifies the device in Value The type of VME bus release policy to implement see CVReleaseTypes enum Returns An error code about the execution of the function Description The function sets the release policy of the VME bus on the module CAENVME_API CAENVME SetReleaseType long Handle CVReleaseTypes Value 4 3 30 CAENVME SetBusReqLevel Parameters in Handle The handle that identifies the device in Value The type of VME bus requester priority level to set see CVBusReqLevels enum Returns An error
68. rror code about the execution of the function Description The function starts the generation of the pulse burst if the specified pulser is configured for manual software operation CAENVME API CAENVME StartPulser long Handle CVPulserSelect PulSel 4 3 44 CAENVME StopPulser Parameters in Handle The handle that identifies the device in PulSel The pulser to configure see CVPulserSelect enum Returns An error code about the execution of the function Description The function stops the generation of the pulse burst if the specified pulser is configured for manual software operation CAENVME API CAENVME StopPulser long Handle CVPulserSelect PulSel 4 3 45 CAENVME_IRQEnable Parameters in Handle The handle that identifies the device Mask A bit mask indicating the IRQ lines Returns An error code about the execution of the function Description The function enables the IRQ lines specified by Mask CAENVME API CAENVME_IRQEnable long dev unsigned long Mask 4 3 46 CAENVME_IRQDisable Parameters in Handle The handle that identifies the device in Mask A bit mask indicating the IRQ lines Returns An error code about the execution of the function NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 59 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 Description
69. s out Width The width of the pulse in time units out Unit The time unit for the pulser configuration see CVTimeUnits enum out PulseNo The number of pulses to generate 0 infite out Start The source signal to start the pulse burst see CVlOSources enum out Reset The source signal to stop the pulse burst see CVlOSources enum Returns An error code about the execution of the function Description The function permits to read the configuration of the pulsers CAENVME API CAENVME GetPulserConf long Handle CVPulserSelect PulSel unsigned char Period unsigned char Width CVTimeUnits Unit unsigned char PulseNo CVIOSources Start CVlOSources Reset 4 3 21 CAENVME GetScalerConf Parameters in Handle The handle that identifies the device out Limit The counter limit for the scaler out AutoReset The auto reset configuration out Hit The source signal for the signal to count see CVlOSources enum out Gate The source signal for the gate see CVIOSources enum out Reset The source signal to stop the counter see CVlOSources enum Returns An error code about the execution of the function Description The function permits to read the configuration of the scaler CAENVME API CAENVME GetScalerConf long Handle short Limit short AutoReset CVlOSources Hit CVIOSources Gate CVIOSources Reset 4 3 22 CAENVME ReadhRegister Parameters in Handle The
70. write only 15 Output multiplexer clear LED POL C 13 write only 7 LED polarity clear PULSEA 0 16 read write 16 Period and width of pulser A PULSEA 1 17 read write 10 pulses and range of pulser PULSEB 0 19 read write 16 Period and width of pulser B PULSEB 1 1 read write 10 3t pulses and range of pulser B SCALERO 1C read write 11 End Count Limit and Autores of scaler SCALERI 1 read only 10 Counter value of scaler DISP ADL 20 read only 16 Display AD 15 0 DISP 21 read only 16 Display AD 31 16 DISP DTL 22 read only 16 Display DT 15 0 DISP 23 read only 16 Display DT 31 16 DISP PCI 24 read only 12 Display control left bar DISP PC2 25 read only 12 Display control right bar LM ADL 28 read write 16 Local monitor AD 15 0 LM ADH 29 read write 16 Local monitor AD 31 16 LM C 2C read write 9 Local monitor controls NPO Filename Number of pages Page 00106 03 V 1718 MUTx 09 V1718_REV9 DOC 62 15 Tools for Discovery Document type Title Revision date Revision User s Manual MUT Mod V1718 VME USB Bridge 29 06 2009 9 2 13 1 Status register 0x00 D16 read write This register contains information on the status of the module 15 14 13 12 11 10 987654131 2 1 0 L SYSTEM RESET SYSTEM CONTROL FLASH READY DTACK BERR DIP SWITCH 0 DIP SWITCH 1 DIP SWITCH 2 DIP SWITCH 3 SYSTEM RESET
Download Pdf Manuals
Related Search
Related Contents
User Manual Power Transmission Installation and Operating Instructions for Brake BVSTKT5970 User Manual-SDE-3004 Cooper Lighting LV3860IS User's Manual LIVING LV3 P&G - Nicolas Entretien User manual - Smoke Machines 3 - 5 お願い Copyright © All rights reserved.
Failed to retrieve file