Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. IO

IO

Scheduled Pinned Locked Moved Hardware & Devices
questiontutorial
4 Posts 4 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Niklas Ulvinge
    wrote on last edited by
    #1

    How are the mouse keyboard and screen cables built up? And what is the output of them? If I for example press K on the keyboard, what happends? The PROgrammer Niklas Ulvinge aka IDK

    T A 2 Replies Last reply
    0
    • N Niklas Ulvinge

      How are the mouse keyboard and screen cables built up? And what is the output of them? If I for example press K on the keyboard, what happends? The PROgrammer Niklas Ulvinge aka IDK

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      this[^] or this[^] might help you... if not, google on PS2 protocol...


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      1 Reply Last reply
      0
      • N Niklas Ulvinge

        How are the mouse keyboard and screen cables built up? And what is the output of them? If I for example press K on the keyboard, what happends? The PROgrammer Niklas Ulvinge aka IDK

        A Offline
        A Offline
        Alexander M
        wrote on last edited by
        #3

        If you press K there will be an interrupt, and the device driver will read some port data which represents a scan code. This scan code is translated to an ascii code (the current code page is used for translation). Isn't it easy? ;P Don't try it, just do it! ;-)

        T 1 Reply Last reply
        0
        • A Alexander M

          If you press K there will be an interrupt, and the device driver will read some port data which represents a scan code. This scan code is translated to an ascii code (the current code page is used for translation). Isn't it easy? ;P Don't try it, just do it! ;-)

          T Offline
          T Offline
          Toby Opferman
          wrote on last edited by
          #4

          The scan code will also be dependent on the mode the keyboard is in, XT or AT. You will actually also get 2 scan codes. The first is termed a "make code" which occurs when the key is pressed. The second is a "break code" which is sent when the key is released. In XT mode this is simply distinquished by setting the high bit of the scan code for a break code and clearing it for a make code. You then have two sets of extended keys which are "E0" and "E1" prefixed followed by one or two more scan codes to represent the key. AT protocol is a bit different. Make codes and Break Codes I believe are prefixed instead of setting the high bits (if my memory serves me correctly). As far as I remember, Windows 9x still actually set the keyboard into XT mode so break codes and make codes were determined using the high bits (and some keyboards would send E1/E0 for a break code you'd have to do special detection, I believe that perhaps the PC98 may have done this but I don't remember, been a while since I wrote a keyboard filter). 8bc7c0ec02c0e404c0cc0680f7018827ebee

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups