Difference between revisions of "Struck SIS3302 ADC"

From New IAC Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 116: Line 116:
 
s3320Init: ERROR in sysBusToLocalAdrs(0x09,0x5000000,&laddr)  
 
s3320Init: ERROR in sysBusToLocalAdrs(0x09,0x5000000,&laddr)  
 
value = -1 = 0xffffffff
 
value = -1 = 0xffffffff
 +
</pre>
 +
 +
=Running=
 +
 +
==Program direcotry on rocdaq2==
 +
in subdirectory on rocdaq2
 +
 +
/home/daq/CODA/linuxvme/sis3302/test
 +
 +
==Compiling s3302Libtest on rocdaq2==
 +
 +
the command below compiled the program s3302LibTest
 +
 +
[daq@rocdaq2 test]$ make -f Makefile s3302LibTest
 +
cc  -Wall -O2 -I. -I.. -I/home/daq/CODA/3.08/linuxvme/include -L. -L.. -L/home/daq/CODA/3.08/linuxvme/lib -DJLAB -g -o s3302LibTest s3302LibTest.c  -lrt -ljvme -lsis3302
 +
 +
==error message when outof memory when external trigger set==
 +
 +
I ran
 +
./s3302IntTest
 +
 +
gave it an external trigger and it filled the module memory giving the error
 +
 +
./s3302LibTest
 +
 +
<pre>
 +
JLAB s3302 Lib Tests
 +
----------------------------
 +
s3302SetDebugMask: Debug Mask set to 0x2
 +
s3302SetDebugMask: Debug Mask set to 0x0
 +
 +
        ---------- Checking SIS3302 address space ----------
 +
 +
        ----------            ALL GOOD            ----------
 +
Opening CRCSR Window
 +
jlabgefOpenCRCSR: ERROR
 +
        gefVmeCreateMasterWindow returned: Out Of Memory (2)
 +
 
</pre>
 
</pre>
  
  
 
[[VME_modules]]
 
[[VME_modules]]

Latest revision as of 21:54, 7 November 2018

SIS 3302 ADC digitizer, 100 MHz 12 bit

Manual

File:SIS3302ADC.pdf

DIP settings

Sis3302 JP120.png

Address
Jumper location
JP120A top
JP120B top
JP120C top
JP120D top
JP102 top

Sis3302 JP101.png

JP101 settings, left pin is toward front face of module

Address
pins location
left top
right top


Sis3302 JP80.png

Jumper JP80 settings

Address
Pin Setting
1 ON
2 OFF
3 OFF
4 OFF
5 ON
6 OFF
7 OFF
8 ON

Sis3302 JP102.png

JTAG jumpers (JP102) are closed on bottom for VME configuration


Sis3302 SW.png

Address switches

SW1=0 SW2=8 A32 address = 0x08000000

SW1=5 SW2=0 A32 address = 0x50000000

ROC Lib

ROC source directory

Original files on DAQ1 are located in

/home/daq/CODA/ROClibs/sis3300

A copy was put in

/home/daq/CODA/ROClibs/SIS3302


Functions

sisInit

s3320Init (0x50000000, 0, 0)

error message

->  s3320Init(0x50000000,0,0)
s3320Init: ERROR in sysBusToLocalAdrs(0x09,0x50000000,&laddr) 
value = -1 = 0xffffffff


tried with bits swapped

-> s3320Init(0x05000000,0,0)
s3320Init: ERROR in sysBusToLocalAdrs(0x09,0x5000000,&laddr) 
value = -1 = 0xffffffff

Running

Program direcotry on rocdaq2

in subdirectory on rocdaq2

/home/daq/CODA/linuxvme/sis3302/test

Compiling s3302Libtest on rocdaq2

the command below compiled the program s3302LibTest

[daq@rocdaq2 test]$ make -f Makefile s3302LibTest cc -Wall -O2 -I. -I.. -I/home/daq/CODA/3.08/linuxvme/include -L. -L.. -L/home/daq/CODA/3.08/linuxvme/lib -DJLAB -g -o s3302LibTest s3302LibTest.c -lrt -ljvme -lsis3302

error message when outof memory when external trigger set

I ran ./s3302IntTest

gave it an external trigger and it filled the module memory giving the error

./s3302LibTest

JLAB s3302 Lib Tests
----------------------------
s3302SetDebugMask: Debug Mask set to 0x2
s3302SetDebugMask: Debug Mask set to 0x0

         ---------- Checking SIS3302 address space ---------- 

         ----------            ALL GOOD            ---------- 
Opening CRCSR Window 
jlabgefOpenCRCSR: ERROR
         gefVmeCreateMasterWindow returned: Out Of Memory (2)


VME_modules