Difference between revisions of "CAEN V792 ADC"

From New IAC Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
[[Image:CAEN_V792_QDC_Address.jpg | 200 px]]
 
[[Image:CAEN_V792_QDC_Address.jpg | 200 px]]
  
Module address
+
==Module address==
  
;0x00EE
+
The rotary dials for the address were set by the factory to be 32 bit addressing with "e" and "e" on the last dials.
  
 +
We would like to use 24 bit addressing so lets set the first two dials to "ee".  The last two dials should also be set to something non-zero in order to permit 32 bit addressing.  The MVME-6100 board only has a small amount of 32 bit VME addressing space  mapped to the MVME's address space. 
  
I saw the following error messages
+
                VME                            CPU
 +
    A24  0x000000-0xffffff          0x90000000-0x90ffffff
 +
    A32  0x08000000-0x11ffffff      0x80000000-0x89ffffff
  
  
 +
If you set the last two dials to 0 8 then the addressing will look like
  
-> ld < v792Lib.o
+
    c792Init 0xee0000    (for A24 addressing)
Undefined symbol: sysVmeDmaSend (binding 1 type 0)
+
or
Undefined symbol: sysVmeDmaDone (binding 1 type 0)
+
    c792Init 0x08ee0000  (for A32 addressing)
ld error: Module contains undefined symbol(s) and may be unusable.
 
value = 0 = 0x0
 
  
I then saw the following error message when I tried to initialize it.
+
== Data banks ==
  
  -> c792Init (0x00ee)
+
The ADC module library will send the entire block over unless you set the ADC for sparcification.  
  ERROR: Board ID does not match: 16777215
+
 
value = -1 = 0xffffffff
+
Assuming we read all 32 channels then the data block will look like

Revision as of 19:34, 30 November 2007

command used to compile library

v792 >ccppc -fno-builtin -fno-for-scope -fstrength-reduce -mlongcall -mcpu=604 -DCPU=PPC604 -DVXWORKS -D_GNU_TOOL -DVXWORKSPPC -I/usr/local/coda/2.5/common/include -I../h   -c -o v792Lib.o caen792Lib.c 

CAEN V792 QDC Address.jpg

Module address

The rotary dials for the address were set by the factory to be 32 bit addressing with "e" and "e" on the last dials.

We would like to use 24 bit addressing so lets set the first two dials to "ee". The last two dials should also be set to something non-zero in order to permit 32 bit addressing. The MVME-6100 board only has a small amount of 32 bit VME addressing space mapped to the MVME's address space.

               VME                             CPU
    A24   0x000000-0xffffff           0x90000000-0x90ffffff
    A32   0x08000000-0x11ffffff       0x80000000-0x89ffffff


If you set the last two dials to 0 8 then the addressing will look like

    c792Init 0xee0000     (for A24 addressing)

or

    c792Init 0x08ee0000   (for A32 addressing)

Data banks

The ADC module library will send the entire block over unless you set the ADC for sparcification.

Assuming we read all 32 channels then the data block will look like