← Documents Documentation/hwmon/lm77.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver lm77

LM77의 10비트 온도 측정과 세 제한값에 공통 적용되는 상대 히스테리시스입니다.

Source pathDocumentation/hwmon/lm77.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

lm77.rst:1-45

낮음·높음·임계 제한을 먼저 정한 뒤 하나의 상대 히스테리시스 차이를 세 제한값에 공통 적용합니다.

문서 개요
항목
SourceDocumentation/hwmon/lm77.rst
분량45 source lines
ADC10비트
제한3개

원문 분량과 핵심 인터페이스입니다.

동작 흐름
LM77 감지세 제한값 설정공통 차이 설정자동 히스테리시스 확인

장치 감지부터 측정값 사용까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver lm77
2 ==================
3
4 Supported chips:
5
6 * National Semiconductor LM77
7
8 Prefix: 'lm77'
9
10 Addresses scanned: I2C 0x48 - 0x4b
11
12 Datasheet: Publicly available at the National Semiconductor website
13
14 http://www.national.com/
15
16
17 Author: Andras BALI <drewie@freemail.hu>
18
19 Description
20 -----------
21
22 The LM77 implements one temperature sensor. The temperature
23 sensor incorporates a band-gap type temperature sensor,
24 10-bit ADC, and a digital comparator with user-programmable upper
25 and lower limit values.
26
27 The LM77 implements 3 limits: low (temp1_min), high (temp1_max) and
28 critical (temp1_crit.) It also implements an hysteresis mechanism which
29 applies to all 3 limits. The relative difference is stored in a single
30 register on the chip, which means that the relative difference between
31 the limit and its hysteresis is always the same for all 3 limits.
32
33 This implementation detail implies the following:
34
35 * When setting a limit, its hysteresis will automatically follow, the
36 difference staying unchanged. For example, if the old critical limit
37 was 80 degrees C, and the hysteresis was 75 degrees C, and you change
38 the critical limit to 90 degrees C, then the hysteresis will
39 automatically change to 85 degrees C.
40 * All 3 hysteresis can't be set independently. We decided to make
41 temp1_crit_hyst writable, while temp1_min_hyst and temp1_max_hyst are
42 read-only. Setting temp1_crit_hyst writes the difference between
43 temp1_crit_hyst and temp1_crit into the chip, and the same relative
44 hysteresis applies automatically to the low and high limits.
45 * The limits should be set before the hysteresis.
46

3. 한국어 전문 번역

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

LM77 지원 정보와 센서 구조

1-21

National Semiconductor LM77은 `lm77` 접두사를 사용하며 I2C 주소 `0x48`부터 `0x4b`까지 검색됩니다. 공개 데이터시트 링크를 제공하며 작성자는 Andras BALI입니다.

LM77은 밴드갭 방식 온도 센서, 10비트 ADC, 사용자가 상한과 하한을 설정할 수 있는 디지털 비교기를 통합한 단일 온도 센서입니다.

LM77 기본 정보
항목
접두사lm77
I2C 주소0x48~0x4b
센서밴드갭 온도 센서 1개
ADC10비트
비교기사용자 설정 상한·하한

검색과 측정 구조를 요약합니다.

LM77 등록
지원 주소 검색LM77 식별lm77 드라이버 결합온도 제한과 경보 게시

전용 인코딩을 사용하는 센서를 해당 드라이버에 연결합니다.

Kernel driver lm77
==================

Supported chips:

  * National Semiconductor LM77

    Prefix: 'lm77'

    Addresses scanned: I2C 0x48 - 0x4b

    Datasheet: Publicly available at the National Semiconductor website

               http://www.national.com/


Author: Andras BALI <drewie@freemail.hu>

Description
-----------

세 제한값과 공통 상대 히스테리시스

22-45

LM77은 낮음 `temp1_min`, 높음 `temp1_max`, 임계 `temp1_crit`의 세 제한값을 구현합니다. 세 제한값 모두에 히스테리시스가 적용되지만 칩에는 상대 차이를 저장하는 레지스터가 하나뿐이어서 제한과 히스테리시스 사이의 차이는 항상 세 제한값에서 같습니다.

제한값을 바꾸면 같은 차이를 유지하도록 히스테리시스도 자동으로 이동합니다. 예를 들어 임계값 80 C와 히스테리시스 75 C를 임계값 90 C로 바꾸면 히스테리시스는 자동으로 85 C가 됩니다.

세 히스테리시스는 독립적으로 설정할 수 없습니다. 드라이버는 `temp1_crit_hyst`만 쓰기 가능하게 하고 `temp1_min_hyst`와 `temp1_max_hyst`는 읽기 전용으로 둡니다. `temp1_crit_hyst`를 쓰면 임계값과의 차이가 칩에 기록되고 같은 상대 히스테리시스가 낮음·높음 제한에도 적용됩니다. 따라서 제한값을 먼저 설정한 뒤 히스테리시스를 설정해야 합니다.

LM77 제한 속성
속성권한동작
temp1_minRW낮은 온도 제한
temp1_maxRW높은 온도 제한
temp1_critRW임계 온도 제한
temp1_crit_hystRW공통 상대 차이 설정
temp1_min_hyst / temp1_max_hystRO공통 차이로 자동 계산

세 제한값과 공통 히스테리시스의 쓰기 권한입니다.

LM77 제한 설정 순서
temp1_min·max·crit 제한값 설정원하는 공통 차이 계산temp1_crit_hyst 설정min·max 히스테리시스 자동 이동세 쌍의 상대 차이 확인

단일 차이 레지스터 때문에 순서가 중요합니다.

The LM77 implements one temperature sensor. The temperature
sensor incorporates a band-gap type temperature sensor,
10-bit ADC, and a digital comparator with user-programmable upper
and lower limit values.

The LM77 implements 3 limits: low (temp1_min), high (temp1_max) and
critical (temp1_crit.) It also implements an hysteresis mechanism which
applies to all 3 limits. The relative difference is stored in a single
register on the chip, which means that the relative difference between
the limit and its hysteresis is always the same for all 3 limits.

This implementation detail implies the following:

* When setting a limit, its hysteresis will automatically follow, the
  difference staying unchanged. For example, if the old critical limit
  was 80 degrees C, and the hysteresis was 75 degrees C, and you change
  the critical limit to 90 degrees C, then the hysteresis will
  automatically change to 85 degrees C.
* All 3 hysteresis can't be set independently. We decided to make
  temp1_crit_hyst writable, while temp1_min_hyst and temp1_max_hyst are
  read-only. Setting temp1_crit_hyst writes the difference between
  temp1_crit_hyst and temp1_crit into the chip, and the same relative
  hysteresis applies automatically to the low and high limits.
* The limits should be set before the hysteresis.