+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Advanced Member level 5
    Points: 15,909, Level: 30
    Achievements:
    7 years registered
    neazoi's Avatar
    Join Date
    Jan 2008
    Location
    Greece
    Posts
    3,229
    Helped
    12 / 12
    Points
    15,909
    Level
    30

    PS/2 keyboard DIY from scratch ?

    Hi a project of mine accepts a ps2 keyboard for input.
    To avoid having to carry a ps2 keyboard with me, I want to build (not to buy) a mini version of a ps2 keyboard and include it inside the project.
    Currently, the only project I am aware of are this
    https://translate.googleusercontent....0CXTtx9QT3YHnQ
    And its english keyboard encoding here (also attached) http://nicotak.com/keyboard/firm008eng.zip

    The problem is that by looking at the code in the english version (attached) he uses combination for ESC, F1, F2, F3, F4 keys. The combinations are

    // ctrl + 1 = F1
    // ctrl + 2 = F2
    // ctrl + 3 = F3
    // ctrl + 4 = F4
    // ctrl + E = ESC

    But the ctrl key is used for another purpose in my project.
    Can you please help me to change the ctrl to another key, for example ALT?
    Last edited by neazoi; 12th February 2019 at 12:09.
    Professional engineering is the top, but amateur engineering is more fun.
    It is when you cross the barrier between these two, that things become really fascinating!

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 69,598, Level: 64
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    14,225
    Helped
    3250 / 3250
    Points
    69,598
    Level
    64

    Re: PS/2 keyboard DIY from scratch ?

    Hi,

    Are you sure you want PS/2 interface?

    If so: It should be rather simple:
    * The PS/2 hardware of the interface is simple and you will find lotīs of information about it. Simply do a search. Even wikipedia has enough of information.
    * the PS/2 protocol is also simple. The codes can be found easily in the internet, too. Just do a search on "PS/2 keyboard codes"

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 5
    Points: 15,909, Level: 30
    Achievements:
    7 years registered
    neazoi's Avatar
    Join Date
    Jan 2008
    Location
    Greece
    Posts
    3,229
    Helped
    12 / 12
    Points
    15,909
    Level
    30

    Re: PS/2 keyboard DIY from scratch ?

    Quote Originally Posted by KlausST View Post
    Hi,

    Are you sure you want PS/2 interface?

    If so: It should be rather simple:
    * The PS/2 hardware of the interface is simple and you will find lotīs of information about it. Simply do a search. Even wikipedia has enough of information.
    * the PS/2 protocol is also simple. The codes can be found easily in the internet, too. Just do a search on "PS/2 keyboard codes"

    Klaus
    I know, but I have not found a "complete" ps2 keyboard online. I do not want to design my own currently as there is no time.
    If I could only replace the CTRL key with the ALT in the key combinations, that should be fine.

    I attach you the C code.
    I may be able to tweak it myself but a help from an experienced member would help.

    By the way how can I build the hex for it, which compiler to use? (free)
    Professional engineering is the top, but amateur engineering is more fun.
    It is when you cross the barrier between these two, that things become really fascinating!



--[[ ]]--