+36
−0
+2
−0
+10
−0
+1
−0
drivers/iio/adc/envelope-detector.c
0 → 100644
+422
−0
Loading
The DAC is used to find the peak level of an alternating voltage input
signal by a binary search using the output of a comparator wired to
an interrupt pin. Like so:
_
| \
input +------>-------|+ \
| \
.-------. | }---.
| | | / |
| dac|-->--|- / |
| | |_/ |
| | |
| | |
| irq|------<-------'
| |
'-------'
Signed-off-by:
Peter Rosin <peda@axentia.se>
Acked-by:
Thomas Gleixner <tglx@linutronix.de>
Signed-off-by:
Jonathan Cameron <jic23@kernel.org>