*/
Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?
*/

CPU temp from w83697hf chip 1.0

*/

CPU temp from w83697hf chip 1.0

Submitted By: san1983
Rating: starstarstarstarhalf star (Rate It)

A simple cpu & mbm temperature reader from winbond w83697hf
chip. This program is a good example how to access directly to
I/O under window XP


NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot

No Image

Details

File Name:
23643.zip
Product homepage:
Order page:
Languages:
Unknown
Platforms:
CPU
Release date:
10/10/2002
License:
Unknown
Size:
489 KB
Price/Fee (US$):
Unknown
Number of downloads:
15708

Comments (8)

Awesome starstarstarstarstar   Posted on Monday, March 31, 2003

Awesome

W83697HF starstarstarstarstar   Posted by: KK on Sunday, October 24, 2004

Can you in e-mail to tell me , how to download W83697HF Color Card , Please

.. starstarstarstarstar   Posted on Thursday, March 31, 2005

works perfect and is very small

ok! starstarstarstarstar   Posted by: sapero on Monday, April 11, 2005

works fine on XP (drv:userport) :)

Ported to linux (Not rated)   Posted by: Matthue Gera on Tuesday, May 31, 2005

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <asm/io.h>

// By the manual we have two ports to use
// 0x295 - the INDEX port and
// 0x296 - the DATA port
#define INDEX 0x295
#define DATA 0x296

#define BANK_SET 0x4e // lowest three bitti set a bank, in manual lk97 and lk109
#define CPU_TEMP 0x50 // BANK 0 0x4e = xxxxx001
#define MBM_TEMP 0x67 // 0x4e = xxxxx000

main(int argc, char **argv)
{
if (ioperm(INDEX,1,1))
fprintf(stderr, "Couldn't get the port at %x\n", INDEX), exit(1);

if (ioperm(DATA,1,1))
fprintf(stderr, "Couldn't get the port at %x\n", DATA), exit(1);


outb(BANK_SET, INDEX);
outb(inb(DATA) | 0x01, DATA);

outb(CPU_TEMP, INDEX);
printf("CPU %d\n",inb(DATA));

outb(BANK_SET, INDEX);
outb(inb(DATA)&0xf8, DATA);

outb(MBM_TEMP, INDEX);
printf("MBM %d\n",inb(DATA));

}

Genius ! (Not rated)   Posted on Friday, February 17, 2006

Well done. This is exactly what I'm after !!

This is a piece of crap (Not rated)   Posted on Sunday, April 22, 2007

THis is the worst it will blow up your computer its a virus (trojan horse downloader)

Comment starstarstar   Posted by: Dharmesh on Saturday, August 04, 2007

My PC(Windows XP) has W83627EHF chip.. i run this code but get FF which is incorrect value.

what's tha problem ?

I boot the PC in LINUX and run again this code but same result..

Next i get utility ExploChip and try to read to ISA by 295 and 296 but same FF..

can any budy sugest me ?

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.