| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Thermometer Project |
> I've always wanted to build a digital thermometer to interface with > my computer. When I was using DOS, I thought it would be a fairly > straightforward task of direct hardware manipulation to gather the > information from the device. With OS/2, I'm not so sure. Because > of the greater protection OS/2 affords the entire system, will I be > required to write a device driver to access the CPU ring that allows > direct port manipulation? Additionally, can someone provide some > information, perhaps direct experience, on the matter? Any help would > be appreciated. Thanks. If you want to access hardware ports directly you need to set "IOPL=YES" in your config.sys and then give the code segment that access the hardware "IO Priviledge Level" in a .DEF file. I don't recall the syntax for this, but it should be in the online docs that come with any compiler. (This is for hardware that is I/O mapped. If your hardware is memory mapped, you will probably need to do something that maps a virtual address to a physical address and then use that address. I'm less familiar with that though...) hank þ KWQ/2 1.2g þ This tagline stolen by KWQ Mail/2. --- WM v2.04/92-0551* Origin: GREATER CHICAGO Online!! (708) 895-4083 (1:115/895) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 115/895 109/347 2 7 3615/50 229/2 12/2442 711/409 54/54 711/808 809 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.