Skip to content

Commit b129939

Browse files
authored
Refactor ToT measurement explanation in cpld.rst
Removed redundant explanation of the ToT measurement method and its limitations.
1 parent 189547f commit b129939

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/source/cpld.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ ToT Counter
9090

9191
The Time-over-Threshold (ToT) method provides information about the injected charge by measuring the duration for which the sensor signal remains above the predefined threshold. In other words, it measures the time during which the comparator output remains high.
9292

93-
A straightforward method to measure this time interval involves using a binary counter. The counter increments with each rising edge of the fast clock (``clk_buf``), as long as the comparator output is high. The counter should be reset when the injection cycle is complete (``INJ_IN`` is low). Due to limited resources of our CPLD, a reasonable counter width is 8 bits.
94-
95-
What are the achievable ToT range and timing resolution? Can either be improved, and if so, what are the limiting factors?
96-
9793
.. note::
9894

9995
Review the AFE circuit (schematic and digital implementation) described in the AFE chapter :ref:`circuit-implementation`.
10096

97+
A straightforward method to measure this time interval involves using a binary counter. The counter increments with each rising edge of the fast clock (``clk_buf``), as long as the comparator output is high. The counter should be reset when the injection cycle is complete (``INJ_IN`` is low). Due to limited resources of our CPLD, a reasonable counter width is 8 bits.
98+
99+
What are the achievable ToT range and timing resolution? Can either be improved, and if so, what are the limiting factors?
100+
101101
To read the counter value with the RPi, the partially implemented SPI protocol needs to be extended.
102102
A description of the SPI protocol can be found in the :ref:`gpio-interface` chapter. The ``MISO`` signal is used to transfer serialized data, one bit per SPI clock cycle (``SCLK``). ``CS_B`` is controlled by the RPi and determines whether data is written to the CPLD (``CS_B == 1``) or read from it (``CS_B == 0``).
103103

0 commit comments

Comments
 (0)