You are on page 1of 11

; ROPA

; ROPA HE Aperture Deflection, HET accumulation and serial digital out 0.115
;
; Deflection tables changed to match Cascades detector heads deflection calibration
;
; Deflectable aperture HE v.071 based on X72 Prom v1.1 25-OCT-98
; for IC1_K72 on 34_21_72 board Cascades Box 2 Tray 2
; Kevin G. Rhoads -- based on X72 code Mark Widholm for Enstrophy
; Tricky timing dependencies no longer needed, we have a sync from the
; sweep generation available.
;
; moved ADC interface to Port 1 to make Port 0 available for parallel output of
; HET for serial digital interface (to eliminate Counter deck in PCM stack)
;
; Cascades MAG Y points forward (use inverting amp in signal chain)
; Cascades NEGATIVE MAG Z points outward along arm of detector
; NEG MAG Z GENERATES REF1 WHICH ACTIVATES DS1B
;; DS1B IS CONNECTED TO THE FORWARD TOP CAP DEFLECTION PLATE (UPPER)
; POS MAG Z GENERATES REF2 WHICH ACTIVATES DS2A
;; DS2A IS CONNECTED TO THE FORWARD INNER DEFLECTION PLATE (LOWER)
;

; PORT USAGE
; P0 HET counter parallel output
; P1 TEST bit & ADC serial interface bits
; P2 DAC serial interface bits
; P3 write strobe for HET parallel output

;directives added to make MetaLink ASM51.EXE happy:


$MOD51
$TITLE(K72 CPU: HE Aperture Defl., HET accum, serial digital out 0.115)
$PAGEWIDTH(132)
$NOPAGING
$NODEBUG
$SYMBOLS
$OBJECT

FAST_OUT EQU 1
;FAST_OUT EQU 0
;SKIP_TWO EQU 1 ;on RESET skip two words out
SKIP_TWO EQU 0 ;on RESET skip two words out
IF (SKIP_TWO)
SKIP_ONE EQU 1 ;on RESET skip one word out
ELSE
SKIP_ONE EQU 1 ;on RESET skip one word out
;SKIP_ONE EQU 0 ;on RESET skip one word out
ENDIF ;IF (SKIP_TWO)

;
PARANOID EQU 1
;PARANOID EQU 0
;DOTEST EQU 1
DOTEST EQU 0

PRELOOKUP EQU 1
;PRELOOKUP EQU 0
IF (PRELOOKUP)
ZEROBOTTOM EQU 1
ELSE ;IF (PRELOOKUP)
;ZEROBOTTOM EQU 1
ZEROBOTTOM EQU 0
ENDIF ;IF (PRELOOKUP)

;DOSKIP EQU 0
DOSKIP EQU 1
SKIPMAX EQU 1
STEPMAX EQU 32
STEPMAXP1 EQU 33

IF (DOSKIP)
;SKIPSYNC EQU 0
SKIPSYNC EQU 1
ELSE
SKIPSYNC EQU 0
ENDIF ;IF (DOSKIP)
;DOCOUNT EQU 1
DOCOUNT EQU 0 ;(added 113)

USING 0 ;Select addresses for Bank 0


; PORT USAGE
; P0 FIFO output
; P1 Single bit I/O - ADC
; P2 Single bit I/O - DAC
; P3 single bit IO

; IO BITS
SCHK BIT P2.0 ;SYNC CHECK TEST POINT
PLUS BIT P2.1 ;PLUS CHECK TEST POINT
MNUS BIT P2.2 ;MNUS CHECK TEST POINT
DACK BIT P2.5 ;DAC CLOCK
DACS BIT P2.6 ;DAC CHIP SELECT
DASD BIT P2.7 ;DAC DATA

TST BIT P1.1 ;PAYLOAD TEST INPUT

ADCS BIT P1.4 ;ADC CHIP SELECT


ADN BIT P1.5 ;NEG ADC DATA
ADCK BIT P1.6 ;ADC CLOCK
ADP BIT P1.7 ;POS ADC DATA

MajF BIT P3.0


;MinF BIT P3.1
PPS1 BIT P3.2
;INT1 BIT P3.3
EVENT BIT P3.4 ;counter input
IMAGE BIT P3.5
;WR BIT P3.6 ;LOAD FIFO
SWPMSB BIT P3.7 ;(added 113)

; DAC COMMANDS
LOADA EQU 1
LOADB EQU 2
LOADC EQU 4

;REG USAGE
;R0 SCRATCH
;R1 NEG MAG Z/X ADC RESULT
;R2 POS MAG Z/X ADC RESULT
;R3 previous R1 was SWEEP STEP COUNTER
;R4 previous R2 was TIMOUT FOR PHASE LOCK
;R5 TEST RAMP +Z/X
;R6 TEST RAMP -Z/X
;R7 TEST RAMP POLARITY

DSEG
;INTERNAL RAM
ORG 0
RR0: DS 1 ;MEM ADDR FOR R0
RR1: DS 1 ;MEM ADDR FOR R1
RR2: DS 1 ;MEM ADDR FOR R2
RR3: DS 1 ;MEM ADDR FOR R3
RR4: DS 1 ;MEM ADDR FOR R4

ORG 40H
MON: DS 1 ;DEFLECTION MONITOR
RAMP: DS 1 ;TEST RAMP
FLAG: DS 1
WASPOS: DS 1
WASNEG: DS 1

IF (DOSKIP)
SKIP: DS 1
STEP: DS 1
O1PPS: DS 1
OSWPMSB: DS 1
ENDIF ;IF (DOSKIP)

;VEC0L: DS 1
;VEC0H: DS 1
VEC1L: DS 1
VEC1H: DS 1

;TEMP: DS 1

;SWP: DS 1 ;SWEEP STEP NUMBER

;TC EQU TL0


COUNT EQU TL0
COUNTH EQU TH0
DS 8
STACK: DS 8

;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------

CSEG
ORG 0
JMP RESET

;IF (PARANOID) fill unused codespace here with NOPs


NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
;ENDIF ;IF (PARANOID)

; ---------------------------------
ORG 13H
; External INT 1 vectors to here, so each external INT 1 will jump via this
; dispatch code to the appropriate PROGn
INTV1:
CALL PROG0
RETI ;1us AND DOING A RET
; ---------------------------------

;-----------------------------------------------------------------------------

RESET:
IF (FAST_OUT)
IF (SKIP_TWO)
; MOV A,#99
; MOVX @R0,A ;WRITE low byte of count test pattern (ADDR NOT USED)
ELSE
IF (SKIP_ONE)
; MOV A,#99
; MOVX @R0,A ;WRITE low byte of count test pattern (ADDR NOT USED)
ELSE
MOV A,#99
MOVX @R0,A ;WRITE low byte of count test pattern (ADDR NOT USED)
ENDIF ;IF (SKIP_ONE)
ENDIF ;IF (SKIP_TWO)
MOV A,#88
MOVX @R0,A ;WRITE high byte of count test pattern (ADDR NOT USED)
IF (SKIP_TWO)
; MOV A,#22
; MOVX @R0,A ;WRITE low byte of count test pattern (ADDR NOT USED)
ELSE
MOV A,#22
MOVX @R0,A ;WRITE low byte of count test pattern (ADDR NOT USED)
ENDIF ;IF (SKIP_TWO)
MOV A,#33
MOVX @R0,A ;WRITE high byte of count test pattern (ADDR NOT USED)
ENDIF ;IF (FAST_OUT)

; MOV SP,#3FH
MOV SP,#STACK

CLR DACK
CLR ADCK
MOV RAMP,#0
MOV FLAG,#0
MOV R7,#0
MOV COUNT,#0 ;ZERO OUT Total Counts
MOV COUNTH,#0 ;ZERO OUT Total Counts
;
MOV TMOD,#0DH
MOV TCON,#14H ;1us EDGE TRIG FOR INT1, COUNTER 0 ON
MOV VEC1H,#02H ; (114) #180 -> #200
MOV VEC1L,#00H ;1us (114) 200H LEAVES ROOM FOR other CODE

IF (DOSKIP)
MOV SKIP,#255 ;not skipping deflection
MOV STEP,#0 ;START with step at zero
IF (SKIPSYNC) ;(115)
MOV O1PPS,#0 ;START with PPS1 at zero
MOV OSWPMSB,#0 ;START with SWPMSB at zero
ENDIF ;IF (SKIPSYNC) ;(115)
ENDIF ;IF (DOSKIP)

MOV IE,#84H ;1us ENABLE EXT INT1


CALL PROG0

; --------------------------------- IDLE LOOP

;CALC NEW DEFLECTION FOR EACH ENERGY STEP


LOOP:
MOV R0,#4
LOOP0:
DJNZ R0,LOOP0 ;WAIT A BIT
; going to sample the bit to signal interrupts to K21 CPU which then bumps energy step
; update deflection each time energy sweep steps, no more timing mishegas

JNB IMAGE,TESTFLAG ;end of HE energy sweep update


MOV FLAG,#0 ;reset flag so ready to process next
IF (DOSKIP) ;(114)
IF (SKIPSYNC) ;(114)
JNB PPS1,TO_WT ;begin 1PPS ?, if no 1PPS jump (114)
MOV A,O1PPS ;if 1PPS, check for leading edge (114)
CJNE A,#0,WT ;not 1PPS leading edge, ignore (114)
MOV O1PPS,#255 ;SET OLD PPS1 at ALL ONES (114)
; MOV STEP,#0 ;is leading edge, reset step, skip (114)
; MOV SKIP,#255 ;(114)
MOV STEP,#1 ;is leading edge, reset step, skip (115)
MOV SKIP,#0 ;(115) ;with deflection ON (value will be XORed)
JMP WT

TO_WT:
MOV O1PPS,#0 ;SET OLD PPS1 at zero (114)

ENDIF ;IF (SKIPSYNC) ;(114)


ENDIF ;IF (DOSKIP) ;(114)

WT:
MOV R0,#4
IDLE:

; going to sample the bit to signal interrupts to K21 CPU which then bumps energy step
; update deflection each time energy sweep steps, no more timing mishegas
DJNZ R0,IDLE ;WAIT A BIT
JB IMAGE,LOOP ;HE energy sweep being updated

TESTFLAG:
MOV R0,FLAG
CJNE R0,#0,LOOP ;did we process this already
MOV FLAG,#255 ;set flag to indicate processing

; going to sample the bit to signal interrupts to K21 CPU which then bumps energy step
; update deflection each time energy sweep steps, no more timing mishegas
; --------------------------------- end IDLE LOOP

IF (DOSKIP)
IF (SKIPSYNC)
JNB PPS1,STEPNORM
MOV A,O1PPS
CJNE A,#0,STEPN0RM
STEPRST: ;Upon 1PPS we reset our stepping
MOV O1PPS,#255 ;SET OLD PPS1 at ALL ONES
; MOV A,#0 (115)
MOV STEP,#1 ;start with step 1 (115)
MOV SKIP,#0 ;and with deflection ON (added 112)(value will be XORed)
JMP STEPSET
STEPNORM:
MOV O1PPS,#0 ;SET OLD PPS1 at zero
STEPN0RM:
ENDIF ;IF (SKIPSYNC)
MOV A,STEP
STEPSET:
IF (DOCOUNT) ;(added 113)
ADD A,#1
MOV STEP,A
MOV R0,A
CJNE R0,#STEPMAXP1,SAMESWEEP
MOV STEP,#1
XRL SKIP,#255
ELSE ;IF (DOCOUNT) ;(added 113)
JB SWPMSB,MORETEST
MOV OSWPMSB,#0
JMP SAMESWEEP
MORETEST: ;HEI Sweep MSB is set, if it wasn't before, then new sweep
MOV A,OSWPMSB
CJNE A,#0,SAMESWEEP
MOV OSWPMSB,#255
MOV A,STEP ;is new sweep, increment STEP, every other we change mask
ADD A,#1
MOV STEP,A
RRC A
JC SAMESWEEP ;is new sweep, but second of two, so don't change mask
XRL SKIP,#255 ;change mask
ENDIF ;IF (DOCOUNT) ;(added 113)

SAMESWEEP:
ENDIF ;IF (DOSKIP)

;CALCULATE TEST RAMP HERE EVEN IF IT ISN'T USED


SETB SCHK
INC RAMP
CJNE R7,#0,NRAMP ;POS OR NEG RAMP?

MOV R5,RAMP ;POS. LOAD R5


MOV R6,#0
CJNE R5,#0,RDMAG ;END OF POS RAMP?
MOV R7,#1 ;YES. SWITCH TO NEG RAMP
SJMP RDMAG

NRAMP:
MOV R6,RAMP ;NEG. LOAD R6
MOV R5,#0
CJNE R6,#0,RDMAG ;END OF NEG RAMP?
MOV R7,#0 ;YES. SWITCH TO NEG RAMP
SJMP RDMAG

; going to sample the bit to signal interrupts to K21 CPU which then bumps energy step
; update deflection each time energy sweep steps, no more timing mishegas

; READ MAGS
RDMAG:
CLR ADCS ;START CONVERSION
; MOV R0,#3
MOV R0,#6
CJNE R3,#0,ISPOS
MOV WASPOS,#0
JMP TSTNEG
ISPOS:
MOV WASPOS,R3
TSTNEG:
CJNE R4,#0,ISNEG
MOV WASNEG,#0
JMP SAVEOLD
ISNEG:
MOV WASNEG,R4
SAVEOLD:
MOV RR3,R1 ;SAVE PREVIOUS VALUES
MOV RR4,R2

WT1:
DJNZ R0,WT1 ;WAIT FOR CONVERSION 6us changed const from 3 to 6 as now using 24MHz clock not 12 MHz clock
MOV R0,#8
SETB ADCK ;8us DELAY FROM CS LOW
MOV R1,#0 ;R1 NEG MAG Z/X RESULT
MOV R2,#0 ;R2 POS MAG Z/X RESULT
CLR ADCK

NXBIT:
MOV A,R1 ;12us/BIT
MOV C,ADN ;READ NEG Z/X BIT
RLC A ;SHIFT IT
SETB ADCK
MOV R1,A ;SAVE NEG RESULT IN R1
MOV A,R2
MOV C,ADP ;READ POS Z/X BIT
RLC A ;SHIFT IT
MOV R2,A ;SAVE POS RESULT IN R2
CLR ADCK
DJNZ R0,NXBIT
SETB ADCS

JB TST,TEST ;CHECK FOR TEST MODE


SJMP TLU

;TEST MODE. REPLACE MAG VALUES WITH TEST RAMP


TEST:
MOV RR1,R5
MOV RR3,R5
MOV RR2,R6
MOV RR4,R6

TLU:
; USE TABLE LOOK UP FOR DEFLECTION
IF (PRELOOKUP) ;LOOKUP BOTH SIDES BEFORE COMPARING
;LOOK UP ONE SIDE
CLR C
MOV A,R1 ;-Z/X IF + IS OFF SCALE
RRC A ;DROP LSB
MOV DPTR,#DS1TBL
MOVC A,@A+DPTR
MOV R1,A ;REF1

;LOOK UP OTHER SIDE


CLR C
MOV A,R2 ;+Z/X
RRC A ;DROP LSB
MOV DPTR,#DS2TBL
MOVC A,@A+DPTR
MOV R2,A ;REF2

ENDIF ;IF (PRELOOKUP)

CLR C
MOV A,R1 ;INSTEAD OF DECIDING ON R2>0 VS. R2=0, compare R1 to R2
SUBB A,R2 ; (R1-R2)<0 means R2 is the greater
JC POS
; CJNE R2,#0,POS

IF (PRELOOKUP)
MOV A,R1
ELSE ;IF (PRELOOKUP)
MOV A,R1 ;-Z/X IF + IS OFF SCALE
RRC A ;DROP LSB
; MOV MON,A
MOV DPTR,#DS1TBL
MOVC A,@A+DPTR
MOV R1,A ;REF1
ENDIF ;IF (PRELOOKUP)
MOV R2,#0 ;REF2=0
MOV MON,A

SJMP DACOUT

POS:
IF (PRELOOKUP)
MOV A,R2
ELSE ;IF (PRELOOKUP)
CLR C
MOV A,R2 ;+Z/X
RRC A ;DROP LSB
; MOV MON,A
MOV DPTR,#DS2TBL
MOVC A,@A+DPTR
MOV R2,A ;REF2
ENDIF ;IF (PRELOOKUP)
MOV R1,#0 ;REF1=0
MOV MON,A
; ORL MON,#128 ;SET MSB FOR POS DEFL

; SHIFT OUT NEW DAC VALUES


DACOUT:
CLR DACS
MOV A,#LOADC ;LOAD DAC-C COMMAND BYTE
ACALL SHIFTO ; DAC-C outputs to monitor
MOV A,MON
IF (DOSKIP)
ANL A,SKIP ;SKIP alternates 000 and 255
ENDIF ;IF (DOSKIP)
ACALL SHIFTO ;DATA BYTE
SETB DACS ;UPDATE DEFL MON
NOP
NOP

CLR DACS
MOV A,#LOADA ;LOAD DAC-A COMMAND BYTE
ACALL SHIFTO ; DAC-A outputs to Ref1
MOV A,R1
IF (DOSKIP)
ANL A,SKIP ;SKIP alternates 000 and 255
ENDIF ;IF (DOSKIP)
ACALL SHIFTO ;REF1 DATA BYTE

UPDT:
SETB DACS ;UPDATE REF1
NOP
NOP

CLR DACS
MOV A,#LOADB ;LOAD DAC-B COMMAND BYTE
ACALL SHIFTO ; DAC-B outputs to Ref2
MOV A,R2
IF (DOSKIP)
ANL A,SKIP ;SKIP alternates 000 and 255
ENDIF ;IF (DOSKIP)
ACALL SHIFTO ;REF2 DATA BYTE
SETB DACS ;UPDATE REF2
CLR SCHK ;TEST POINT TO CHECK PHASE LOCK
JMP LOOP

;----------------------
;ROUTINE TO SHIFT 8-BITS OF DATA INTO DAC
;DATA VALUE IN A
SHIFTO:
MOV R0,#8
NXB:
RLC A
MOV DASD,C
SETB DACK
NOP
CLR DACK
DJNZ R0,NXB
RET

JMP LOOP
JMP LOOP

;-----------------------------------------------------------------------------
; ORG 180H
ORG 200H ; 114

PROG0:

PUSH RR0 ;PUSH R0


MOV R0,A ;v
PUSH RR0 ;PUSH A
MOV A,COUNT
MOVX @R0,A ;WRITE low byte of count TO FIFO BIN0 (ADDR NOT USED)
MOV A,COUNTH
MOVX @R0,A ;WRITE high byte of count TO FIFO BIN1 (ADDR NOT USED)

CLR A
MOV TCON,#04H ;1us EDGE TRIG FOR INT1, COUNTER 0 OFF (while we clear it)
MOV COUNT,A ;CLEAR COUNT
MOV COUNTH,A ;CLEAR COUNT
MOV TMOD,#05H
MOV TCON,#14H ;1us EDGE TRIG FOR INT1, COUNTER 0 ON

POP RR0 ;POP A


MOV A,R0 ;^
POP RR0 ;POP R0
MOV IE,#84H ;1us ENABLE EXT INT1
RET

JMP LOOP
JMP LOOP
;-----------------------------------------------------------------------------
;DEFLECTION LOOKUP TABLES - presently these are copies of the Enstrophy tables
;GENERATED FROM CALIBRATION DATA
;;A DEFLECTION OF < 1 DEG IS SET TO 0
;
DS1TBL: ;Cascades HE Deflection table, drives electrode 1B from output 2B
; INDEX Degrees ADC- IN Vout OUT OUT_2
; ;Enstrophy 316.1379939 DeflV 2A 2A 1B
DB 000000 ;000000 000 .0000 .0000 .0000 .0000 000 000
IF (ZEROBOTTOM)
DB 000000 ;000000 001 .3632 2.0040 10.3771 3.3077 003 003
DB 000000 ;000000 002 .7264 4.0082 20.7543 6.6154 007 007
ELSE ;IF (ZEROBOTTOM)
DB 000003 ;000000 001 .3632 2.0040 10.3771 3.3077 003 003
DB 000007 ;000000 002 .7264 4.0082 20.7543 6.6154 007 006
ENDIF ;IF (ZEROBOTTOM)
DB 000010 ;000000 003 1.0896 6.0128 31.1314 9.9231 010 008
DB 000013 ;000009 004 1.4528 8.0178 41.5086 13.2309 013 011
DB 000017 ;000011 005 1.8160 10.0234 51.8857 16.5386 017 014
DB 000020 ;000013 006 2.1792 12.0299 62.2629 19.8463 020 017
DB 000023 ;000016 007 2.5424 14.0373 72.6400 23.1540 023 019
DB 000026 ;000018 008 2.9056 16.0458 83.0171 26.4617 026 022
DB 000030 ;000020 009 3.2688 18.0557 93.3943 29.7694 030 025
DB 000033 ;000022 010 3.6320 20.0670 103.7714 33.0771 033 028
DB 000036 ;000024 011 3.9952 22.0799 114.1486 36.3849 036 030
DB 000040 ;000027 012 4.3584 24.0946 124.5257 39.6926 040 033
DB 000043 ;000029 013 4.7216 26.1113 134.9029 43.0003 043 036
DB 000046 ;000031 014 5.0848 28.1300 145.2800 46.3080 046 039
DB 000050 ;000033 015 5.4474 30.1477 155.6400 49.6102 050 041
DB 000053 ;000035 016 5.8094 32.1645 165.9829 52.9070 053 044
DB 000056 ;000038 017 6.1714 34.1839 176.3257 56.2038 056 047
DB 000060 ;000040 018 6.5334 36.2061 186.6686 59.5006 060 049
DB 000063 ;000042 019 6.8874 38.1864 196.7829 62.7245 063 052
DB 000066 ;000044 020 7.2334 40.1248 206.6686 65.8756 066 055
DB 000069 ;000046 021 7.5794 42.0661 216.5543 69.0267 069 058
DB 000072 ;000049 022 7.9274 44.0219 226.4971 72.1960 072 060
DB 000075 ;000051 023 8.2774 45.9922 236.4971 75.3835 075 063
DB 000079 ;000053 024 8.6264 47.9604 246.4686 78.5619 079 066
DB 000082 ;000055 025 8.9744 49.9266 256.4114 81.7311 082 069
DB 000085 ;000057 026 9.3224 51.8965 266.3543 84.9004 085 072
DB 000088 ;000060 027 9.6704 53.8704 276.2971 88.0697 088 075
DB 000091 ;000062 028 10.0214 55.8654 286.3257 91.2663 091 078
DB 000094 ;000064 029 10.3724 57.8648 296.3543 94.4629 094 081
DB 000098 ;000066 030 10.7204 59.8515 306.2971 97.6322 098 084
DB 000101 ;000068 031 11.0684 61.8428 316.2400 100.8015 101 087
DB 000104 ;000071 032 11.4164 63.8388 326.1829 103.9708 104 090
DB 000107 ;000073 033 11.7644 65.8397 336.1257 107.1401 107 093
DB 000110 ;000075 034 12.1124 67.8457 346.0686 110.3094 110 096
DB 000113 ;000077 035 12.4604 69.8569 356.0114 113.4786 113 099
DB 000117 ;000079 036 12.8084 71.8735 365.9543 116.6479 117 102
DB 000120 ;000081 037 13.1564 73.8957 375.8971 119.8172 120 105
DB 000123 ;000084 038 13.5014 75.9062 385.7543 122.9592 123 108
DB 000126 ;000086 039 13.8474 77.9283 395.6400 126.1103 126 111
DB 000129 ;000088 040 14.1914 79.9447 405.4686 129.2431 129 114
DB 000132 ;000090 041 14.5354 81.9673 415.2971 132.3760 132 117
DB 000136 ;000092 042 14.8794 83.9961 425.1257 135.5088 136 120
DB 000139 ;000094 043 15.2234 86.0314 434.9543 138.6417 139 123
DB 000142 ;000097 044 15.5674 88.0734 444.7829 141.7745 142 126
DB 000145 ;000099 045 15.9104 90.1163 454.5829 144.8983 145 129
DB 000148 ;000101 046 16.2404 92.0884 464.0114 147.9036 148 131
DB 000151 ;000103 047 16.5654 94.0370 473.2971 150.8635 151 133
DB 000154 ;000105 048 16.8954 96.0223 482.7257 153.8688 154 136
DB 000157 ;000107 049 17.2254 98.0147 492.1543 156.8742 157 138
DB 000160 ;000109 050 17.5554 100.0141 501.5829 159.8795 160 140
DB 000163 ;000111 051 17.8854 102.0208 511.0114 162.8849 163 142
DB 000166 ;000114 052 18.2154 104.0350 520.4400 165.8902 166 145
DB 000169 ;000116 053 18.5454 106.0569 529.8686 168.8956 169 147
DB 000172 ;000118 054 18.8704 108.0558 539.1543 171.8554 172 149
DB 000175 ;000120 055 19.1904 110.0315 548.2971 174.7697 175 151
DB 000178 ;000122 056 19.5104 112.0149 557.4400 177.6840 178 153
DB 000181 ;000124 057 19.8304 114.0062 566.5829 180.5983 181 155
DB 000184 ;000126 058 20.1504 116.0055 575.7257 183.5126 184 158
DB 000186 ;000128 059 20.4704 118.0130 584.8686 186.4269 186 160
DB 000189 ;000130 060 20.7904 120.0289 594.0114 189.3411 189 162
DB 000192 ;000132 061 21.1054 122.0217 603.0114 192.2099 192 164
DB 000195 ;000134 062 21.4154 123.9912 611.8686 195.0331 195 166
DB 000198 ;000136 063 21.7254 125.9690 620.7257 197.8563 198 168
DB 000201 ;000139 064 22.0354 127.9553 629.5829 200.6795 201 170
DB 000204 ;000141 065 22.3454 129.9504 638.4400 203.5027 204 172
DB 000206 ;000143 066 22.6554 131.9543 647.2971 206.3260 206 175
DB 000209 ;000145 067 22.9654 133.9674 656.1543 209.1492 209 177
DB 000212 ;000147 068 23.2754 135.9897 665.0114 211.9724 212 179
DB 000215 ;000149 069 23.5854 138.0214 673.8686 214.7956 215 181
DB 000218 ;000151 070 23.8954 140.0627 682.7257 217.6188 218 183
DB 000220 ;000153 071 24.2054 142.1139 691.5829 220.4420 220 185
DB 000223 ;000155 072 24.5054 144.1084 700.1543 223.1742 223 187
DB 000226 ;000157 073 24.8054 146.1124 708.7257 225.9063 226 189
DB 000229 ;000159 074 25.1054 148.1262 717.2971 228.6385 229 192
DB 000231 ;000161 075 25.4054 150.1499 725.8686 231.3706 231 194
DB 000234 ;000163 076 25.6954 152.1157 734.1543 234.0117 234 196
DB 000237 ;000165 077 25.9754 154.0228 742.1543 236.5617 237 198
DB 000239 ;000167 078 26.2554 155.9390 750.1543 239.1117 239 200
DB 000242 ;000169 079 26.5354 157.8645 758.1543 241.6617 242 202
DB 000244 ;000171 080 26.8154 159.7995 766.1543 244.2117 244 204
DB 000247 ;000173 081 27.0954 161.7440 774.1543 246.7617 247 206
DB 000249 ;000175 082 27.3754 163.6982 782.1543 249.3117 249 208
DB 000252 ;000177 083 27.6554 165.6624 790.1543 251.8617 252 210
DB 000254 ;000179 084 27.9354 167.6366 798.1543 254.4117 254 212
DB 000255 ;000180 085 28.2154 169.6211 800.0000 255.0000 255 214
DB 000255 ;000182 086 28.4954 171.6161 800.0000 255.0000 255 216
DB 000255 ;000184 087 28.7754 173.6216 800.0000 255.0000 255 218
DB 000255 ;000186 088 29.0554 175.6380 800.0000 255.0000 255 220
DB 000255 ;000188 089 29.3354 177.6653 800.0000 255.0000 255 222
DB 000255 ;000190 090 29.6154 179.7038 800.0000 255.0000 255 223
DB 000255 ;000192 091 29.8954 181.7536 800.0000 255.0000 255 225
DB 000255 ;000194 092 30.1754 183.8150 800.0000 255.0000 255 227
DB 000255 ;000196 093 30.4554 185.8882 800.0000 255.0000 255 229
DB 000255 ;000198 094 30.7354 187.9733 800.0000 255.0000 255 231
DB 000255 ;000199 095 31.0054 189.9954 800.0000 255.0000 255 233
DB 000255 ;000201 096 31.2654 191.9535 800.0000 255.0000 255 234
DB 000255 ;000203 097 31.5254 193.9224 800.0000 255.0000 255 236
DB 000255 ;000205 098 31.7854 195.9024 800.0000 255.0000 255 238
DB 000255 ;000207 099 32.0454 197.8934 800.0000 255.0000 255 240
DB 000255 ;000209 100 32.3054 199.8958 800.0000 255.0000 255 242
DB 000255 ;000211 101 32.5654 201.9098 800.0000 255.0000 255 244
DB 000255 ;000212 102 32.8254 203.9354 800.0000 255.0000 255 245
DB 000255 ;000214 103 33.0854 205.9730 800.0000 255.0000 255 247
DB 000255 ;000216 104 33.3454 208.0226 800.0000 255.0000 255 249
DB 000255 ;000218 105 33.5854 209.9255 800.0000 255.0000 255 250
DB 000255 ;000220 106 33.8254 211.8390 800.0000 255.0000 255 252
DB 000255 ;000221 107 34.0654 213.7632 800.0000 255.0000 255 254
DB 000255 ;000223 108 34.3054 215.6984 800.0000 255.0000 255 255
DB 000255 ;000225 109 34.5454 217.6447 800.0000 255.0000 255 255
DB 000255 ;000227 110 34.7854 219.6022 800.0000 255.0000 255 255
DB 000255 ;000228 111 35.0254 221.5711 800.0000 255.0000 255 255
DB 000255 ;000230 112 35.2654 223.5517 800.0000 255.0000 255 255
DB 000255 ;000232 113 35.5054 225.5440 800.0000 255.0000 255 255
DB 000255 ;000233 114 35.7454 227.5483 800.0000 255.0000 255 255
DB 000255 ;000235 115 35.9854 229.5646 800.0000 255.0000 255 255
DB 000255 ;000237 116 36.2254 231.5933 800.0000 255.0000 255 255
DB 000255 ;000239 117 36.4654 233.6345 800.0000 255.0000 255 255
DB 000255 ;000240 118 36.7054 235.6884 800.0000 255.0000 255 255
DB 000255 ;000242 119 36.9454 237.7551 800.0000 255.0000 255 255
DB 000255 ;000244 120 37.1854 239.8349 800.0000 255.0000 255 255
DB 000255 ;000245 121 37.4254 241.9279 800.0000 255.0000 255 255
DB 000255 ;000247 122 37.6454 243.8583 800.0000 255.0000 255 255
DB 000255 ;000249 123 37.8654 245.8002 800.0000 255.0000 255 255
DB 000255 ;000250 124 38.0854 247.7538 800.0000 255.0000 255 255
DB 000255 ;000252 125 38.3054 249.7191 800.0000 255.0000 255 255
DB 000255 ;000253 126 38.5254 251.6964 800.0000 255.0000 255 255
DB 000255 ;000255 127 38.7454 253.6858 800.0000 255.0000 255 255

