home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 24b / keyboard.zip / SETKEY.DOC < prev    next >
Text File  |  1985-10-25  |  2KB  |  55 lines

  1. Program:  SETKEY.COM  09/02/85  for the IBM AT only!!
  2. Written by Kevin M. Crenshaw - May 85 PC Tech Journal
  3. Modifications and documentation by Terry Barr. (CIS- 70406,377)
  4.  
  5. The default setting for the AT is equivalent to >SETKEY M2
  6.     
  7. The possible settings are A-Z, [, \, ], ^, _, ` and then 1-4.
  8. If you just type SETKEY you will get a default of A1.
  9.  
  10. ****************** SET TYPEMATIC RATE/DELAY (HEX F3) **********************
  11.  
  12.     The program issues the command 0F3h to the keyboard input port 60h.
  13.     It then sends the parameter to change the typematic rate and delay to
  14.     input port 60h.  The typematic rate and delay parameters are 
  15.     determined by the value of the byte following the command.
  16.     
  17.     Bit 7, is always 0.
  18.     Bits 6 and 5 serve as the delay parameter.
  19.     Bits 4, 3, 2, 1, and 0 serve as the rate parameter.
  20.     
  21.     The delay is equal to 1 plus the binary value of bits 6 and 5 
  22.     multiplied by 250 milliseconds.  This gives you delay factors
  23.     of 250, 500, 750 ms. or 1.00 second.  The AT has a default of
  24.     500 milliseconds.  
  25.  
  26.     The typematic period is equal to the following equation:
  27.                        
  28.     Period = (8+A) * (2^B ) * 0.00417 seconds, where A=binary value 
  29.     of bits 2,1, and 0 and B=binary value of bits 4 and 3.
  30.     
  31.     The typematic rate is 1/period.  Where period is determined by
  32.     the above equation.  The AT has a default typematic rate of 10.0.
  33.     
  34.     The following table shows the results:
  35.     
  36.     Letter    Bit    Rate        Letter    Bit    Rate
  37.     =================================================================
  38.         A    00000    30.0            Q    10000    7.5
  39.         B    00001    26.7            R    10001    6.7
  40.            C    00010    24.0            S    10010    6.0
  41.         D    00011    21.8            T    10011    5.5
  42.         E    00100    20.0            U   10100    5.0
  43.         F    00101    18.5            V    10101    4.6
  44.         G    00110    17.1            W    10110    4.3
  45.         H    00111    16.0            X    10111    4.0
  46.         I    01000    15.0            Y    11000    3.7
  47.         J    01001    13.3            Z    11001    3.3
  48.         K    01010    12.0            [    11010    3.0
  49.         L    01011    10.9            \    11011    2.7
  50.         M    01100    10.0            ]    11100    2.5
  51.         N    01101     9.2            ^    11101    2.3
  52.         O    01110     8.6               _    11110    2.1
  53.         P    01111     8.0            `    11111    2.0
  54.     =================================================================               _    11110    2.1
  55.         P    01