← Documents Documentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

IIO ADC envelope detector controls

DAC·comparator·IRQ 피드백으로 교류 입력 peak를 이진 탐색하는 envelope detector의 반전과 비교 대기 시간을 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Comparator feedback and inversion

sysfs-bus-iio-adc-envelope-detector:1-30

Envelope detector는 DAC 기준값과 입력을 comparator로 비교하고 IRQ 결과를 이용해 peak를 이진 탐색합니다. 입력이 DAC 최댓값 중심이면 invert로 탐색 방향·결과·interrupt 극성을 함께 반전합니다.

Comparator settling interval

sysfs-bus-iio-adc-envelope-detector:32-39

compare_interval은 이진 탐색 각 단계에서 comparator가 안정되기를 기다릴 밀리초 수이며 입력 주파수에 맞춰야 합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_invert
2 Date: October 2016
3 KernelVersion: 4.9
4 Contact: Peter Rosin <[email protected]>
5 Description:
6 The DAC is used to find the peak level of an alternating
7 voltage input signal by a binary search using the output
8 of a comparator wired to an interrupt pin. Like so::
9
10 _
11 | \
12 input +------>-------|+ \
13 | \
14 .-------. | }---.
15 | | | / |
16 | dac|-->--|- / |
17 | | |_/ |
18 | | |
19 | | |
20 | irq|------<-------'
21 | |
22 '-------'
23
24 The boolean invert attribute (0/1) should be set when the
25 input signal is centered around the maximum value of the
26 dac instead of zero. The envelope detector will search
27 from below in this case and will also invert the result.
28
29 The edge/level of the interrupt is also switched to its
30 opposite value.
31
32 What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_compare_interval
33 Date: October 2016
34 KernelVersion: 4.9
35 Contact: Peter Rosin <[email protected]>
36 Description:
37 Number of milliseconds to wait for the comparator in each
38 step of the binary search for the input peak level. Needs
39 to relate to the frequency of the input signal.
40

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Envelope detector inversion

1-30
항목전문 번역
What/sys/bus/iio/devices/iio:deviceX/in_altvoltageY_invert
Date2016년 10월
KernelVersion4.9
ContactPeter Rosin <[email protected]>

DAC는 interrupt pin에 연결된 comparator 출력을 이용해 이진 탐색을 수행하며 교류 전압 입력 신호의 peak 수준을 찾습니다.

Envelope detector comparator feedback
AC inputComparator (+)Comparator output
DAC outputComparator (-)Comparator output
Comparator outputIRQBinary-search controlDAC

입력과 DAC 기준값을 comparator에서 비교하고, comparator 출력이 IRQ를 통해 이진 탐색 제어로 되돌아가 다음 DAC 기준값을 정합니다.

Boolean invert 속성(0/1)은 입력 신호가 0이 아니라 DAC 최댓값을 중심으로 놓일 때 설정해야 합니다. 이 경우 envelope detector는 아래쪽에서부터 탐색하며 결과도 반전합니다.

Interrupt의 edge/level도 반대 값으로 전환됩니다.

Binary-search comparator interval

32-39
항목전문 번역
What/sys/bus/iio/devices/iio:deviceX/in_altvoltageY_compare_interval
Date2016년 10월
KernelVersion4.9
ContactPeter Rosin <[email protected]>
Description입력 peak 수준을 찾는 이진 탐색의 각 단계에서 comparator를 기다릴 밀리초 수입니다. 입력 신호의 주파수와 관련되도록 설정해야 합니다.