CONTROLS
CAMAC 334
SCALER
ED-218637
CONTROLS HARDWARE RELEASE NO. 78.0
CAMAC 334 Module
SVX Radiation Scaler
Dan E. Amidei / Robert J. Ducar
March 30, 1992
1 DESCRIPTION
2 CAMAC 334 OP CODES
5 SPARES
7 DOCUMENTATION
8 PALS DOCUMENTATION
PALS DIRECTORY
Note: Please see Ann Mason or Bob Ducar for more information.
1 DESCRIPTION
The one-wide CAMAC 334 module is uniquely associated with protection of the CDF SVX detector from damaging radiation by facilitating the generation of an abort request to the Tevatron Abort System. A pulsed signal, representative of radiation dose to the detector, is integrated over short, medium, and long intervals (SI, MI, & LI). Each interval has programmable alarm and trip levels. Pulse accumulation to the alarm or trip level for any of the intervals results in module LAM assertion. Pulse accumulation to the trip level for any of the intervals may result in the fall of a permit to the Tevatron Abort System. The intervals are defined by beam revolutions in the Tevatron as indicated by TVBS revolution event $AA. The short interval is set at 10 turns, the long interval at 10,000 turns, and the medium interval at 50, 100, or 200 turns. The medium interval is set by monitorable jumpers. The pulse count input is direct to the short integrator, and has prescale capability for the medium and long integrators. A prescale of 1 or 2, selectable by a monitored jumper, is available for the medium integrator. The pulse prescale for the long integrator is programmable from 10 to 150 in decade steps. The front panel pulse count input is NIM convention. An alternative TTL compatible pulse count input is available at the rear of the module. Integrated values are latched before each of the three integrators are reset. These latched values are directly readable and are also loaded into 2K to 16K deep FIFOs. TCLK events, as well as CAMAC codes, control the stop and start of the FIFO recording process. FIFOs will stop loading approximately 10 msec after receipt of TCLK Event $47, which signifies the fall of the Tevatron Permit Loop. TCLK $48, which resets the Tevatron Abort Loop, will clear latched trips. The FIFOs will start recording after TCLK Events $58, $5B, or $5C which usually signify injection of beam into the Tevatron. These events also reset and hold off alarms and trips for approximately 5 milliseconds.
2 CAMAC 334 OP CODES
All codes return Q and X immediately with the exception of the F(2) operations. This module may assert LAM.
F(0) A(n) Read Integrated Count for Last Interval --------- n = 0 for SI, n = 1 for MI, n = 2 for LI
R24 (MSB) - R9 | R8 - (LSB) R1 -------------------------------------- 0 | Last Integrated Count
F(1) A(0) Read Module Status --------- R24 (MSB) - R10 | R9 - (LSB) R1 --------------------------------- 0 | SB9 - SB1
SB9 = 1 for Trip Output Enabled SB8 = 1 for Beam Permitting Output Active SB7 = 1 for FIFOs in Recording Mode SB6 = 1 for TCLK Present ($07 Event Stretched) SB5 = 1 for TVBS Present ($AA Event Stretched) SB4 = 1 for Medium Interval at 200 Turns SB3 = 1 for Medium Interval at 100 Turns SB2 = 1 for Medium Interval at 50 Turns SB1 = 1 for MI Count Prescaler at 2, = 0 at 1
F(1) A(1) Read LAM Status (Any Bit High Yields LAM) --------- R24 (MSB) - R10 | R9 - (LSB) R1 --------------------------------- 0 | LS9 - LS1
LS9 = 1 for Trip Output Disabled LS8 = 1 for TVBS $AA Absent LS7 = 1 for TCLK $07 Absent LS6 = 1 for LI Trip Level Reached LS5 = 1 for MI Trip Level Reached LS4 = 1 for SI Trip Level Reached LS3 = 1 for LI Alarm Level Reached LS2 = 1 for MI Alarm Level Reached LS1 = 1 for SI Alarm Level Reached
F(1) A(2) Read and Clear LAM Status --------- Read Data are as above. LS6 through LS1 are cleared at S2 time or upon module receipt of TCLK $48.
F(2) A(n) Read 2K to 16K FIFO Count Record. No Q if Empty. --------- n = 0 for SI, n = 1 for MI, n = 2 for LI
R24 (MSB) - R9 | R8 - (LSB) R1 ---------------------------------------- 0 | Integrated Count Record
F(3) A(n) Read Count Alarm Level --------- n = 0 for SI, n = 1 for MI, n = 2 for LI
R24 (MSB) - R9 | R8 - (LSB) R1 ---------------------------------- 0 | Count Alarm Level
F(4) A(n) Read Count Trip Level --------- n = 0 for SI, n = 1 for MI, n = 2 for LI
R24 (MSB) - R9 | R8 - (LSB) R1 --------------------------------- 0 | Count Trip Level
F(5) A(2) Read Long Integrator Prescaler Value ---------
R24 (MSB) - R5 | R4 - (LSB) R1 ----------------------------------- 0 | LI Prescaler Value
LI Prescaler Value Units are Divide by 10. Prescaler Range is 10 to 150.
F(6) A(0) Read Module Number --------- R16 (MSB) - (LSB) R1 -------------------------------- | $014E Hex, 334 Dec |
F(7) A(0) Dummy Read - No Data are Returned ---------
F(9) A(0) Reset Module --------- Wire-OR with Z*S2 and Power Up Clear.
Trip Output Disabled, Count Integrators cleared, FIFOs Cleared and Set to Record, Alarm and Trip Flags Reset
F(19) A(n) Write Count Alarm Level ---------- n = 0 for SI, n = 1 for MI, n = 2 for LI
W24 (MSB) - W9 | W8 - (LSB) W1 ---------------------------------- x | Count Alarm Level
F(20) A(n) Write Count Trip Level ---------- n = 0 for SI, n = 1 for MI, n = 2 for LI
W24 (MSB) - W9 | W8 - (LSB) W1 --------------------------------- x | Count Trip Level
F(21) A(2) Write Long Integrator Count Prescaler Value ----------
W24 (MSB) - W5 | W4 - (LSB) W1 ----------------------------------- x | LI Prescaler Value
LI Prescaler Value Units are Divide by 10. Prescaler Range is 10 to 150. Program of 0 results in prescale of 10.
F(24) A(0) Stop FIFO Recording (Immediate) ----------
F(26) A(0) Start FIFO Recording ----------
F(28) A(0) Disable Trip Request Output (Forced Permit State) ----------
F(30) A(0) Enable Trip Request Output ----------
3 CAMAC 334 MODULE - I/O ASSIGNMENTS
Rather than a standard 36 position edge connector in the I/O space, the CAMAC 334 has five directly mounted Lemo connectors that are accessible from the rear. Their assignment from top to bottom is as follows:
TCLK Input TCLK Output TVBS Input Pulse Input (TTL) Permit Output
4 CAMAC 334 MODULE - FRONT PANEL
The CAMAC 334 module has the following front panel features:
N led: Red (stretched)
LAM led: Red
Enabled led: Yellow (Module may effect Trip when on.)
Permit Out Lemo: With Green & Red leds (Permit/Trip)
LI leds: Red (Trip), Yellow (Alarm), & Green (OK)
MI leds: Red (Trip), Yellow (Alarm), & Green (OK)
SI leds: Red (Trip), Yellow (Alarm), & Green (OK)
Count Input Lemo (NIM): With Red led (stretched)
TCLK In & Out Lemos: With Green led ($07 stretched)
TVBS $AA In & Out Lemos: With Yellow led ($AA stretched)
5 SPARES
A supply of CAMAC 334 operational spares is maintained on the second floor of the Linac Annex and possibly at the Colliding Detector Facility (CDF).
6 ON-BOARD MODULE OPTIONS
There are on-board options for the Medium Integrator interval for 50, 100, or 200 turns, and for the Medium Integrator count prescale of 1 or 2. These options are determined by the installation of small shorting jumpers. Reference to the schematic is suggested to determine proper installation. There is an option for a rear I/O entry of Count Input. This input, which is terminated in 51 ohms and TTL compatible, is or'd with the front panel NIM input. In that these inputs are always or'd, there is no additional requirement to make use of this option. The input pulse width may also be configured to synchronously gate a ring oscillator, thereby providing multiple counts for wider than nominal count input signals. This option is made available by the installation of a shorting jumper on the module. The frequency of the ring oscillator is determined by RC components. Reference to the schematic is again suggested if this option is desired. The 2K deep FIFOs at locations #23, #40, and #61 may be substituted with 4K, 8K, or 16K deep devices as applications may warrant. The checking of all options and PAL designators before replacement of the module is advised.
7 DOCUMENTATION
0812-ED-218637 Schematic 0812-BD-218638 Artwork (RF-138A) 0812-BD-218639 Master Drawing 0812-MD-34863 Outline Drawing 0812-MC-218640 Solder Mask 0812-MC-218641 Silkscreen 0812-MC-218642 Front Panel Mechanical 0812-MD-218643 Front Panel Silkscreen
8 PALS DOCUMENTATION
Directory: DEVL::USR$DISK3:[DUCAR.PALS]
Filenames: 33409A.DAT NAF Decoder #1 PLS173 33410B.DAT NAF Decoder #2 PLS173 33418B.DAT TCLK Event Decoder PLS173 33427A.DAT Short Integrator Logic PLS153 33434A.DAT TVBS Event Decoder PLS153 33439A.DAT Medium Integrator Logic PLS173 33446B.DAT Long Integrator Logic PLS173 33466A.DAT Long Count Scaler Logic PLS153
rjd: DEVL::USR$DISK3:[DUCAR.DOC]CMC334.RNO
PALS DOCUMENTATION
module 33409a title ' CAMAC 334 R. DUCAR 12-30-91 ' 33409a device 'f173';
PUC, F16, F8, F4, F2, F1 pin 1,2,3,4,5,6; A2, A1, S1, A8, A4 pin 7,8,9,10,11; S2, N, TRE, X, W, Z pin 13,14,15,16,17,18; TRER, CLR, F122, F24, F26 pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/CLR = /N*/F16*F8*/F4*/F2*F1*A8*A4*/A2*/A1*S1*PUC + " F(9)A(0)S1 /Z*/S2*PUC + /PUC
/F26 = /N*F16*F8*/F4*F2*/F1*A8*A4*/A2*/A1*S1*CLR ;" F(26)A(0)S1
/F24 = /N*F16*F8*/F4*/F2*/F1*A8*A4*/A2*/A1*S1*CLR ;" F(24)A(0)S1
/F122 = /N*/F16*/F8*/F4*/F2*F1*A8*A4*A2*/A1*/S2*CLR ;" F(1)A(2)S2
TRE = /N*F16*F8*F4*F2*/F1*A8*A4*/A2*/A1*S1*CLR + " F(30)A(0)S1 TRE*CLR*/TRER;
TRER = /N*F16*F8*F4*/F2*/F1*A8*A4*/A2*/A1*S1*CLR + " F(28)A(0)S1 /CLR;
/W = /N*F16*/F8*/F4*F2*F1*A8*A4*/A2*CLR + " F(19)A(0-1) /N*F16*/F8*/F4*F2*F1*A8*A4*A2*/A1*CLR + " F(19)A(2) /N*F16*/F8*F4*/F2*/F1*A8*A4*/A2*CLR + " F(20)A(0-1) /N*F16*/F8*F4*/F2*A8*A4*A2*/A1*CLR ;" F(20-21)A(2)
/X = /N*/F16*/F8*/F4*A8*A4*/A2*CLR + " F(0-3)A(0-1) /N*/F16*/F8*/F4*A8*A4*A2*/A1*CLR + " F(0-3)A(2) /N*/F16*/F8*F4*/F2*/F1*A8*A4*/A2*CLR + " F(4)A(0-1) /N*/F16*/F8*F4*/F2*A8*A4*A2*/A1*CLR + " F(4-5)A(2) /N*/F16*/F8*F4*F2*A8*A4*/A2*/A1*CLR + " F(6-7)A(0) /N*/F16*F8*/F4*/F2*F1*A8*A4*/A2*/A1*PUC*Z + " F(9)A(0) /N*F16*F8*/F1*A8*A4*/A2*/A1*CLR + " F(24-30)A(0) /N*/W;
"DESCRIPTION: This PAL provides the first level of NAF decoding for the CAMAC 334 module. end 33409a
module 33410a title ' CAMAC 334 R. DUCAR 12-30-91 ' 33410a device 'f173';
F16, F8, F4, F2, F1, A2 pin 1,2,3,4,5,6; A1, S1, LEF, MEF, SEF pin 7,8,9,10,11; NC13, X, DF6, R, DF521, Q pin 13,14,15,16,17,18; DF0, DF2, DF1, DF319, DF420 pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/DF420 = /X*/F16*/F8*F4*/F2*/F1*/A2 + " F(4)A(0-1) /X*/F16*/F8*F4*/F2*/F1*A2*/A1 + " F(4)A(2) /X*F16*/F8*F4*/F2*/F1*/A2*S1 + " F(20)A(0-1)S1 /X*F16*/F8*F4*/F2*/F1*A2*/A1*S1 ;" F(20)A(2)S1
/DF319 = /X*/F16*/F8*/F4*F2*F1*/A2 + " F(3)A(0-1) /X*/F16*/F8*/F4*F2*F1*A2*/A1 + " F(3)A(2) /X*F16*/F8*/F4*F2*F1*/A2*S1 + " F(19)A(0-1)S1 /X*F16*/F8*/F4*F2*F1*A2*/A1*S1 ;" F(19)A(2)S1
/DF2 = /X*/F16*/F8*/F4*F2*/F1*/A2*/A1*SEF + " F(2)A(0) /X*/F16*/F8*/F4*F2*/F1*/A2*A1*MEF + " F(2)A(1) /X*/F16*/F8*/F4*F2*/F1*A2*/A1*LEF + " F(2)A(2) /DF2*/X;
/DF1 = /X*/F16*/F8*/F4*/F2*F1*/A2 + " F(1)A(0-1) /X*/F16*/F8*/F4*/F2*F1*A2*/A1 ;" F(1)A(2)
/DF521 = /X*/F16*/F8*F4*/F2*F1*A2*/A1 + " F(5)A(2) /X*F16*/F8*F4*/F2*F1*A2*/A1*S1 ;" F(21)A(2)S1
/DF6 = /X*/F16*/F8*F4*F2*/F1*/A2*/A1 ;" F(6)A(0)
/DF0 = /X*/F16*/F8*/F4*/F2*/F1*/A2 + " F(0)A(0-1) /X*/F16*/F8*/F4*/F2*/F1*A2*/A1 ;" F(0)A(2)
/R = /X*/DF0 + /X*/DF1 + /X*/DF2 +/X*/DF6 + /X*/F16*/F8*/F4*F2*F1*/A2 + " F(3)A(0-1) /X*/F16*/F8*/F4*F2*F1*A2*/A1 + " F(3)A(2) /X*/F16*/F8*F4*/F2*/F1*/A2 + " F(4)A(0-1) /X*/F16*/F8*F4*/F2*A2*/A1 ;" F(4-5)A(2)
/Q = /X*/R + /X*/F16*/F8*F4*F2*F1*/A2*/A1 + " F(7)A(0) /X*/F16*F8*/F4*/F2*F1*/A2*/A1 + " F(9)A(0) /X*F16*/F8*/F4*F2*F1*/A2 + " F(19)A(0-1) /X*F16*/F8*/F4*F2*F1*A2*/A1 + " F(19)A(2) /X*F16*/F8*F4*/F2*/F1*/A2 + " F(20)A(0-1) /X*F16*/F8*F4*/F2*A2*/A1 + " F(20-21)A(2) /X*F16*F8*/F1*/A2*/A1 ;" F(24-30)A(0)
"DESCRIPTION: This PAL provides the second level of NAF decoding for the CAMAC 334 module. end 33410a
module 33410b title ' CAMAC 334 R. DUCAR 3-30-92 ' 33410b device 'f173';
F16, F8, F4, F2, F1, A2 pin 1,2,3,4,5,6; A1, S1, LEF, MEF, SEF pin 7,8,9,10,11; X, DF6, R, NC16, DF521, Q pin 13,14,15,16,17,18; DF0, DF2, DF1, DF319, DF420 pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/DF420 = /X*/F16*/F8*F4*/F2*/F1*/A2 + " F(4)A(0-1) /X*/F16*/F8*F4*/F2*/F1*A2*/A1 + " F(4)A(2) /X*F16*/F8*F4*/F2*/F1*/A2*S1 + " F(20)A(0-1)S1 /X*F16*/F8*F4*/F2*/F1*A2*/A1*S1 ;" F(20)A(2)S1
/DF319 = /X*/F16*/F8*/F4*F2*F1*/A2 + " F(3)A(0-1) /X*/F16*/F8*/F4*F2*F1*A2*/A1 + " F(3)A(2) /X*F16*/F8*/F4*F2*F1*/A2*S1 + " F(19)A(0-1)S1 /X*F16*/F8*/F4*F2*F1*A2*/A1*S1 ;" F(19)A(2)S1
/DF2 = /X*/F16*/F8*/F4*F2*/F1*/A2*/A1*SEF + " F(2)A(0) /X*/F16*/F8*/F4*F2*/F1*/A2*A1*MEF + " F(2)A(1) /X*/F16*/F8*/F4*F2*/F1*A2*/A1*LEF + " F(2)A(2) /DF2*/X;
/DF1 = /X*/F16*/F8*/F4*/F2*F1*/A2 + " F(1)A(0-1) /X*/F16*/F8*/F4*/F2*F1*A2*/A1 ;" F(1)A(2)
/DF521 = /X*/F16*/F8*F4*/F2*F1*A2*/A1 + " F(5)A(2) /X*F16*/F8*F4*/F2*F1*A2*/A1*S1 ;" F(21)A(2)S1
/DF6 = /X*/F16*/F8*F4*F2*/F1*/A2*/A1 ;" F(6)A(0)
/DF0 = /X*/F16*/F8*/F4*/F2*/F1*/A2 + " F(0)A(0-1) /X*/F16*/F8*/F4*/F2*/F1*A2*/A1 ;" F(0)A(2)
/R = /X*/DF0 + /X*/DF1 + /X*/DF2 +/X*/DF6 + /X*/F16*/F8*/F4*F2*F1*/A2 + " F(3)A(0-1) /X*/F16*/F8*/F4*F2*F1*A2*/A1 + " F(3)A(2) /X*/F16*/F8*F4*/F2*/F1*/A2 + " F(4)A(0-1) /X*/F16*/F8*F4*/F2*A2*/A1 ;" F(4-5)A(2)
/Q = /X*/R + /X*/F16*/F8*F4*F2*F1*/A2*/A1 + " F(7)A(0) /X*/F16*F8*/F4*/F2*F1*/A2*/A1 + " F(9)A(0) /X*F16*/F8*/F4*F2*F1*/A2 + " F(19)A(0-1) /X*F16*/F8*/F4*F2*F1*A2*/A1 + " F(19)A(2) /X*F16*/F8*F4*/F2*/F1*/A2 + " F(20)A(0-1) /X*F16*/F8*F4*/F2*A2*/A1 + " F(20-21)A(2) /X*F16*F8*/F1*/A2*/A1 ;" F(24-30)A(0)
"DESCRIPTION: This PAL provides the second level of NAF decoding for the CAMAC 334 module.
B Version of this PAL has new pinout. Otherwise it is the same as A Version. end 33410b
module 33418c title ' CAMAC 334 R. DUCAR 4-20-92 ' 33418c device 'f173';
B0, B1, B2, B3, B4, DE pin 1,2,3,4,5,6; B5, B6, F122, B7, CLR pin 7,8,9,10,11; T1, _47D, TT1, _47, T2, TT2 pin 13,14,15,16,17,18; F24, RLAM, F26, RCRD, _07 pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations
/_07 = /DE*/B7*/B6*/B5*/B4*/B3*B2*B1*B0 ;" $07
/_47 = /DE*/B7*B6*/B5*/B4*/B3*B2*B1*B0 ;" $47
RCRD = /DE*/B7*B6*/B5*/B4*B3*/B2*/B1*/B0 + " $48 /F26 + /CLR + RCRD*F24*__47D*T2;
/TT1 = /DE*/B7*B6*/B5*B4*B3*/B2*/B1*/B0 + " $58 /DE*/B7*B6*/B5*B4*B3*/B2*B1*B0 + " $5B /DE*/B7*B6*/B5*B4*B3*B2*/B1*/B0 ;" $5C
/RLAM = /DE*/B7*B6*/B5*/B4*B3*/B2*/B1*/B0 + " $48 /F122*RCRD + /T1*RCRD + /CLR
"DESCRIPTION: This PAL decodes TCLK events for the CAMAC 334 module. "RCRD" being set allows the on-board FIFOs to record integrated counts.
Modified from A version to a PLS173 from a PLS153. T1 added to RLAM term.
4-16-92 Revision: RCRD set is now $48 and RCRD term added to RLAM equation.
C Version includes T2 in the reset part of the RCRD term to stop recording upon external pulse input from a 177 timer. end 33418c
module 33427a title ' CAMAC 334 R. DUCAR 12-30-91 ' 33427a device 'f153';
AI1, TI1, AI2, TI2, CK pin 1,2,3,4,5; FF, RCRD, RLAM, AA pin 6,7,8,9; DF2, R, SB5, SB6, W pin 11,12,13,14,15; LAMO, OK, ALRM, TRIP pin 16,17,18,19;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/LAMO = /SB6 + /SB5 + /TRIP + /ALRM " LAM Out
/W = CK*RCRD ;" Write FIFO
/R = /W*/FF + /DF2 " Read FIFO
/TRIP = /ALRM*/TI1*/AA + /ALRM*/TI2*/AA + " Trip Flag /TRIP*RLAM;
/ALRM = /AI1*/AA + /AI2*/AA + /ALRM*RLAM " Alarm Flag
/OK = ALRM*TRIP ;" OK
"DESCRIPTION: This PAL provides logic for the Slow Integrator channel of the CAMAC 334 module. end 33427a
module 33434a title ' CAMAC 334 R. DUCAR 12-30-91 ' 33434a device 'f153';
B0, B1, B2, B3, B4 pin 1,2,3,4,5; DE, B5, B6, B7 pin 6,7,8,9; AAI, AAO, AA, NC14, NC15 pin 11,12,13,14,15; NC16, NC17, NC18, NC19 pin 16,17,18,19;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/AA = /DE*B7*/B6*B5*/B4*B3*/B2*B1*/B0 + " $AA /AAI;
/AAO = /DE*B7*/B6*B5*/B4*B3*/B2*B1*/B0 ;" $AA
"DESCRIPTION: This PAL decodes TVBS events for the CAMAC 334 module. end 33434a
module 33439a title ' CAMAC 334 R. DUCAR 12-30-91 ' 33439a device 'f173';
AI1, AI2, LS4, CK, TI1, LAMI pin 1,2,3,4,5,6; FF, RCRD, TI2, RLAM, AA pin 7,8,9,10,11; DF2, R, W, NC16, NC17, OK pin 13,14,15,16,17,18; ALRM, TRIP, STMT, LAMO, NC23 pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/LAMO = /LAMI + /TRIP + /ALRM " LAM Out
/STMT = /LS4 + /TRIP " Sht or Med Trip
/W = CK*RCRD ;" Write FIFO
/R = /W*/FF + /DF2 " Read FIFO
/TRIP = /ALRM*/TI1*/AA + /ALRM*/TI2*/AA + " Trip Flag /TRIP*RLAM;
/ALRM = /AI1*/AA + /AI2*/AA + /ALRM*RLAM " Alarm Flag
/OK = ALRM*TRIP ;" OK
"DESCRIPTION: This PAL provides logic for the Medium Integrator channel of the CAMAC 334 module. end 33439a
module 33446a title ' CAMAC 334 R. DUCAR 1-9-92 ' 33446a device 'f173';
TRE, AI1, LAMI, STMT, CK, TI2 pin 1,2,3,4,5,6; TI1, RCRD, AI2, RLAM, AA pin 7,8,9,10,11; FF, R, PERMIT, ABRT, TREB, DF2 pin 13,14,15,16,17,18; W, OK, ALRM, TRIP, LAMO pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/LAMO = /TRE + /LAMI + /TRIP + /ALRM " LAM Out
/TREB = TRE ;" Trip Enable
/PERMIT = /TRE + TRE*TRIP*STMT " Permit Out
/ABRT = TRE*/TRIP + TRE*/STMT " Abort Out
/W = CK*RCRD ;" Write FIFO
/R = /W*/FF + /DF2 " Read FIFO
/TRIP = /ALRM*/TI1*/AA + /ALRM*/TI2*/AA + " Trip Flag /TRIP*RLAM;
/ALRM = /AI1*/AA + /AI2*/AA + /ALRM*RLAM " Alarm Flag
/OK = ALRM*TRIP ;" OK
"DESCRIPTION: This PAL provides logic for the Long Integrator channel of the CAMAC 334 module. It is also the final logic generator for LAM and TRIP outputs. end 33446a
module 33446b title ' CAMAC 334 R. DUCAR 2-17-92 ' 33446b device 'f173';
TRE, AI1, LAMI, STMT, CK, TI2 pin 1,2,3,4,5,6; TI1, RCRD, AI2, RLAM, AA pin 7,8,9,10,11; FF, R, PERMIT, ABRT, TREB, DF2 pin 13,14,15,16,17,18; W, OK, ALRM, TRIP, LAMO pin 19,20,21,22,23;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
/LAMO = /TRE + /LAMI*RLAM + /TRIP*RLAM + /ALRM*RLAM " LAM Out
/TREB = TRE ;" Trip Enable
/PERMIT = /TRE + /RLAM + TRE*TRIP*STMT " Permit Out
/ABRT = TRE*/TRIP*RLAM + TRE*/STMT*RLAM " Abort Out
/W = CK*RCRD ;" Write FIFO
/R = /W*/FF + /DF2 " Read FIFO
/TRIP = /ALRM*/TI1*/AA*RLAM + " Trip Flag /ALRM*/TI2*/AA*RLAM + /TRIP*RLAM
/ALRM = /AI1*/AA*RLAM + /AI2*/AA*RLAM + " Alarm Flag /ALRM*RLAM ;
/OK = ALRM*TRIP ;" OK
"DESCRIPTION: This PAL provides logic for the Long Integrator channel of the CAMAC 334 module. It is also the final logic generator for LAM and TRIP outputs.
Modified for RF-138A pc board version by including RLAM term in most of equations. This PAL is probably acceptable for RF-138 pc version. end 33446b
module 33466a title ' CAMAC 334 R. DUCAR 12-30-91 ' 33466a device 'f153';
QD, QC, CP, QA, QB pin 1,2,3,4,5; D4, D3, D2, D1 pin 6,7,8,9; PO, C4, C3, C2, C1 pin 11,12,13,14,15; D1P, EQ, EQF, LD pin 16,17,18,19;
H,L,X,Z = 1,0,.X.,.Z.; "Use standard PALASM operators @ALTERNATE equations ;
D1P = /D4*/D3*/D2 + D1 " D1 Prime
C4 = D4*QD + /D4*/QD " Bit 4 Compare
C3 = D3*QC + /D3*/QC " Bit 3 Compare
C2 = D2*QB + /D2*/QB " Bit 2 Compare
C1 = D1P*QA + /D1P*/QA " Bit 1 Compare
EQ = C4*C3*C2*C1 ;" Equality
EQF = /CP*EQ + EQF*PO " Equality Flag
PO = /CP*EQ + /CP*EQF " Pulse Out
/LD = /CP*EQF + /LD*EQF " Load Flag
"DESCRIPTION: This PAL provides logic for the programmable count scaler on the CAMAC 334 module. end 33466a