
2192-09155-000-000
J230 PCPIC
Page 14
Mode 3: Square wave generator.
As mode 2, but the duty cycle is 50%.
Mode 4: Software triggered strobe.
The output goes low for one clock when the counter has counted
down. Gate high enables. If gate is high the count starts from when
the second count byte is written.
Mode 5: Hardware triggered strobe.
As mode 4, but the counter starts when the gate input is triggered.
Other Registers
Several registers control the operation and facilities on the PCPIC.
G3OUT. Pointer value OCH
Writing to this register affects outputs on group 3 of the D50
connector PL1. Writing a 1 makes an output line active-low. Writing
a 0 allows it to be pulled up to +5V. This register is also used to clear
the start-stop gate input flip-flops.
TRIGTB. Pointer value 0DH
Writing to this register creates a short trigger pulse on the timebase
counter's gate. This is useful in modes 1 and 5. For example in mode
1 you may want the timebase output to open the gate to other
counters for a fixed length of time. This mode is triggered by a short
pulse on the timebase gate.
G1IN. Pointer value 10H.
Reading this gives the state of the inputs on group 1 of the D50
connector. These inputs are also connected to the interrupt control
PAL IC20 and the outputs of the counters. To use them as inputs the
counter outputs must be set low, because the counters are connected
to inverting open-collector buffers which drive the output pins.
G2IN. Pointer value 11H
Reading this gives the state of the inputs on group 2 of the D50
connector. These inputs are also connected to the 'open gate' side of
the start-stop flip-flops, but are not connected to any outputs, so
may be read at any time.
BCONT. Pointer value 12H.
This is the board control register, and the correct byte must be
written to it in order to set the board into the correct configuration.
It controls three things - how the lower (less significant) four
counters are connected, how the upper (more significant) four
counters are connected, and what happens about interrupts. Three
bits are used for each of the sets of counters and two bits for the
interrupts, making eight bits in all.