You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also see the examples in the `differential_amplifier` library provided with this core.
30
30
31
31
## How does it work?
32
32
33
33
### Basics
34
34
35
-
The differential amplifier (DAP) has 2 inputs (`inverting`/minus and `non-inverting`/plus), a `gain` value and 1 `output`.
35
+
The differential amplifier (DAP) consists of
36
+
37
+
*`inverting` input (-)
38
+
*`non_inverting` input (+)
39
+
*`gain` value
40
+
*`output`.
41
+
42
+
where
36
43
37
44
```
38
-
output = gain * (non-inverting - inverting)
45
+
output = gain * (non_inverting - inverting)
39
46
```
40
47
41
48
And the output can be read through the ADC (like a normal analog read).
42
49
50
+
### Limitations
51
+
52
+
Both inputs and output must be between gnd and vcc.
53
+
54
+
### Datasheet
55
+
43
56
All information was extracted from this translation of the datasheet: [(English) LGT8FX8P_databook_V1.04](../LGT8FX8P_databook_v1.0.4.en.pdf) (thanks to [metallurge](https://github.com/metallurge) for the translated doc [here](https://github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/issues/2#issuecomment-517952757))
0 commit comments