RD Controls Hardware Release Note 25.0
CAMAC C1005 Module
Steven's Silly Serial Module (SSSM)
R. West
August 30, 1989
Introduction
The C1005 CAMAC module transmits the command V (trigger a field measurement)
to a Group3 Model
DTM-100 Series Hall Effect Teslameter connected via
an RS232 interface whenever an external signal is input to the module.
The teslameter is connected to the module's rear I/O connector and the
external signal is input to the module on this same rear I/O connector.
In addition, the C1005 module will pass to the teslameter any input received
via the module's front panel RS232 I/O connector.
Module Configuration
The C1005 module is based on the CAMAC 1111 single board computer:
- Zilog 8002 16-bit processor
- Zilog 8036 Counter/Timer
- up to 32K of RAM
- up to 32K of ROM
- CMCSLV - CAMAC functions are handled by an ALTERA EP1800 EPLD chip
- DUART - RS232 communication functions are handled by a
dual power MAX232 and Signetics SCN2681 communications chip
- 8 data bits
- 1 stop bit
- no parity
- baud rate selectable from 300 to 19200
- no echo
- no RTS
- no CTS
On the front panel of the module are the following buttons and indicators:
- N LED - indicates when the crate controller has initiated a dataway
cycle
addressed to the module's slot
- LAM LED - indicates the module is asserting its slot's dataway LAM
signal
- LAMEN LED - indicates unmasked bits in the LAM source register will
cause
module LAM to be asserted
- HB LED - indicates failure of the processor. The Heart Beat is
generated
by software via the Counter/Timer circuit (2 second one shot).
- RESET Button - resets the processor, peripheral chips, and other
circuits
- ST LEDs - eight status LEDs which may be used by application software
RS232 Interface Configuration
The C1005 module has an RS232 I/O connector port on the rear of the module
and also on the front. Each port's baud rate may be set to a value from 300 to
19200. RS232 serial data transmitted from the teslameter must be formatted
as follows:
- 9600 baud
- 8 data bits
- no parity
- 1 stop bit
Group3 Model DTM-100 Series Hall Effect Teslameter
The DTM-100 may be configured by use of DIP switches to transmit
each new reading on the serial line in a known format at a maximum
rate of 2.34 Hz.
Switch Settings
To enable the C1005 module to process data from the teslameter,
the switches on the processor board of the teslameter must be set
appropriately. The 16-position switch used to specify the serial
data bit rate must be set to the 9600 position.
The DIP switches must be set in the following manner:
- switch S1-6 = 1 - one stop bit
- switch S1-7 = 0 - no parity
- switch S1-8 = 1 - 8 transmission/reception data bits
The RS232 jumpers on the processor board must be connected in the following
manner:
- options pins: single device system
- handshake pins: +5 volts for both CTS and DCD
- t/m pins: terminal mode
Teslameter Initialization
In addition to the physical switch settings, the C1005 module must send the
DTM teslameter certain configuration commands whenever the module is reset
or powered on:
- CTRL-X - reset the system, reinstating all default values and
returning the message RESET
CAMAC Functions
When a CAMAC operation is performed, the Z8002 processor executes a vectored
interrupt to a routine which reads the CMCSLV data lines and determines the
function code. A jump is then executed to the appropriate routine to process
the request.
- Identify
- F6 A0 - Read module number
- F6 A1 - Read software version
- Hardware
- F8 A0 - Test LAM
- F9 A0 - Reset module
- LAM
- F1 A13 - Read LAM mask register
- F1 A14 - Read LAM source register
- F10 A0 - Clear LAM source register
- F17 A0 - Clear selected LAM source register bits
- F17 A13 - Write LAM mask register
- F17 A14 - Write LAM source register
- F24 A0 - Disable LAM
- F26 A0 - Enable LAM
- Fast On-line Protocol (FOP) for software diagnostics
- F6 A3 - Read FOP status
- F6 A4 - Read FOP reply data
- F19 A2 - Write FOP command
- F19 A3 - Write FOP data
- Data
- F6 A2 - Read selected options
Function Code Descriptions
- F1 A13 - Read LAM mask register
-
- F1 A14 - Read LAM source register
-
- F6 A0 - Read module number
-
This function always returns the decimal value 1005.
- F6 A1 - Read software version
-
A sixteen-bit value is returned with the major version number (release)
in the most significant byte and the revision level number in the least
significant byte.
- F6 A2 - Read selected options
-
This function returns a reading of the switch settings on the I/O connector
used to indicate the type of the attached meter. Only the low 8 bits are
significant. Any value but 00 indicates a 9600 baud teslameter is connected.
- F6 A3 - Read FOP status
-
- F6 A4 - Read FOP reply data
-
- F8 A0 - Test LAM
-
This function indicates if the module has requested LAM, independent of
whether or not LAM is enabled.
If the module has requested LAM, Q is returned. Otherwise, no Q is
returned.
This function is totally implemented in hardware and does not interrupt the
embedded processor.
- F9 A0 - Reset module
-
This function is totally implemented in hardware. It is
equivalent to pressing the reset button on the module's front
panel, causing the embedded processor to be reset. Q is always returned.
However, trying to communicate with the module before the reset is complete
results in no Q.
- F10 A0 - Clear LAM source register
-
This function clears the entire LAM source register.
- F17 A0 - Clear selected LAM source register bits
-
This functions clears selected bits in the LAM source register. The user
must supply a 16-bit word which has a bit set for each corresponding LAM bit
which is to be cleared.
- F17 A13 - Write LAM mask register
-
This functions writes the accompanying 16-bit word to the LAM mask register.
- F17 A14 - Write LAM source register
-
This function sets selected bits in the LAM source register. The user
must supply a 16-bit word which has a bit set for each corresponding LAM bit
which is to be set.
- F19 A2 - Write FOP command
-
- F19 A3 - Write FOP data
-
- F24 A0 - Disable LAM
-
This function disables the assertion of LAM to the crate controller.
- F26 A0 - Enable LAM
-
This function enables the assertion of LAM to the crate controller. Any
LAM request made while LAM was disabled is immediately asserted.
Status LEDs
All status LEDs are cleared whenever a carriage return is received.
- ST 0 - receiving ASCII character input
- ST 1 - receiving CAMAC commands
- ST 3 - trigger pulse latched on
- ST 7 - RS232 interface error (framing, parity, overrun)
Security, Privacy, Legal
rwest@fsus04.fnal.gov