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

Data Format

old run on daq1

/data/olddata/r6xxx/r6998.dat


V785NDataStructure.png


Address
Module address
V775 0x610000
V785 0x20000
V792 0xee0000
V260 0xda0000
V1495 0x80110000
VX1190 0x210000
SIS3610 0x3800
JlabF250 0
Struck3332 0x40

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