Skip to content

Commit e65a2de

Browse files
authored
Update README.md
1 parent 0673a4f commit e65a2de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Catching the TTL trigger
22

3-
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>
3+
44

55
Our group need to build a new DAQ system for planned nuclear decay experiments, which require a stable and reliable procedure to remote-control all network-connected devices (a spectrum analyzer, a IQ recorder and a server) to successively collecting large amount of data. However, the original trigger system of IQ recorder can not satisfy the requirment. It can only work steadily when executing the _recording mode_ each time the trigger signal comes.
66

@@ -26,7 +26,7 @@ Catching the TTL trigger signal and sednding the *triggered* message to server,
2626

2727
The TTL trigger signal:
2828
* falling edge
29-
* width: 50 $\mu$ s
29+
* width: 50 μs
3030
* amplitude range: 0~4V
3131

3232
![image](/Pic/triggerSignal.png)
@@ -43,15 +43,15 @@ Process:
4343

4444
## Circuit diagram
4545

46-
A simple circuit is for measuring the voltage of the resistance (1k$\Omega$), which is connected with another resistance (the same 1k$\Omega$) in series. The total voltage of this circuit is the input voltage between TTL and GND. The voltage between ADC input A0 and GND is what we measure.
46+
A simple circuit is for measuring the voltage of the resistance (1kΩ), which is connected with another resistance (the same 1kΩ) in series. The total voltage of this circuit is the input voltage between TTL and GND. The voltage between ADC input A0 and GND is what we measure.
4747

4848
![image](/Pic/Circuit.png)
4949

5050
## software 1.0: resetting prescaler
5151

5252
This idea was used in our beam test 2016.
5353

54-
The main idea is to resetting prescaler. The `analogRead()` usually needs 100$\mu$s to read the analog input. Since the default prescaler is 128.
54+
The main idea is to resetting prescaler. The `analogRead()` usually needs 100μs to read the analog input. Since the default prescaler is 128.
5555

5656
ADC clock = 16 MHz / 128 = 125 kHz
5757

@@ -61,7 +61,7 @@ One ADC transfer needs 13 ticks. The final sampling rate
6161

6262
***It is far from our design index!***
6363

64-
Since we do not need a very high accuracy of the voltage. We reset the prescaler to instead 4 of 128. The ideal sampling rate is 308 kHz (3.24$\mu$s per point). The test result is 9.42 $\mu$s per point.
64+
Since we do not need a very high accuracy of the voltage. We reset the prescaler to instead 4 of 128. The ideal sampling rate is 308 kHz (3.24 μs per point). The test result is 9.42 μs per point.
6565

6666
**Code**
6767
```Arduino
@@ -100,7 +100,7 @@ This idea will be used in our beam test 2017.
100100
The main idea is using analog comparator, comparing the input values on the positive pin AIN+ and negative pin AIN-. When the voltage on the AIN+ is higher than the voltage on the AIN-, the Analog Comparator output, ACO, is set.
101101
The comparator can trigger a separate interrupt, exclusive to the Analog Comparator.
102102

103-
In this case, the AIN+ we choose is the Bandgap reference (1.1$\+-$0.1V) and the AIN- is ADC input A0 (ATmega 32U4 mapping pin ADC7).
103+
In this case, the AIN+ we choose is the Bandgap reference (1.1(1)V) and the AIN- is ADC input A0 (ATmega 32U4 mapping pin ADC7).
104104

105105
**Code**
106106
```Arduino

0 commit comments

Comments
 (0)