delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/17/01:49:48

From: boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au (Gregary J Boyles)
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer,alt.msdos.programmer
Subject: Key board LED's
Date: 15 May 1997 12:34:21 GMT
Organization: Comp.Sci & Comp.Eng, La Trobe Uni, Australia
Lines: 22
Distribution: world
Message-ID: <5levsd$5la@lion.cs.latrobe.edu.au>
NNTP-Posting-Host: lion.cs.latrobe.edu.au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

What is the procedure for changing their state (in intimate detail)?

I can change them by doing this : outportb(0x60,0xED);delay(50);outportb(0x60,0x03);
but when I try to do it in a test program for a key board handler it is a
total failure. 

I can set up a loop which will wait for bit 2 of port 0x64 to be cleared
(key board ready to recieve data).
I can send the 0xED command to port 0x60 and I know I have to wait for the
key board to acknowledge the data which I assume is port 0x60 showing
0xFA. I also know that once 0xED is acknowledged I must send the LED
flag and wait for acknowledgement. But all my efforts to are
a total failure.

One of two things happen. The key board, not my program, hangs and no
longer responds to key presses or my key board handler is continually
called and obtains the code 122 from 0x60. It still occassionally responds
to a real key pressed, in between the many 122's.

Is there a way to put the key board into auto with respect to LED's. It
sure would save me a lot of unecessary head aches.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019