mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
fix it87 in5,in6 calculations in sensors.conf.eg
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1213 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1c08a2e704
commit
86d44b5869
2 files changed
+14
-5
No files matched your search
@@ -21,6 +21,7 @@ ask CVS about it:
|
||||
Chip Modules (all): malloc.h -> slab.h
|
||||
Modules (all): Add MODULE_LICENSE("GPL")
|
||||
File doc/FAQ: More updates and additions
|
||||
File sensors.conf.eg: Fix it87 in5,in6 (-12,-5) calculations
|
||||
Module fscpos: new (Fujitsu-Siemens Poseidon driver)
|
||||
Module i2c-amd756: Improve busy handling/printk's
|
||||
Module i2c-i801: Add 82801CA/CAM support
|
||||
|
||||
+13
-5
@@ -1031,17 +1031,25 @@ chip "it87-*"
|
||||
|
||||
# For this family of chips the negative voltage equation is different from
|
||||
# the lm78. The chip uses two external resistor for scaling but one is
|
||||
# tied to a positive reference voltage. See ITE8705F datasheet (SIS950
|
||||
# tied to a positive reference voltage. See ITE8705/12 datasheet (SIS950
|
||||
# data sheet is wrong)
|
||||
# Vs = (1 + Rin/Rf) * Vin - (Rin/Rf) * Vref.
|
||||
# Vref = 4.096 volts, Vin is voltage measured, Vs is actual voltage.
|
||||
|
||||
compute in2 (1 + 1)*@ , @/(1 + 1)
|
||||
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
|
||||
compute in4 ((30/10) +1)*@ , @/((30/10) +1)
|
||||
# Since these have the wrong equation form they are probably not correct
|
||||
compute in5 -(72/10)*@ , -@/(72/10)
|
||||
compute in6 -(56/10)*@ , -@/(56/10)
|
||||
# The next two are negative voltages (-12 and -5).
|
||||
# The following formulas must be used. Unfortunately the datasheet
|
||||
# does not give recommendations for Rin, Rf, but we can back into
|
||||
# them based on a nominal +2V input to the chip, together with a 4.096V Vref.
|
||||
# Formula:
|
||||
# actual V = (Vmeasured * (1 + Rin/Rf)) - (Vref * (Rin/Rf))
|
||||
# For -12V input use Rin/Rf = 6.68
|
||||
# For -5V input use Rin/Rf = 3.33
|
||||
# Then you can convert the forumula to a standard form like:
|
||||
compute in5 (7.67 * @) - 27.36 , (@ + 27.36) / 7.67
|
||||
compute in6 (4.33 * @) - 13.64 , (@ + 13.64) / 4.33
|
||||
#
|
||||
compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)
|
||||
|
||||
# Temperature
|
||||
|
||||
Reference in new issue
Block a user