Difference between revisions of "Struck SIS3302 ADC"
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | SIS 3302 ADC digitizer | + | SIS 3302 ADC digitizer, 100 MHz 12 bit |
== Manual== | == Manual== | ||
Line 6: | Line 6: | ||
==DIP settings== | ==DIP settings== | ||
+ | |||
+ | [[File:sis3302_JP120.png | 200 px]] | ||
+ | |||
{| border="1" |cellpadding="20" cellspacing="0 | {| border="1" |cellpadding="20" cellspacing="0 | ||
|colspan= "2" | Address | |colspan= "2" | Address | ||
Line 22: | Line 25: | ||
|} | |} | ||
+ | [[File:sis3302_JP101.png | 200 px]] | ||
JP101 settings, left pin is toward front face of module | JP101 settings, left pin is toward front face of module | ||
Line 34: | Line 38: | ||
|right|| top | |right|| top | ||
|} | |} | ||
+ | |||
+ | |||
+ | [[File:sis3302_JP80.png| 200 px]] | ||
Jumper JP80 settings | Jumper JP80 settings | ||
Line 58: | Line 65: | ||
|8 || ON | |8 || ON | ||
|} | |} | ||
+ | |||
+ | [[File:sis3302_JP102.png | 200 px]] | ||
;JTAG jumpers (JP102) are closed on bottom for VME configuration | ;JTAG jumpers (JP102) are closed on bottom for VME configuration | ||
+ | |||
+ | [[File:sis3302_SW.png | 200 px]] | ||
Address switches | Address switches | ||
+ | |||
+ | SW1=0 | ||
+ | SW2=8 | ||
+ | A32 address = 0x08000000 | ||
SW1=5 | SW1=5 | ||
SW2=0 | 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 | ||
+ | |||
+ | <pre> | ||
+ | -> s3320Init(0x50000000,0,0) | ||
+ | s3320Init: ERROR in sysBusToLocalAdrs(0x09,0x50000000,&laddr) | ||
+ | value = -1 = 0xffffffff | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | tried with bits swapped | ||
+ | |||
+ | <pre> | ||
+ | -> s3320Init(0x05000000,0,0) | ||
+ | s3320Init: ERROR in sysBusToLocalAdrs(0x09,0x5000000,&laddr) | ||
+ | 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> | ||
− | |||
[[VME_modules]] | [[VME_modules]] |
Latest revision as of 21:54, 7 November 2018
SIS 3302 ADC digitizer, 100 MHz 12 bit
Manual
DIP settings
Address | |
Jumper | location |
JP120A | top |
JP120B | top |
JP120C | top |
JP120D | top |
JP102 | top |
JP101 settings, left pin is toward front face of module
Address | |
pins | location |
left | top |
right | top |
Jumper JP80 settings
Address | |
Pin | Setting |
1 | ON |
2 | OFF |
3 | OFF |
4 | OFF |
5 | ON |
6 | OFF |
7 | OFF |
8 | ON |
- JTAG jumpers (JP102) are closed on bottom for VME configuration
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)