sis3320.h

Go to the documentation of this file.
00001 /***************************************************************************/
00002 /*                                                                         */
00003 /*  Filename: sis3320.h                                                    */
00004 /*                                                                         */
00005 /*  Funktion: headerfile for SIS3320                                       */
00006 /*                                                                         */
00007 /*  Autor:                TH                                               */
00008 /*  date:                 10.07.2005                                       */
00009 /*  last modification:    28.09.2005                                       */
00010 /*                                                                         */
00011 /* ----------------------------------------------------------------------- */
00012 /*                                                                         */
00013 /*  SIS  Struck Innovative Systeme GmbH                                    */
00014 /*                                                                         */
00015 /*  Harksheider Str. 102A                                                  */
00016 /*  22399 Hamburg                                                          */
00017 /*                                                                         */
00018 /*  Tel. +49 (0)40 60 87 305 0                                             */
00019 /*  Fax  +49 (0)40 60 87 305 20                                            */
00020 /*                                                                         */
00021 /*  http://www.struck.de                                                   */
00022 /*                                                                         */
00023 /*  © 2005                                                                 */
00024 /*                                                                         */
00025 /***************************************************************************/
00026 
00027 #define SIS3320_CONTROL_STATUS                       0x0      /* read/write; D32 */ 
00028 #define SIS3320_MODID                                0x4      /* read only;  D32 */ 
00029 #define SIS3320_IRQ_CONFIG                           0x8      /* read/write; D32 */ 
00030 #define SIS3320_IRQ_CONTROL                          0xC      /* read/write; D32 */ 
00031 
00032 #define SIS3320_ACQUISTION_CONTROL                  0x10      /* read/write; D32 */ 
00033 #define SIS3320_START_DELAY                         0x14      /* read/write; D32 */ 
00034 #define SIS3320_STOP_DELAY                          0x18      /* read/write; D32 */ 
00035  
00036 #define SIS3320_MAX_NOF_EVENT                       0x20      /* read/write; D32 */ 
00037 #define SIS3320_ACTUAL_EVENT_COUNTER                0x24      /* read; D32 */ 
00038  
00039  
00040 #define SIS3320_CBLT_BROADCAST_SETUP                0x30      /* read/write; D32 */ 
00041 #define SIS3320_ADC_MEMORY_PAGE_REGISTER            0x34      /* read/write; D32 */ 
00042  
00043 #define SIS3320_DAC_CONTROL_STATUS                  0x50      /* read/write; D32 */ 
00044 #define SIS3320_DAC_DATA                            0x54      /* read/write; D32 */ 
00045 #define SIS3320_ADC_GAIN_CONTROL                    0x58      /* read/write; D32 */ 
00046  
00047 #define SIS3320_KEY_RESET                           0x400         /* write only; D32 */ 
00048 #define SIS3320_KEY_ARM                             0x410         /* write only; D32 */ 
00049 #define SIS3320_KEY_DISARM                          0x414         /* write only; D32 */ 
00050 #define SIS3320_KEY_START                           0x418         /* write only; D32 */ 
00051 #define SIS3320_KEY_STOP                            0x41C         /* write only; D32 */ 
00052  
00053 #define SIS3320_KEY_RESET_DDR2_LOGIC                0x428         /* write only; D32 */ 
00054  
00055  
00056  
00057 #define SIS3320_EVENT_CONFIG_ALL_ADC                0x01000000     
00058 #define SIS3320_SAMPLE_LENGTH_ALL_ADC               0x01000004     
00059 #define SIS3320_SAMPLE_START_ADDRESS_ALL_ADC        0x01000008     
00060 #define SIS3320_ADC_INPUT_MODE_ALL_ADC              0x0100000C     
00061  
00062 #define SIS3320_TRIGGER_FLAG_CLR_CNT_ALL_ADC        0x0100002C       
00063  
00064  
00065  
00066 #define SIS3320_ADC_INPUT_MODE_ADC12                0x0200000C     
00067  
00068 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC1          0x02000010     
00069 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC2          0x02000014     
00070  
00071 #define SIS3320_ACTUAL_SAMPLE_VALUE_ADC12           0x02000020     
00072  
00073 #define SIS3320_ACTUAL_SAMPLE_VALUE_ADC12           0x02000020     
00074 #define SIS3320_DDR2_TEST_REGISTER_ADC12            0x02000028       
00075 #define SIS3320_TRIGGER_FLAG_CLR_CNT_ADC12          0x0200002C       
00076  
00077 #define SIS3320_TRIGGER_SETUP_ADC1                  0x02000030     
00078 #define SIS3320_TRIGGER_THRESHOLD_ADC1              0x02000034     
00079 #define SIS3320_TRIGGER_SETUP_ADC2                  0x02000038     
00080 #define SIS3320_TRIGGER_THRESHOLD_ADC2              0x0200003C     
00081  
00082 #define SIS3320_EVENT_DIRECTORY_ADC1                0x02010000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00083 #define SIS3320_EVENT_DIRECTORY_ADC2                0x02018000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00084  
00085  
00086  
00087  
00088 #define SIS3320_ADC_INPUT_MODE_ADC34                0x0280000C     
00089  
00090 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC3          0x02800010     
00091 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC4          0x02800014     
00092  
00093 #define SIS3320_ACTUAL_SAMPLE_VALUE_ADC34           0x02800020     
00094 #define SIS3320_DDR2_TEST_REGISTER_ADC34            0x02800028       
00095 #define SIS3320_TRIGGER_FLAG_CLR_CNT_ADC34          0x0280002C       
00096  
00097 #define SIS3320_TRIGGER_SETUP_ADC3                  0x02800030     
00098 #define SIS3320_TRIGGER_THRESHOLD_ADC3              0x02800034     
00099 #define SIS3320_TRIGGER_SETUP_ADC4                  0x02800038     
00100 #define SIS3320_TRIGGER_THRESHOLD_ADC4              0x0280003C     
00101  
00102 #define SIS3320_EVENT_DIRECTORY_ADC3                0x02810000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00103 #define SIS3320_EVENT_DIRECTORY_ADC4                0x02818000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00104  
00105 #define SIS3320_ADC_INPUT_MODE_ADC56                0x0300000C     
00106  
00107 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC5          0x03000010     
00108 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC6          0x03000014     
00109  
00110 #define SIS3320_ACTUAL_SAMPLE_VALUE_ADC56           0x03000020     
00111 #define SIS3320_DDR2_TEST_REGISTER_ADC56            0x03000028       
00112 #define SIS3320_TRIGGER_FLAG_CLR_CNT_ADC56          0x0300002C       
00113  
00114 #define SIS3320_TRIGGER_SETUP_ADC5                  0x03000030     
00115 #define SIS3320_TRIGGER_THRESHOLD_ADC5              0x03000034     
00116 #define SIS3320_TRIGGER_SETUP_ADC6                  0x03000038     
00117 #define SIS3320_TRIGGER_THRESHOLD_ADC6              0x0300003C     
00118  
00119 #define SIS3320_EVENT_DIRECTORY_ADC5                0x03010000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00120 #define SIS3320_EVENT_DIRECTORY_ADC6                0x03018000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00121  
00122  
00123 #define SIS3320_ADC_INPUT_MODE_ADC78                0x0380000C     
00124  
00125 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC7          0x03800010     
00126 #define SIS3320_ACTUAL_SAMPLE_ADDRESS_ADC8          0x03800014     
00127  
00128 #define SIS3320_ACTUAL_SAMPLE_VALUE_ADC78           0x03800020     
00129 #define SIS3320_DDR2_TEST_REGISTER_ADC78            0x03800028       
00130 #define SIS3320_TRIGGER_FLAG_CLR_CNT_ADC78          0x0380002C       
00131  
00132 #define SIS3320_TRIGGER_SETUP_ADC7                  0x03800030     
00133 #define SIS3320_TRIGGER_THRESHOLD_ADC7              0x03800034     
00134 #define SIS3320_TRIGGER_SETUP_ADC8                  0x03800038     
00135 #define SIS3320_TRIGGER_THRESHOLD_ADC8              0x0380003C     
00136  
00137 #define SIS3320_EVENT_DIRECTORY_ADC7                0x03810000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00138 #define SIS3320_EVENT_DIRECTORY_ADC8                0x03818000    /* read only; D32, BLT32, MBLT64; size: 512Lwords 0x800 Bytes */ 
00139  
00140 #define SIS3320_ADC1_OFFSET                         0x04000000     
00141 #define SIS3320_ADC2_OFFSET                         0x04800000     
00142 #define SIS3320_ADC3_OFFSET                         0x05000000     
00143 #define SIS3320_ADC4_OFFSET                         0x05800000     
00144 #define SIS3320_ADC5_OFFSET                         0x06000000     
00145 #define SIS3320_ADC6_OFFSET                         0x06800000     
00146 #define SIS3320_ADC7_OFFSET                         0x07000000     
00147 #define SIS3320_ADC8_OFFSET                         0x07800000     
00148  
00149 #define SIS3320_NEXT_ADC_OFFSET                     0x00800000     
00150  
00151 /* define sample clock */ 
00152 #define SIS3320_ACQ_SET_CLOCK_TO_200MHZ             0x70000000  /* default after Reset  */ 
00153 #define SIS3320_ACQ_SET_CLOCK_TO_100MHZ             0x60001000 
00154 #define SIS3320_ACQ_SET_CLOCK_TO_50MHZ              0x50002000 
00155 #define SIS3320_ACQ_SET_CLOCK_TO_LEMO_CLOCK_IN      0x10006000 
00156 #define SIS3320_ACQ_SET_CLOCK_TO_P2_CLOCK_IN        0x00007000 
00157  
00158  
00159 #define SIS3320_ACQ_DISABLE_LEMO_START_STOP         0x01000000 
00160 #define SIS3320_ACQ_ENABLE_LEMO_START_STOP          0x00000100
00161  
00162 #define SIS3320_ACQ_DISABLE_INTERNAL_TRIGGER        0x00400000 
00163 #define SIS3320_ACQ_ENABLE_INTERNAL_TRIGGER         0x00000040 
00164  
00165 #define SIS3320_ACQ_DISABLE_MULTIEVENT              0x00200000 
00166 #define SIS3320_ACQ_ENABLE_MULTIEVENT               0x00000020 
00167  
00168 #define SIS3320_ACQ_DISABLE_AUTOSTART               0x00100000 
00169 #define SIS3320_ACQ_ENABLE_AUTOSTART                0x00000010 
00170  
00171 /* bits of SIS3320_Event Configuration register ; D-register*/ 
00172 #define EVENT_CONF_ENABLE_SAMPLE_LENGTH_STOP        0x20 
00173 #define EVENT_CONF_ENABLE_WRAP_PAGE_MODE            0x10 
00174  
00175 #define EVENT_CONF_PAGE_SIZE_16M_WRAP               0x0 
00176 #define EVENT_CONF_PAGE_SIZE_4M_WRAP                0x1 
00177 #define EVENT_CONF_PAGE_SIZE_1M_WRAP                0x2 
00178 #define EVENT_CONF_PAGE_SIZE_256K_WRAP              0x3 
00179  
00180 #define EVENT_CONF_PAGE_SIZE_64K_WRAP               0x4
00181 #define EVENT_CONF_PAGE_SIZE_16K_WRAP               0x5 
00182 #define EVENT_CONF_PAGE_SIZE_4K_WRAP                0x6 
00183 #define EVENT_CONF_PAGE_SIZE_1K_WRAP                0x7 
00184  
00185 #define EVENT_CONF_PAGE_SIZE_512_WRAP               0x8 
00186 #define EVENT_CONF_PAGE_SIZE_256_WRAP               0x9 
00187 #define EVENT_CONF_PAGE_SIZE_128_WRAP               0xA 
00188 #define EVENT_CONF_PAGE_SIZE_64_WRAP                0xB 
00189 

Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk