AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

core2duotemp.c to core2duotemp.pas

Ein Thema von hathor · begonnen am 5. Aug 2007 · letzter Beitrag vom 31. Mai 2008
Antwort Antwort
Seite 4 von 7   « Erste     234 56     Letzte »    
Razor
(Gast)

n/a Beiträge
 
#31

Re: core2duotemp.c to core2duotemp.pas

  Alt 27. Aug 2007, 09:48
I mean i already have a driver and no i dont understand that code in C.
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#32

Re: core2duotemp.c to core2duotemp.pas

  Alt 27. Aug 2007, 13:21
Can somebody translate this so i can test it with my driver?
  Mit Zitat antworten Zitat
devidespe

Registriert seit: 7. Sep 2006
Ort: Berlin
434 Beiträge
 
Delphi 10.4 Sydney
 
#33

Re: core2duotemp.c to core2duotemp.pas

  Alt 27. Aug 2007, 18:32
@Razor:

I would say its very complex to translate C code into Delphi, and another problem is the driver you have. Every driver contains other methods with different calling parameters, so nobody knows how to access your specific driver.

The simplest way is to read the Intel® 64 and IA-32 Architectures Software Developer's Manual, where chapter 13 (Power And Thermal Management) contains the needed ways to gain the core temperatures. Before that you have to check the processor requirements, and if they are available (via the CPUID command, some bits in the Feature capabilities). The CPUID command is accessable in combination with Delphi itself, for the MSR access you need a device driver with ring 0 access and a delphi application with admin rights to load it.

If you have the routines to read MSR and CPUID functions, the temperature readout is quite simple. Just read the chapter 13 within the above Intel document. If there are other questions just ask. But be sure that nobody translates C code or wrote the Delphi code for you.

Hope that helps...
Devid
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#34

Re: core2duotemp.c to core2duotemp.pas

  Alt 27. Aug 2007, 18:35
I posted a new topic go look there it contains full source code for this problem.
  Mit Zitat antworten Zitat
alice

Registriert seit: 13. Mär 2005
7 Beiträge
 
#35

Re: core2duotemp.c to core2duotemp.pas

  Alt 1. Sep 2007, 19:02
Zitat von Razor:
I posted a new topic go look there it contains full source code for this problem.
where?

cu

alice
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#36

Re: core2duotemp.c to core2duotemp.pas

  Alt 9. Nov 2007, 10:33
Nonono wroong...ill explain it how it works

There are 2 registers $19C and $EE

If we want to check if a intel core cpu has dts we first use MSREAD command we check and we read $19C but the return must be 1 couse if its 0 the cpu dosent have DTS( Digital Thermal Sensor ).

Next up we try to detect the Tjunction wich on core cpus is 85 and 100 C with this register $EE.

so if the register $EE reads 0x40000000 then the Tjunction is 85C else its 100C.

And folow a simple formula : Core temp = Tjunction - Delta

And since i study electronics these stuff is similar in Zener diode and Silicon Diode .

My Core temp for Intel's core cpuz is 85%.
  Mit Zitat antworten Zitat
hathor
(Gast)

n/a Beiträge
 
#37

Re: core2duotemp.c to core2duotemp.pas

  Alt 9. Nov 2007, 11:05
In my first post, You can read:

// and register 0xEE if bit 30 of reg is 1 then reftemp 85 degrees C else 100 degrees C...
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#38

Re: core2duotemp.c to core2duotemp.pas

  Alt 9. Nov 2007, 11:06
Yes but how do we get Delta?
  Mit Zitat antworten Zitat
hathor
(Gast)

n/a Beiträge
 
#39

Re: core2duotemp.c to core2duotemp.pas

  Alt 9. Nov 2007, 11:14
// temp = reftemp - value of reg 0x19C
temp = reftemp - data;

MSR 0x19C contains the temperature data, this data is represented as Delta in C° between current temperature and Tjunction.
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#40

Re: core2duotemp.c to core2duotemp.pas

  Alt 9. Nov 2007, 11:22
Those who have core 2 duo please test this...
Angehängte Dateien
Dateityp: rar project1_591.rar (460,3 KB, 52x aufgerufen)
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 4 von 7   « Erste     234 56     Letzte »    


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:49 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz