All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michele Testa <michele@fsfe.org>
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Configuration file for Foxconn 2A8Ch motherboard
Date: Wed, 28 Aug 2013 23:30:56 +0000	[thread overview]
Message-ID: <521E8830.7080408@fsfe.org> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 431 bytes --]

Hello everyone,

please find enclosed my configuration file for Foxconn 2A8Ch
motherboard. All Compaq 500B MT (Product No. WB741EA#ABZ) are equipped
with this motherboard.
I had some problems in writing it, because neither the motherboard nor
the personal computer are well-documented; so it likely needs further
tweaking.
However, I hope that it may be useful to someone.

Thanks in advance for your time,

Michele


[-- Attachment #1.1.2: foxconn_2A8Ch.conf --]
[-- Type: text/plain, Size: 6267 bytes --]

# Libsensors configuration file for:
#
# Compaq 500B MT (Product No. WB741EA#ABZ)
#   Manufacturer: Hewlett-Packard
#   Product Name: Compaq 500B Microtower
#   SKU Number: WB741EA#ABZ
#   Family: 103C_53307F
#
# Motherboard Information
#   Manufacturer: FOXCONN
#   Product Name: 2A8Ch
#
# CPU Information:
#   Version: Pentium(R) Dual-Core  CPU      E5400  @ 2.70GHz     
#   Voltage: 1.3 V
#   External Clock: 800 MHz
#   Max Speed: 2700 MHz
#   Socket: LGA775
#
# Chips used for system monitoring:
#   - On-die Digital Thermal Sensor (DTS) in CPU Cores
#   - IT8712F on the motherboard
#

chip "it87-*" "it8712-*" "it8720-*"

    # Labeling CPU cores temp monitors
    label temp1 "Core 0 Temp"
    label temp2 "Core 1 Temp"
    label temp3 "   M/B Temp"

    # Labeling fans
    label fan1 "CPU Fan"
    label fan2 "M/B Fan"
    label fan3 "P/S Fan"

    # Labeling voltage monitors
    label in0 "VCore 1"
    label in1 "VCore 2"
    label in2 "+3.3V"
    label in3 "+5V"
    label in4 "+12V"
    label in5 "-12V"
    label in6 "-5V"
    label in7 "Stdby"

    
    # Setting voltage ranges

    # For in0 and in1 (CPU cores), the range values are inferred by the web page
    # about specs of Intel® Pentium® Processor E5400 (http://ark.intel.com/products/40478/)
    set in0_min 0.85 
    set in0_max 1.3625
    set in1_min 0.85 
    set in1_max 1.3625

    # For all remaining values, we simply set a tolerance of 0.5%
    # because we lack the specs page for the motherboard Foxconn 2A8Ch
    set in2_min 3.3 * 0.95
    set in2_max 3.3 * 1.05
    set in3_min 5.0 * 0.95
    set in3_max 5.0 * 1.05
    set in4_min 12 * 0.95
    set in4_max 12 * 1.05
    set in5_min -12 * 1.05
    set in5_max -12 * 0.95
    set in6_min -5 * 1.05 
    set in6_max -5 * 0.95
    set in7_min 5 * 0.95
    set in7_max 5 * 1.05

    # Setting lowest speed for motherboard fan
    set fan2_min 600

    # vid not monitored by IT8705F
    ignore  cpu0_vid

    # Intel CPU Cores are better monitored by coretemp module
    # so here we're going to ignore them
    ignore temp1
    ignore temp2

    # Ignore Power Supply Fan: we haven't a PSU so smart!
    # Comment the following 2 lines if you have a smart PSU
    ignore fan3
    ignore temp3

# For the negative voltage values, the chip uses two external resistor for scaling, but one is
# tied to a positive reference voltage. See ITE8712F datasheet (V0.81)
# downloaded at: http://pdf1.alldatasheet.com/datasheet-pdf/view/143783/ETC1/IT8712F.html
#
# Informations below are just extracted by this datasheet:
#
# **************************************************************************************************************
# The Environment Controller (EC), built in the IT8712F, includes eight voltage inputs, three temperature sensor
# inputs, three FAN Tachometer inputs, and three sets of advanced FAN Controllers. The EC monitors the
# hardware environment and implements environmental control for personal computers.
# The IT8712F contains an 8-bit ADC (Analog-to-Digital Converter) which is responsible for monitoring the
# voltages and temperatures. The ADC converts the analog inputs, ranging from 0V to 4.096V, to 8-bit digital
# bytes. Thanks to the additional external components, the analog inputs are able to monitor different voltage
# ranges, in addition to monitoring the fixed input range of 0V to 4.096V. Through the external thermistors, the
# temperature sensor inputs can be converted to 8-bit digital bytes, enabling the sensor inputs, and monitoring
# the temperature around the thermistors or thermal diode. A built-in ROM is also provided to adjust the non-
# linear characteristics of thermistors.
# FAN Tachometer inputs are digital inputs with an acceptable input range of 0V to 5V, and are responsible for
# measuring the FAN’s Tachometer pulse periods. FAN_TAC1 and FAN_TAC2 include programmable divisors,
# and can be used to measure different fan speed ranges. FAN_TAC3 also includes programmable divisors, but
# can be used to measure two fan speed ranges only.
# The EC of the IT8712F provides multiple internal registers and an interrupt generator for programmers to
# monitor the environment and control the FANs. Both the LPC Bus and Serial Bus interfaces are supported to
# accommodate the needs for various applications.
#
# The 8-bit ADC has a 16mV LSB, with a 0V to 4.096V input range. The 2.5V and 3.3V supplies of PC
# applications can be directly connected to the inputs. The 5V and 12V inputs should be divided into the
# acceptable range. When the divided circuit is used to measure the positive voltage, the recommended range
# for Ra and Rb is from 10KΩ to 100KΩ. The negative voltage can be measured by the same divider unless the
# divider is connected to VREF (constant voltage, 4.096V), not ground. The temperature measurement system
# of the EC converts the voltage of the TMPINs to 8-bit two’s-complement. The system also includes an OP
# amp providing a constant voltage. It also additionally includes an external thermistor, a constant resistance,
# the ADC and a conversion table ROM.
# **************************************************************************************************************
#
# Formulas used in computing:
# Vs = (1 + Rin/Rf) * Vin - (Rin/Rf) * Vref.
# Vref = 4.096 volts, Vin is voltage measured, Vs is actual voltage.
# 1 LSB = 16 mV

    compute in0 @ * (10/16), @ / (10/16)
    compute in1 @ * (10/16), @ / (10/16)
    compute in2 @ * (25/16), @ / (25/16)
    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
    compute in4 ((75/16) +1)*@  , @/((75/16) +1)

# The next two are negative voltages (-12 and -5).
# The following formulas must be used. Unfortunately the datasheet
# does not give recommendations for Rin and Rf (only Vref = 4.096V)
# so we are forced to guess them
#
# Formula:
#    actual V = (Vmeasured * (1 + Rin/Rf)) - (Vref * (Rin/Rf))
#    For -12V input use Rin/Rf ~= 7.4 
#    For -5V input use Rin/Rf ~= 3.7
#    Elsewhere use Rin/Rf ~= 6.8
#
# Then you can convert the forumula to a standard form like:    

    compute in5 (8.4 * @) - 30.31  ,  (@ + 30.31) / 8.4
    compute in6 (4.7 * @) - 15.16  ,  (@ + 15.16) / 4.7

    # Stand-by voltage input computation
    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)


[-- Attachment #1.1.3: 0x18B6858C.asc --]
[-- Type: application/pgp-keys, Size: 5553 bytes --]

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

                 reply	other threads:[~2013-08-28 23:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=521E8830.7080408@fsfe.org \
    --to=michele@fsfe.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.