; This file is used to generate DSP code for the second generation ; timing board for the SITe 424A imager (2048 x 2049 pixels, 24 microns) PAGE 132 ; Printronix page width - 132 columns ; Define a section name so it doesn't conflict with other application programs SECTION TIM ; Include a header file that defines global parameters INCLUDE "/home/leach/DSPlib/timhdr.asm" APL_NUM EQU 0 ; Application number from 0 to 3 CC EQU SUBARRAY+SPLIT_SERIAL+SPLIT_PARALLEL+MPP_CAPABLE+SHUTTER_CONTROL+BINNING ; Include miscellaneous timing commands INCLUDE "timmisc.asm" ; Custom INCLUDE "/home/leach/DSPlib/timCCDmisc.asm" ; Generic IF @SCP("DOWNLOAD","EEPROM") IF @CVS(N,@LCV(L))>(APL_NUM+1)*N_W_APL WARN 'EEPROM overflow!' ; Make sure next application ENDIF ; will not be overwritten ENDIF ;************************************************************************** ; * ; Permanent address register assignments * ; R1 - Address of SSI receiver contents * ; R2 - Address of SCI receiver contents * ; R3 - Pointer to current top of command buffer * ; R4 - Pointer to processed contents of command buffer * ; R5 - Temporary register for processing SSI and SCI contents * ; R6 - CCD clock driver address for CCD #0 = $FF80 * ; It is also the A/D address of analog board #0 * ; * ; Other registers * ; R0, R7 - Temporary registers used all over the place. * ; R5 - Can be used as a temporary register but is circular, * ; modulo 32. * ;************************************************************************** ; Specify execution and load addresses IF @SCP("DOWNLOAD","HOST") ORG P:APL_ADR,P:APL_ADR ; Download address ELSE ORG P:APL_ADR,P:APL_NUM*N_W_APL ; EEPROM address ENDIF ; Keep the CCD idling when not reading out IDLE DO Y:=$200 WARN 'Application P: program is too large!' ; Make sure program ENDIF ; will not overflow ; *********** DATA AREAS - READOUT PARAMETERS ************ ; Command table - make sure there are exactly 32 entries in it IF @SCP("DOWNLOAD","HOST") ORG X:COM_TBL,X:COM_TBL ; Download address ELSE ORG P:COM_TBL,P:APL_NUM*N_W_APL+APL_LEN+$200 ; EEPROM address ENDIF DC 'IDL',IDL ; Put CCD in IDLE mode DC 'STP',STP ; Exit IDLE mode DC 'SBV',SETBIAS ; Set DC bias supply voltages DC 'RDC',RDCCD ; Begin CCD readout DC 'CLR',CLEAR ; Fast clear the CCD DC 'SGN',ST_GAIN ; Set video processor gain DC 'WRC',WR_CNTRL ; Write control word over SSI link DC 'SDC',SET_DC ; Set DC coupled diagnostic mode DC 'SBN',SET_BIAS_NUMBER ; Set bias number DC 'SMX',SET_MUX ; Set clock driver MUX output DC 'ABR',ABR_RDC ; Abort readout DC 'CRD',CONT_RD ; Continue reading out DC 'DON',START ; Nothing special DC 'CSW',CLR_SWS ; Clear analog switches to reduce power drain DC 'SOS',SEL_OS ; Select Output Source DC 'MPP',SEL_MPP ; Select MPP mode DC 'RCC',READ_CONTROLLER_CONFIGURATION DC 'OSH',OPEN_SHUTTER DC 'CSH',CLOSE_SHUTTER DC 'PON',PWR_ON ; Turn on all camera biases and clocks DC 'POF',PWR_OFF ; Turn +/- 15V power supplies off DC 'SET',SET_EXP_TIME ; Set exposure time DC 'RET',RD_EXP_TIME ; Read elapsed exposure time DC 'SEX',START_EXPOSURE DC 'PEX',PAUSE_EXPOSURE DC 'REX',RESUME_EXPOSURE DC 'AEX',ABORT_EXPOSURE DC 0,START,0,START,0,START,0,START DC 0,START IF @SCP("DOWNLOAD","HOST") ORG Y:0,Y:0 ; Download address ELSE ORG Y:0,P: ; EEPROM address continues from P: above ENDIF GAIN DC 0 ; Video processor gain and integrator speed NSR DC 2090 ; Number of pixels read per row NPR DC 2049 ; Number of lines read NSCLR DC 2200 ; Clear serial register, twice NPCLR DC 1100 ; Clear parallel register once, in split mode ; Binning parameters NSBIN DC 1 ; Serial binning parameter NPBIN DC 1 ; Parallel binning parameter ; Miscellaneous definitions TST_DAT DC 0 ; Temporary definition for test images SH_DEL DC 10 ; Delay in milliseconds between shutter closing ; and image readout ; Subimage readout parameters - set to not have any effect NP_SKIP DC 0 ; Number of rows to skip NS_SKP1 DC 0 ; Number of serials to skip before read NS_SKP2 DC 0 ; Number of serials to skip after read NR_BIAS DC 0 ; Number of bias pixels to read ; Subimage readout parameters ;NP_SKIP DC 200 ; Number of rows to skip ;NS_SKP1 DC 1000 ; Number of serials to skip before read ;NS_SKP2 DC 800 ; Number of serials to skip after read ;NR_BIAS DC 100 ; Number of bias pixels to read ; Readout peculiarity parameters N_PAR DC 10 ; 30 Delay parameter for parallel clocks SERIAL_SKIP DC SERIAL_SKIP_A ; Address of serial skipping waveforms SERIAL_READ DC SERIAL_READ_A ; Address of serial waveform table SERIAL_CLOCK DC SERIAL_CLOCK_A ; Address of serial clocking waveforms PARALLEL DC PARALLEL_UPPER ; Address of parallel waveform table OS DC '__A' ; The name of the Output Source(s) ; Include the waveform table INCLUDE "SITe424.waveforms" ; SITe424AB readout waveforms ENDSEC ; End of section TIM ; End of program END