3 The following specification describes the SMSC LPC47B397-NC sensor chip
4 (for which there is no public datasheet available). This document was
5 provided by Craig Kelly (In-Store Broadcast Network) and edited/corrected
6 by Mark M. Hoffman <mhoffman@lightlink.com>.
10 Methods for detecting the HP SIO and reading the thermal data on a dc7100.
12 The thermal information on the dc7100 is contained in the SIO Hardware Monitor
13 (HWM). The information is accessed through an index/data pair. The index/data
14 pair is located at the HWM Base Address + 0 and the HWM Base Address + 1. The
15 HWM Base address can be obtained from Logical Device 8, registers 0x60 (MSB)
16 and 0x61 (LSB). Currently we are using 0x480 for the HWM Base Address and
17 0x480 and 0x481 for the index/data pair.
19 Reading temperature information.
20 The temperature information is located in the following registers:
21 Temp1 0x25 (Currently, this reflects the CPU temp on all systems).
27 The following is an example of how to read the HWM temperature registers:
34 AL contains the data in hex, the temperature in Celsius is the decimal
37 Ex: If AL contains 0x2A, the temperature is 42 degrees C.
39 Reading tach information.
40 The fan speed information is located in the following registers:
42 Tach1 0x28 0x29 (Currently, this reflects the CPU
43 fan speed on all systems).
49 Reading the tach LSB locks the tach MSB.
50 The LSB Must be read first.
52 How to convert the tach reading to RPM.
53 The tach reading (TCount) is given by: (Tach MSB * 256) + (Tach LSB)
54 The SIO counts the number of 90kHz (11.111us) pulses per revolution.
55 RPM = 60/(TCount * 11.111us)
63 RPM = 60 / (2203 * 11.11111 E-6) = 2451 RPM
65 Obtaining the SIO version.
67 CONFIGURATION SEQUENCE
68 To program the configuration registers, the following sequence must be followed:
69 1. Enter Configuration Mode
70 2. Configure the Configuration Registers
71 3. Exit Configuration Mode.
73 Enter Configuration Mode
74 To place the chip into the Configuration State The config key (0x55) is written
75 to the CONFIG PORT (0x2E).
78 In configuration mode, the INDEX PORT is located at the CONFIG PORT address and
79 the DATA PORT is at INDEX PORT address + 1.
81 The desired configuration registers are accessed in two steps:
82 a. Write the index of the Logical Device Number Configuration Register
83 (i.e., 0x07) to the INDEX PORT and then write the number of the
84 desired logical device to the DATA PORT.
86 b. Write the address of the desired configuration register within the
87 logical device to the INDEX PORT and then write or read the config-
88 uration register through the DATA PORT.
90 Note: If accessing the Global Configuration Registers, step (a) is not required.
92 Exit Configuration Mode
93 To exit the Configuration State the write 0xAA to the CONFIG PORT (0x2E).
94 The chip returns to the RUN State. (This is important).
97 The following is an example of how to read the SIO Device ID located at 0x20
99 ; ENTER CONFIGURATION MODE
103 ; GLOBAL CONFIGURATION REGISTER
110 ; EXIT CONFIGURATION MODE
115 The registers of interest for identifying the SIO on the dc7100 are Device ID
116 (0x20) and Device Rev (0x21).
118 The Device ID will read 0X6F
119 The Device Rev currently reads 0x01
121 Obtaining the HWM Base Address.
122 The following is an example of how to read the HWM Base Address located in
125 ; ENTER CONFIGURATION MODE
129 ; CONFIGURE REGISTER CRE0,
133 OUT DX,AL ;Point to LD# Config Reg
136 OUT DX,AL;Point to Logical Device 8
140 OUT DX,AL ; Point to HWM Base Addr MSB
142 IN AL,DX ; Get MSB of HWM Base Addr
143 ; EXIT CONFIGURATION MODE