Avatar billede dj__christian Nybegynder
11. juli 2004 - 23:56 Der er 3 kommentarer og
1 løsning

Måling af volt på strømforynig..

Hej..
Findes der ikke et program som kan måle volt på strømforsynigen?

//Christian
Avatar billede inglenook Praktikant
12. juli 2004 - 00:08 #1
ikke helt sikker paa hvilken stroemforsyning du taenker paa, men Game porten er bare en simpel A/D converter. Maaske der findes noget til den.....
Avatar billede inglenook Praktikant
12. juli 2004 - 00:28 #2
fandt lige noget pa nettet:

The problem with working with the game port is that it is not all that trivial in a non-realtime OS. The hardware actually is quite dumb. Each ADC only contains a 555 (or 558 for dual ADC's per joystick port) multivibrator that pulses a voltage between the ADC pin and +5V. At the ADC pin is a timing capacitor that charges at different rates depending on how much voltage is given to it during each pulse (which varies according to the resistance applied across the pins). When the capacitor reaches TTL level 3.3v (or is that CMOS level?), it turns a transistor on, and set a gate high, which consequently sets a pin on IO port 0x201. Therefore, the amount of time between when you write an arbitrary byte to the port and when the bitmapped value returned by the port is high is related to the resistance applied. Neat eh? The only problem is that to read the port accurately, you would have to devote your CPU to polling the port, which is not practically, nor is it possible in a multitasking OS like Windows NT. So the API is not 100% accurate, but the MS boys did a good job anyway.
Avatar billede screem_brille Novice
15. juli 2004 - 02:19 #3
MBM (main board monitor) kan normalt klare denne opgave, kan bruges til næsten alle bundkort (til windows platformen)
Avatar billede dj__christian Nybegynder
12. august 2004 - 22:28 #4
Lukker SPM. screem_briller for point, da han var nærmeste på dt jeg søgte...
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



IT-JOB

Cognizant Technology Solutions Denmark ApS

Test Manager

Bunker Holding A/S

Director of Technology

IT-Universitetet i København

Linux-systemadministrator til IT-afdelingen