Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
CAMAC is a modular data acquisition and control standard that was originally developed for nuclear physics instrumentation in the 1970s but has since been adopted across many scientific and industrial applications requiring reliable, real-time data acquisition. The basic building block is the CAMAC crate — a 19-inch rack-mountable chassis that houses up to 24 plug-in modules, a backplane data highway (the Dataway), and a crate controller that manages all data transfers.
The crate controller serves as the intelligent bridge between the CAMAC Dataway and the external computer system via one of three highway types: the Parallel Branch Highway (up to 7 crates on a 66-line parallel bus), the Serial Highway (up to 62 crates on a serial loop), or the Computer Independent Highway (direct connection to specific computer buses). IEC 61751 focuses primarily on the crate controller’s functions that are common across all highway types, with specific emphasis on the Serial Highway controller.
The crate controller defined by IEC 61751 performs several critical functions:
Dataway control: The controller generates the timing and control signals required for Dataway operations, including the strobe signals (S1, S2) that latch data into and out of modules, the busy signal that prevents new operations during a current cycle, and the command lines (F, A, N, subaddress) that select specific modules and functions.
Address decoding: The controller interprets the station number (N) and subaddress (A) from the highway command and generates the corresponding Dataway address lines. It must handle the full address space of up to 24 stations per crate, with each station supporting up to 16 subaddresses (A0 through A15) for a total of 384 individually addressable register locations per crate.
Data routing: CAMAC supports 24-bit parallel data words (24 read lines and 24 write lines, plus parity). The controller manages the direction of data flow based on the function code (F) — read functions (F0-F15) transfer data from module to controller, write functions (F16-F31) transfer data from controller to module, and special functions perform test and control operations without data transfer.
LAM (Look-at-Me) handling: Each CAMAC module can assert a LAM signal to request service from the controller. The controller must prioritise, queue, and report LAM requests to the host computer. IEC 61751 specifies the LAM handling protocol, including the graded LAM system where LAMs are grouped by priority levels.
The Serial Highway, as specified in IEC 61751, is a byte-serial, bit-parallel communication system that connects up to 62 CAMAC crates in a loop configuration. Each crate contains a Serial Crate Controller (SCC) that implements the serial protocol. The highway uses a byte-parallel format (8 bits plus parity, transmitted over 9 differential pairs for balanced transmission) operating at a standard clock rate of 5 MHz, yielding a raw data throughput of approximately 5 MB/s.
The serial loop topology provides inherent fault tolerance: if a single SCC fails or loses power, the serial message is automatically re-routed through the SCC’s bypass relay, maintaining communication with all downstream crates. This feature, mandated by IEC 61751, is critical for nuclear facility applications where a single point of failure must not disable the entire data acquisition system.
| Characteristic | Parallel Branch Highway | Serial Highway | Computer Independent Highway |
|---|---|---|---|
| Maximum Crates | 7 | 62 | 1-7 (system-dependent) |
| Transmission Medium | 66-line parallel cable | 9-pair twisted pair (differential) | Direct bus connection |
| Maximum Distance | 30 m | 500 m (extendable with repeaters) | Limited by computer chassis |
| Data Rate | ~20 MB/s (peak) | ~5 MB/s (5 MHz byte clock) | Computer bus-dependent |
| Fault Tolerance | Limited (bus topology) | Loop with automatic bypass relays | None inherent |
| Typical Application | Small experiments, single-room | Large facilities, distributed systems | Embedded systems |
IEC 61751 defines a structured message format for Serial Highway transactions. Each message consists of a header byte (containing the crate number, 0-61), a command byte (read, write, status, or control), data bytes (up to 3 bytes for CAMAC 24-bit data words), and a trailer byte (containing status information and error flags). The message timing is precisely specified:
The serial highway operates in command-response mode: the host computer (the Serial Highway Driver, SHD) transmits a command message onto the loop, which circulates through each SCC until it reaches the addressed crate. The addressed SCC executes the CAMAC Dataway cycle and inserts the response data and status into the message as it continues around the loop back to the SHD. The total round-trip time for a single CAMAC operation includes the serial propagation delay (approximately 5 ns per metre of cable), the processing delay in each SCC (typically 1-2 byte periods per crate), and the Dataway cycle execution time (approximately 1 µs).
IEC 61751 defines the configuration and addressing scheme for multi-crate systems. Each crate in a serial highway system is assigned a unique crate number (0 to 61) set by switches or jumpers on the SCC. The crate number is used as the address in serial highway messages and also defines the LAM reporting order — the SHD polls LAM status by crate number in ascending order, providing a deterministic priority scheme.
The standard also addresses the initialisation and reset procedures. Upon power-up or system reset, the SHD transmits a System Initialize (Z) command that resets all modules in all crates to a known state. IEC 61751 specifies the timing relationships between the Z command, the Dataway clear (C) signal, and the crate controller’s internal state machine to ensure deterministic start-up behaviour across all crates in the system.
| Function Code (F) | Mnemonic | Operation | Data Transfer | Typical Use |
|---|---|---|---|---|
| F(0) | Read | Read register | Module to controller, 24-bit | Read ADC value |
| F(1) | Read and Clear | Read register, then clear | Module to controller, 24-bit | Read scaler with reset |
| F(8) | Test LAM | Test if LAM is set | None (status only) | LAM polling |
| F(16) | Write | Write register | Controller to module, 24-bit | Set DAC, set threshold |
| F(24) | Disable | Disable module function | None | Disable channel |
| F(25) | Enable | Enable module function | None | Enable channel |
| F(26) | Execute | Execute module function | None | Start acquisition |
| F(27) | Test Status | Test module status | None (status only) | Check busy/ready |
While CAMAC has been largely superseded by VMEbus, PCIe, and PXI for new designs, hundreds of CAMAC systems remain operational in nuclear facilities worldwide. The standard’s longevity is attributed to several factors: the deterministic timing of the Dataway (essential for nuclear safety systems), the wide availability of modules for nuclear signal processing (ADCs, TDCs, discriminators, scalers, coincidence units), and the installed base of systems that have been qualified for safety-critical nuclear applications.
IEC 61751 remains relevant for two key activities: legacy system maintenance (keeping operational CAMAC systems running with replacement SCCs and controllers) and system expansion (adding new crates or upgrading existing modern controllers with Ethernet or USB interfaces). Several manufacturers produce modern CAMAC crate controllers that implement the IEC 61751 specification while providing a Gigabit Ethernet or USB 3.0 interface to the host computer, achieving data throughputs of 30-50 MB/s — far exceeding the original parallel branch highway performance.
1. What is the difference between IEC 61751 and the main CAMAC standard IEC 60641?
IEC 60641 (parts 1-4) defines the core CAMAC specifications: the mechanical and electrical characteristics of the crate and Dataway (part 1), the block transfer protocol (part 2), the parallel branch highway (part 3), and the serial highway (part 4). IEC 61751 specifically addresses the crate controller — the intelligent module that implements the highway protocol, manages Dataway operations, and interfaces with the host computer. While the main CAMAC standards define the bus, IEC 61751 defines the bus master.
2. Can CAMAC and NIM modules be mixed in the same system?
Yes, this is a common configuration in nuclear physics experiments. NIM (Nuclear Instrumentation Module) modules handle the analogue signal processing (amplifiers, discriminators, coincidence logic) using the NIM standard (IEC 60775), while CAMAC modules handle the digital data acquisition (ADCs, TDCs, scalers, memory). The two standards coexist physically because NIM bins and CAMAC crates are both 19-inch rack-mountable, and logically because NIM outputs (typically standard logic levels with specific timing) are designed to drive CAMAC inputs directly. IEC 61751 does not cover NIM-CAMAC interfacing directly, but the timing specifications ensure compatibility.
3. How does the CAMAC crate controller handle error detection?
IEC 61751 specifies several error detection mechanisms: parity checking on the serial highway (byte parity on every byte transmitted), watchdog timers in the SCC that detect message timeouts and assert a Dataway error signal, command validation (the controller checks that function codes and subaddresses are within valid ranges), and status response (the X and Q response lines from each module are checked after every Dataway cycle). The controller assembles the error status into the serial message trailer and reports it to the SHD. In critical applications, multiple consecutive errors on the same crate trigger an automatic bypass relay activation.
4. What is the maximum practical CAMAC system size specified by IEC 61751?
IEC 61751 defines addressing for up to 62 crates on a single serial highway, with 24 stations per crate (one of which is occupied by the crate controller itself), yielding 23 usable module slots per crate and a total of 1,426 modules in the largest configuration. However, practical limitations of power distribution, cooling, and cable management typically restrict systems to 10-20 crates in a single installation. The standard also allows for multiple independent serial highways (each with its own SHD) to be operated from a single host computer, enabling systems with thousands of modules in total.