This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keyboard interfacing

how do i interface a alphanumeric key board with a st10f168 controller in a keil board.
thanks

  • Sounds like you already have got a keyboard. If it's a matrix keyboard, you simply connect it to unused i/o ports of the ST10F168 and write your scanning/debouncing routines (you may need to add pull-up or pull-down resistors). Also have a look at the following thread:
    http://www.keil.com/forum/docs/thread1397.asp
    Regards,
    - Mike

  • If you mean 'keyboard' as in a 'PC' keyboard, it is a bit more complicated. The PC keyboard uses a clocked open collector bidirectional interface with a protocol going back to the first IBM PC. The transfer is usually at about 12.5 kbaud and the data is coded. You can use the clocked serial port of the '168 with some tricks to maintain the protocol. This is not a trivial task. A good starting point is looking at one of the books from the '80s on PC architecture and the original IBM technical manuals.
    Best luck