DS2TBL: ;Cascades HE deflection table, drives electrode 2A from output 1A


; INDEX Degrees ADC+ IN Vout OUT_2 OUT
; ;Enstrophy 331.3449848 DeflV 1B 1B 2A
DB 000000 ;000000 000 .0000 .0000 .0000 .0000 000 000
IF (ZEROBOTTOM)
DB 000000 ;000000 001 .3632 2.0040 10.3771 3.3077 003 003
DB 000000 ;000000 002 .7264 4.0082 20.7543 6.6154 007 007
ELSE ;IF (ZEROBOTTOM)
DB 000003 ;000000 001 .3460 2.0010 8.6500 2.7572 003 003
DB 000006 ;000000 002 .6920 4.0021 17.3000 5.5144 006 007
ENDIF ;IF (ZEROBOTTOM)
DB 000008 ;000000 003 1.0380 6.0035 25.9500 8.2716 008 010
DB 000011 ;000010 004 1.3840 8.0053 34.6000 11.0288 011 013
DB 000014 ;000013 005 1.7300 10.0077 43.2500 13.7859 014 017
DB 000017 ;000015 006 2.0760 12.0109 51.9000 16.5431 017 020
DB 000019 ;000018 007 2.4220 14.0149 60.5500 19.3003 019 023
DB 000022 ;000020 008 2.7680 16.0200 69.2000 22.0575 022 026
DB 000025 ;000023 009 3.1140 18.0262 77.8500 24.8147 025 030
DB 000028 ;000025 010 3.4600 20.0337 86.5000 27.5719 028 033
DB 000030 ;000028 011 3.8060 22.0428 95.1500 30.3291 030 036
DB 000033 ;000030 012 4.1520 24.0534 103.8000 33.0863 033 040
DB 000036 ;000033 013 4.4980 26.0658 112.4500 35.8434 036 043
DB 000039 ;000035 014 4.8440 28.0801 121.1000 38.6006 039 046
DB 000041 ;000038 015 5.1870 30.0790 129.6750 41.3339 041 050
DB 000044 ;000040 016 5.5270 32.0625 138.1750 44.0433 044 053
DB 000047 ;000043 017 5.8670 34.0483 146.6750 46.7527 047 056
DB 000049 ;000045 018 6.2070 36.0365 155.1750 49.4620 049 060
DB 000052 ;000048 019 6.5470 38.0274 163.6750 52.1714 052 063
DB 000055 ;000050 020 6.8870 40.0209 172.1750 54.8808 055 066
DB 000058 ;000053 021 7.2270 42.0173 180.6750 57.5902 058 069
DB 000060 ;000055 022 7.5670 44.0166 189.1750 60.2995 060 072
DB 000063 ;000058 023 7.9070 46.0192 197.6750 63.0089 063 075
DB 000066 ;000060 024 8.2470 48.0250 207.0571 65.9995 066 079
DB 000069 ;000063 025 8.5870 50.0343 216.7714 69.0959 069 082
DB 000072 ;000065 026 8.9220 52.0176 226.3429 72.1468 072 085
DB 000075 ;000068 027 9.2520 53.9748 235.7714 75.1521 075 088
DB 000078 ;000070 028 9.5820 55.9357 245.2000 78.1575 078 091
DB 000081 ;000073 029 9.9120 57.9005 254.6286 81.1629 081 094
DB 000084 ;000075 030 10.2420 59.8692 264.0571 84.1682 084 098
DB 000087 ;000077 031 10.5720 61.8419 273.4857 87.1736 087 101
DB 000090 ;000080 032 10.9020 63.8190 282.9143 90.1789 090 104
DB 000093 ;000082 033 11.2320 65.8004 292.3429 93.1843 093 107
DB 000096 ;000085 034 11.5620 67.7864 301.7714 96.1896 096 110
DB 000099 ;000087 035 11.8920 69.7770 311.2000 99.1950 099 113
DB 000102 ;000090 036 12.2220 71.7725 320.6286 102.2004 102 117
DB 000105 ;000092 037 12.5520 73.7730 330.0571 105.2057 105 120
DB 000108 ;000094 038 12.8820 75.7786 339.4857 108.2111 108 123
DB 000111 ;000097 039 13.2120 77.7895 348.9143 111.2164 111 126
DB 000114 ;000099 040 13.5420 79.8058 358.3429 114.2218 114 129
DB 000117 ;000101 041 13.8720 81.8278 367.7714 117.2271 117 132
DB 000120 ;000104 042 14.2020 83.8555 377.2000 120.2325 120 136
DB 000123 ;000106 043 14.5320 85.8891 386.6286 123.2379 123 139
DB 000126 ;000108 044 14.8620 87.9288 396.0571 126.2432 126 142
DB 000129 ;000111 045 15.1920 89.9748 404.2667 128.8600 129 145
DB 000131 ;000113 046 15.5120 91.9648 411.3778 131.1267 131 148
DB 000133 ;000115 047 15.8320 93.9611 418.4889 133.3933 133 151
DB 000136 ;000118 048 16.1520 95.9637 425.6000 135.6600 136 154
DB 000138 ;000120 049 16.4720 97.9727 432.7111 137.9267 138 157
DB 000140 ;000122 050 16.7920 99.9885 439.8222 140.1933 140 160
DB 000142 ;000125 051 17.1120 102.0110 446.9333 142.4600 142 163
DB 000145 ;000127 052 17.4320 104.0405 454.0444 144.7267 145 166
DB 000147 ;000129 053 17.7520 106.0771 461.1556 146.9933 147 169
DB 000149 ;000131 054 18.0520 107.9931 467.8222 149.1183 149 172
DB 000151 ;000134 055 18.3520 109.9156 474.4889 151.2433 151 175
DB 000153 ;000136 056 18.6520 111.8448 481.1556 153.3683 153 178
DB 000155 ;000138 057 18.9520 113.7808 487.8222 155.4933 155 181
DB 000158 ;000140 058 19.2520 115.7238 494.4889 157.6183 158 184
DB 000160 ;000142 059 19.5520 117.6740 501.1556 159.7433 160 186
DB 000162 ;000145 060 19.8520 119.6313 507.8222 161.8683 162 189
DB 000164 ;000147 061 20.1520 121.5962 514.4889 163.9933 164 192
DB 000166 ;000149 062 20.4520 123.5685 521.1556 166.1183 166 195
DB 000168 ;000151 063 20.7520 125.5486 527.8222 168.2433 168 198
DB 000170 ;000153 064 21.0520 127.5366 534.4889 170.3683 170 201
DB 000172 ;000155 065 21.3520 129.5326 541.1556 172.4933 172 204
DB 000175 ;000157 066 21.6520 131.5367 547.8222 174.6183 175 206
DB 000177 ;000159 067 21.9520 133.5493 554.4889 176.7433 177 209
DB 000179 ;000161 068 22.2520 135.5703 561.1556 178.8683 179 212
DB 000181 ;000164 069 22.5520 137.6000 567.8222 180.9933 181 215
DB 000183 ;000166 070 22.8520 139.6386 574.4889 183.1183 183 218
DB 000185 ;000168 071 23.1520 141.6862 581.1556 185.2433 185 220
DB 000187 ;000170 072 23.4520 143.7430 587.8222 187.3683 187 223
DB 000189 ;000172 073 23.7520 145.8091 594.4889 189.4933 189 226
DB 000192 ;000174 074 24.0520 147.8848 601.1556 191.6183 192 229
DB 000194 ;000176 075 24.3520 149.9702 607.8222 193.7433 194 231
DB 000196 ;000178 076 24.6520 152.0655 614.4889 195.8683 196 234
DB 000198 ;000179 077 24.9320 154.0302 620.7111 197.8517 198 237
DB 000200 ;000181 078 25.2120 156.0039 626.9333 199.8350 200 239
DB 000202 ;000183 079 25.4920 157.9867 633.1556 201.8183 202 242
DB 000204 ;000185 080 25.7720 159.9787 639.3778 203.8017 204 244
DB 000206 ;000187 081 26.0520 161.9802 645.6000 205.7850 206 247
DB 000208 ;000189 082 26.3320 163.9912 651.8222 207.7683 208 249
DB 000210 ;000191 083 26.6120 166.0120 658.0444 209.7517 210 252
DB 000212 ;000193 084 26.8920 168.0427 664.2667 211.7350 212 254
DB 000214 ;000195 085 27.1720 170.0835 670.4889 213.7183 214 255
DB 000216 ;000196 086 27.4520 172.1346 676.7111 215.7017 216 255
DB 000218 ;000198 087 27.7320 174.1961 682.9333 217.6850 218 255
DB 000220 ;000200 088 28.0120 176.2683 689.1556 219.6683 220 255
DB 000222 ;000202 089 28.2720 178.2021 694.9333 221.5100 222 255
DB 000223 ;000203 090 28.5320 180.1453 700.7111 223.3517 223 255
DB 000225 ;000205 091 28.7920 182.0982 706.4889 225.1933 225 255
DB 000227 ;000207 092 29.0520 184.0608 712.2667 227.0350 227 255
DB 000229 ;000209 093 29.3120 186.0334 718.0444 228.8767 229 255
DB 000231 ;000210 094 29.5720 188.0160 723.8222 230.7183 231 255
DB 000233 ;000212 095 29.8320 190.0089 729.6000 232.5600 233 255
DB 000234 ;000213 096 30.0920 192.0122 735.3778 234.4017 234 255
DB 000236 ;000215 097 30.3520 194.0260 741.1556 236.2433 236 255
DB 000238 ;000217 098 30.6120 196.0506 746.9333 238.0850 238 255
DB 000240 ;000218 099 30.8720 198.0860 752.7111 239.9267 240 255
DB 000242 ;000220 100 31.1320 200.1326 758.4889 241.7683 242 255
DB 000244 ;000221 101 31.3920 202.1903 764.2667 243.6100 244 255
DB 000245 ;000223 102 31.6320 204.1000 769.6000 245.3100 245 255
DB 000247 ;000224 103 31.8720 206.0195 774.9333 247.0100 247 255
DB 000249 ;000226 104 32.1120 207.9490 780.2667 248.7100 249 255
DB 000250 ;000227 105 32.3520 209.8887 785.6000 250.4100 250 255
DB 000252 ;000229 106 32.5920 211.8388 790.9333 252.1100 252 255
DB 000254 ;000230 107 32.8320 213.7993 796.2667 253.8100 254 255
DB 000255 ;000232 108 33.0720 215.7704 800.0000 255.0000 255 255
DB 000255 ;000233 109 33.3120 217.7523 800.0000 255.0000 255 255
DB 000255 ;000235 110 33.5520 219.7452 800.0000 255.0000 255 255
DB 000255 ;000236 111 33.7920 221.7491 800.0000 255.0000 255 255
DB 000255 ;000237 112 34.0320 223.7644 800.0000 255.0000 255 255
DB 000255 ;000239 113 34.2720 225.7910 800.0000 255.0000 255 255
DB 000255 ;000240 114 34.5120 227.8293 800.0000 255.0000 255 255
DB 000255 ;000241 115 34.7520 229.8793 800.0000 255.0000 255 255
DB 000255 ;000242 116 34.9920 231.9413 800.0000 255.0000 255 255
DB 000255 ;000244 117 35.2320 234.0154 800.0000 255.0000 255 255
DB 000255 ;000245 118 35.4620 236.0147 800.0000 255.0000 255 255
DB 000255 ;000246 119 35.6820 237.9377 800.0000 255.0000 255 255
DB 000255 ;000247 120 35.9020 239.8714 800.0000 255.0000 255 255
DB 000255 ;000248 121 36.1220 241.8159 800.0000 255.0000 255 255
DB 000255 ;000250 122 36.3420 243.7712 800.0000 255.0000 255 255
DB 000255 ;000251 123 36.5620 245.7377 800.0000 255.0000 255 255
DB 000255 ;000252 124 36.7820 247.7154 800.0000 255.0000 255 255
DB 000255 ;000253 125 37.0020 249.7045 800.0000 255.0000 255 255
DB 000255 ;000254 126 37.2220 251.7051 800.0000 255.0000 255 255
DB 000255 ;000255 127 37.4420 253.7175 800.0000 255.0000 255 255

END