RD Controls Hardware Release Note 26.0 <P> CAMAC C1151 Module <P> Power Supply and Ramp Controller

RD Controls Hardware Release Note 26.0

CAMAC C1151 Module

Power Supply and Ramp Controller

R. West, W. R. Knopf, M. Kuplic

January 24, 1991

Introduction

The C1151 module is a single width CAMAC module which provides a precision reference voltage, control signals, and status readbacks for external devices such as power supplies.

Ramp generation is accomplished by periodic updates of the on-board D/A converter by a module-resident microprocessor executing specific software routines. Access to the module is through standard CAMAC functions across the dataway or via one of two serial ports. The serial interface consists of an RS232 port on the front panel accessible through a four-pin LEMO connector and a port on the Viking connector which can be hardware-configured as RS232 or RS485, thus allowing data rates of up to one megabits per second.

CAMAC functions use a 16-bit wide data path (R1-R16, W1-W16) on the dataway to transfer data to and from the module.

All interface signals to external devices are available on a standard CAMAC 36 pin Viking I/O connector at the rear of the module. See Appendix C for pin connections.

Hardware Description

All peripheral devices are controlled by a 16-bit general purpose microprocessor (Zilog Z8002) at a 10 MHz clock rate. Memory support consists of jumper selectable 16/64 kbyte of EPROM and 16/64 kbyte of static RAM. A 2K x 8 bytewide non-volatile RAM provides storage of parameters for power-up conditions. Timer interrupts, bitsize I/O ports, and vector generation for other interrupt sources are supported by a Peripheral Controller (Zilog Z8036 CIO). See Appendix A for memory and peripheral devices address mapping.

The reference voltage is generated by a 16-bit D/A converter (BB-DAC703), buffered to the I/O connector through a voltage follower buffer amplifier (PMI BUF-03).

As an option, analog signals can be read back through a 12-bit, left justified A/D converter (AD574). The signal to the A/D is buffered through an input op-amp (BB-INA117).

Four control outputs are isolated through the use of reed relays (Gordos 831C-1). These provide for the power supply control functions ON, OFF, RESET, and POLARITY.

Eight sense input bits for status read are TTL inputs with 220 Ohm pull-up resistors.

Tevatron Clock decoding circuitry allows for interrupt generation by software selectable clock events. A 256 x 1 mask memory allows for enabling or disabling of events by writing a `1' or `0', respectively, to the corresponding location. All unmasked events are buffered through a 64 x 8 FIFO to prevent loss of events due to processor latency. Note that the module accepts the Tevatron Clock as decoded clock and data signals on dataway lines P1 and P2, respectively, thus requiring the presence of the new version of the Crate Controller. If not used, jumper J5 should be removed and jumper J4 set to the pull-up position.

The CAMAC dataway interface consists of two 16-bit data latches, one each for read and write functions. All valid functions requiring processor intervention generate vectored interrupts with a unique vector provided for each function. See Appendix B for interrupt vector assignments.

To ensure software execution integrity, a hardware heartbeat/reset feature is provided. Bit number one of port B (Z8036) must be toggled at a periodic rate to generate an edge which retriggers a time-out counter in the micromonitor I.C. (Dallas DS1232). Upon timing out, this chip asserts the hardware reset line.

Note: When using an in-circuit emulator to single step this module, the retrigger signal has to be moved via a jumper to the `MEMREQ' signal to prevent the occurrence of continuous resets.

CAMAC Hardware Interface

Logic Generation

Read Functions

Write Functions

Control Functions

Special Functions

Ramp Generation

Diagnostics

Diagnostic commands may be directly input to the module by connecting a computer terminal to the front panel RS232 port. A HELP menu displays the commands which are available to assist in trouble shooting. The following commands can be executed at a terminal:

Status LEDs

Status Word

Switch Settings

APPENDIX A

ADDRESS ASSIGNMENTS

Memory space shown in 16 kbyte EPROM, 16 kbyte RAM configuration

15------------------------------0 0000 - | | | | | Code Segment in | | EPROM | | | 7FFF - | | |-------------------------------| 8000 - | PSAREA | |-------------------------------| 8300 - | | | RAM | | | | | FFFF - | SYSTEM STACK | ---------------------------------

I/O Space - All 8 bit I/O devices are located at an odd byte address

15--------------7---------------0 0000 - | | | | | Z8036 CIO | 00FF | | | |-------------------------------| 0100 - | | | | | 2692 DUART | 01FF | | | |-------------------------------| 0200 - | | TCLK | | | Mask RAM | 03FF - | | | |-------------------------------| 0400 - | | TCLK FIFO | |-------------------------------| 0480 - | | F.P. LEDs | |-------------------------------| 0500 - | DAC703 (D/A) | D/A data write |-------------------------------| 0580 - | AD574 (A/D) Convert | I/O write to start conversion 0582 - | Data | A/D data read |-------------------------------| 0600 - | CAMAC Buffers | |-------------------------------| 0680 - | | ON Relay | 0682 - | | OFF Relay | 0684 - | | RESET Relay | 0686 - | |POLARITY Relay | 0688 | | Viking I/O | I/O status read |-------------------------------| 1000 - | | | | | NV RAM | 1FFF - | | | ---------------------------------

APPENDIX B

INTERRUPT VECTOR ASSIGNMENTS

APPENDIX C

VIKING CONNECTOR SIGNAL ASSIGNMENTS

Security, Privacy, Legal

rwest@fsus04.fnal.gov