CAEN V785N ADC

From New IAC Wiki
Jump to navigation Jump to search

CAEN peak sensing multi event ADC


Documentation & Specs

http://www.caentechnologies.com/csite/CaenProd.jsp?parent=11&idmod=285

File:V785 rev13 Manual.pdf

Specs:

0-> +4 Volt input

5.7 us conversion time

12 Bit ADC

50 nsec min rise time for input pulse

1 k-Ohm input impedance

250 nsec min gate width

1 msec Max gate width

Address

const PDC_ADDR = 0x0200000

Library functions

c785Clear(ADC_ID);
  c785ClearThresh(ADC_ID);   /* Zero c785 thresholds for all channels*/
  c785Enable(ADC_ID);
  c785Status(ADC_ID,0,0);

stat = c785Dready(ADC_ID);
 if(stat > 0) {
   nwrds = c785ReadEvent(ADC_ID,rol->dabufp);
   if(nwrds<=0) {
      logMsg("ERROR: ADC Read Failed - Status 0x%x\n",nwrds,0,0,0,0,0);
     c785Clear(ADC_ID);
   } else {
      rol->dabufp += nwrds;
   }
 }else{
   logMsg("ERROR: NO data in ADC  datascan = 0x%x\n",stat,0,0,0,0,0);
 c785Clear(ADC_ID)
}


Standalone functions on 2.6.2

A standalone program was created to test the peak sensing ADC functions in the library on the CODA 2.6.2 ROC


error message:


initializing the SIS3610 
Initialized SIS3610 ID 0 at VME (USER) address 0x3800 (0xacfbb800)
gefVmeAttachCallback failed: code 0x3010000b
ERROR: vmeIntConnect failed 




VME_modules