Implement separate pulse counters for TTL and BLO inputs
The pulse counters [1] are counting on an input pulse on the
front-panel TTL input and also when receiving it on the RTM BLO input
(it OR's the two).
This was as we believed that either one of the inputs would be connected
in an installation, but not both at the same time. However, it was found
out that the OR function may be useful in some installations. For
diagnosis purposes it would therefore be better to have separate
counters to know where pulses are coming from.
- Study if separate counters are needed (to be implemented) and also one after the OR (like currently implemented) or if only separate counters are enough.
- Study also if the Pulse time-tagging ring buffer and Latest Timestamp registers should be expanded.
[1] From the manual: https://www.ohwr.org/project/conv-ttl-blo/wikis/Documents/CONV-TTL-BLO-User-Guide
6.5 Pulse counters
One channel is allocated on the input of each counter, after the OR
gate
preceding the pulse generator. The input counter logic, which is
repeated on
each channel, is shown in Figure 19. On a rising edge of a pulse from
either
a TTL or a blocking input, the pulse counter is incremented and stored
to
the channel's pulse counter register (CHxPCR { see Appendix C.1).