W. Knopf, Feb. 4, 1986
						         Revised:
		     CAMAC Ramp Controller		 M.J.Petter Oct 7, 1986  
		      (CAMAC Module C164)		 M.J.Petter Feb 16, 1987



	I.	GENERAL DESCRIPTION:
		--------------------
		Two slot wide CAMAC module of the C165/265 variety.

	II.	RAMP CONTROL:
		-------------
	    1.	On board decoding of Accelerator Clock for time
		reference.

	    2.  On board decoding of MDAT signal for use in generating
		ramp, may be enabled or disabled.

	    3.	10 KHz update of D/A.
		
	    4.	Multiple ramp waveforms (8) to be downloaded by host consisting
		of amplitude and time (64 values of 16 bits each).

	    5.  Software clock event selection (8) for ramp activation.

	    6.  Any one of eight ramps can be associated with any clock event.

	    7.  Individual scale factors for each ramp.


		CAMAC CONTROLLER FUNCTIONS.
		===========================


A)	POWER SUPPLY CONTROL FUNCTIONS:
	-------------------------------
	These CAMAC functions will cause the appropriate relay to be
	activated for approx. 1 sec.

	RESET			-	F(26) * A(7)

	ON			-	F(26) * A(1)

	OFF			-	F(24) * A(1)

	POSITIVE POLARITY	-	F(26) * A(3)

	NEGATIVE POLARITY	-	F(24) * A(3)

	Default values after module reset: OFF, POS. POLARITY,
	LAM disabled, ramp disabled/set to zero.

	This reset applies to power-up, CAMAC F(9)*A(0)
	and to front panel push-button reset.


B)	RAMP AND POWER SUPPLY REFERENCE VOLTAGE FUNCTIONS:
	--------------------------------------------------

	SET RAMP DATA POINTER	-	F(16) * A(7) * N

	 High byte = ramp number, low byte = data offset in bytes.
	 This function sets the pointer for subsequent data trans-
	 fer (read/write) of ramp data. Tables are arranged as
	 alternate 16-bit values of f(t) and delta(t), so offset
	 should always be an even number.
	 Upon reaching the last entry for the selected ramp the
	 pointer will wrap around to the first entry of the table.

	WRITE RAMP DATA		-	F(16) * A(0)

	 This function will load pre-selected ramp tables and
	 post-increment the pointer. The value of delta(t) is a
	 16-bit 2's complement number with a value of 100 usec/bit.
	 Only positive values should be selected.
         The value of f(t) is a 16-bit 2's complement number with
	 a full scale value of +/- 10.000 VDC applied to a 16-bit
	 D/A converter.

	READ RAMP DATA		-	F(1)  * A(0)

	 Read data from pre-selected ramp and post-increment pointer.

	SET D/A VOLTAGE		-	F(16) * A(1)

	 Forces D/A output to selected value; this function is not
	 dependent on RAMP ENABLED/DISABLED status.

	READ D/A VOLTAGE	-	F(0)  * A(1)

	 This read function will return the actual input value
	 present at the D/A.

	READ CALCULATED RAMP	-	F(0)  * A(7)

	 This function will return the present unscaled value of
	 the ramp.

	WRITE CONFIGURATION TABLE -	F(16) * A(6)

	 Load table with value and increment table pointer.
	 Table pointer set by F(17)*A(14)

	 Events and their function are:

	 	0 -  7		Clock event assignments 0 to 7

		8 - 15		Ramp assignments 0 to 7
	
	       16 - 23		Scale factors 0 to 7 associated with ramps

	SET CONFIGURATION POINTER -	F(17) * A(14)
	
	 Set pointer for subsequent read or write of event assignments.
	 Should be in the range of 0 - 23. Out of range values will cause
	 no action, but the LAM 'Camac Write Error' bit is set.

	READ CONFIGURATION TABLE  -	F(0) * A(14)
		
	 Return table value, post-increment to next event, wrap around at end.

	ENABLE RAMP OUTPUT	-	F(26) * A(2)

	 This will enable ramp calculation and D/A update
	 after the next reset clock event.

	DISABLE RAMP OUTPUT	-	F(24) * A(2)

	 This will immediately disable ramp calculation and
	 D/A update.

	READ ACTIVE RAMP NUMBER  -      F(1)  * A(5)

	 Returns present/last active ramp number.

	ENABLE ENERGY SCALING  -	F(26) * A(4)

	 This will enable scaling of ramp by MDAT value; to be initiated
	 at the next table reset. The high 8 bits represent the integer
	 component and the low 8 bits represent the fractional component
	 of the MDAT term.
  
	DISABLE ENERGY SCALING  -	F(24) * A(4)

	 Disables energy scaling at the next table reset.

