Specifications
©
2008 Advanced Micro Devices Inc.
Sample Programs
AMD SB600 BIOS Developer’s Guide (Public Version) Proprietary
Page 81
; Logical Device Number (LDN) is now set to 04.
; Set Base address to 0228h in registers 60h and 61h of this LDN = 04
; Set MS byte of base address to 02h
mov dx,2Eh
mov dx,60h
out dx,al
mov dx,2Fh ; Super I/O index
mov al,02h ; MS byte of 0228h
out dx,al
; Set LS byte of the base address to 28h
mov dx,2Eh
mov dx,61h
out dx,al
mov dx,2Fh ; Super I/O index
mov al,28h ; MS byte of 0228h
out dx,al
; The environment (temperature, voltage etc.) registers can now be accessed
; through Base address + 5 (index), and base address + 6, i.e. 22Dh and 22Eh
mov ah, TemperatureLimit ; Selected through setup or OEM
; Set limit for 1st Thermistor
; Register 40h is for upper limit, register 41h is for lower limit
; If lower limit is set to 7Fh, then the temperature controller is in the comparator mode
mov dx,Sensor_Port ; The register is written through index at 22Dh
mov al,40h ; To set the upper limit
out dx,al
mov dx,Sensor_Port+1 ; The temperature value is written through 22Eh
mov al,ah ; Get the Temperature upper limit
out dx,al
mov dx,Sensor_Port ; The register is written through index at 22Dh
mov al,41h ; To set the lower limit
out dx,al
mov dx,Sensor_Port+1
mov al,7fh ; Lower limit of 7Fh to enable the comparator mode
out dx,al
; Set limit for 2nd Thermistor










