요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Comparator settling interval
sysfs-bus-iio-adc-envelope-detector:32-39compare_interval은 이진 탐색 각 단계에서 comparator가 안정되기를 기다릴 밀리초 수이며 입력 주파수에 맞춰야 합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_invert
Date: October 2016
KernelVersion: 4.9
Contact: Peter Rosin <peda@axentia.se>
Description:
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|------<-------'
| |
'-------'
The boolean invert attribute (0/1) should be set when the
input signal is centered around the maximum value of the
dac instead of zero. The envelope detector will search
from below in this case and will also invert the result.
The edge/level of the interrupt is also switched to its
opposite value.
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_compare_interval
Date: October 2016
KernelVersion: 4.9
Contact: Peter Rosin <peda@axentia.se>
Description:
Number of milliseconds to wait for the comparator in each
step of the binary search for the input peak level. Needs
to relate to the frequency of the input signal.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Envelope detector inversion
1-30| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_invert |
| Date | 2016년 10월 |
| KernelVersion | 4.9 |
| Contact | Peter Rosin <peda@axentia.se> |
DAC는 interrupt pin에 연결된 comparator 출력을 이용해 이진 탐색을 수행하며 교류 전압 입력 신호의 peak 수준을 찾습니다.
입력과 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 |
| Date | 2016년 10월 |
| KernelVersion | 4.9 |
| Contact | Peter Rosin <peda@axentia.se> |
| Description | 입력 peak 수준을 찾는 이진 탐색의 각 단계에서 comparator를 기다릴 밀리초 수입니다. 입력 신호의 주파수와 관련되도록 설정해야 합니다. |
Comparator feedback and inversion
sysfs-bus-iio-adc-envelope-detector:1-30Envelope detector는 DAC 기준값과 입력을 comparator로 비교하고 IRQ 결과를 이용해 peak를 이진 탐색합니다. 입력이 DAC 최댓값 중심이면 invert로 탐색 방향·결과·interrupt 극성을 함께 반전합니다.