C)
	The following are CAMAC functions which are intended for
	diagnostic purposes only and need not be supported by the system
	in general.

    a)			READ FUNCTIONS.

	F(6)*A(3)   - Read diagnostic status word

	F(6)*A(4)   - Read diagnostic data


   b)		WRITE FUNCTIONS

	F(19)*A(2)  - Write diagnostic control word (type code).

	F(19)*A(3)  - Write diagnostic data.


D)	MODULE LAM AND STATUS FUNCTIONS:
	--------------------------------

	READ STATUS		-	F(0)  * A(0)

	 Return 16-bit status of power supply. This value is determined
	 from the values present at the I/O connector.

	SET NOMINAL VALUES	-	F(16) * A(2)

	READ NOMINAL VALUES	-	F(0)  * A(2)

	SET STATUS MASK		-	F(16) * A(3)

	READ STATUS MASK	-	F(0)  * A(3)

	SET LAM MASK		-	F(16) * A(4)

	READ LAM MASK		-	F(0)  * A(4)

	READ & CLEAR STATUS ERROR -	F(0)  * A(5)

	 Status error consists of:
	(status .xor. nominal value) .and. mask

	READ/CLEAR LAM SOURCE REG. -	F(0)  * A(6)

	 The Read/Clear will clear only the high byte of the LAM source register

		LAM source register bits:

			bit # 2 -	ramp enable/disable
			bit # 3 -	energy scaling enable/disable

			bit #11 -	status error
			bit #12 -	missing TCLK signal
			bit #13 - 	missing MDAT signal
			bit #15 -	illegal CAMAC write value

	ENABLE LAM		-	F(26) * A(0)

	 The LAM is raised relative to only the high byte of the LAM source register

	DISABLE LAM		-	F(24) * A(0)

	TEST LAM		-	F(8)  * A(0)
		Q = 1 -> LAM is set
		Q = 0 -> LAM is reset
		This is a true immediate hardware response.

	READ MODULE I.D.	-	F(6)  * A(0)

	READ VERSION NUMBER	-	F(6)  * A(1)

	RESET MODULE		-	F(9)  * A(0)

	 This is a hardware reset and will not alter table values.
	 Ramp is disabled and D/A set to zero.


	REAR I/O CONNECTOR 'B' BOARD
	(36 pin VIKING type)


1L   Ground				1R   Ground   
2L   Isolated output Common		2R   Open
3L   Open				3R   (Neg Polarity N/C)

4L   Pos Polarity N/C			4R   Open
5L   Pos/Neg Polarity Common 		5R   Open
6L   Neg Polarity N/O			6R   (On N/C)

7L   Reset N/C				7R   Off N/C
8L   Reset Common			8R   On/Off Common
9L   Reset N/O				9R   On N/O

10L  DS 5				10R  D/A Output or Isolated Output
11L  DS 7				11R  DS 6
12L  DS 3				12R  DS 4

13L  DS 1				13R  DS 2
14L  DS 10				14R  DS 0 - lsb
15L  DS 8				15R  DS 9

16L  DS 12				16R  DS 11
17L  DS 14				17R  DS 13
18L  -24 VDC Output (fused at 1 amp)	18R  DS 15 - msb


Security, Privacy, Legal