PS/2 implementation on JL16

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PS/2 implementation on JL16

2,723 Views
popup
Contributor I
hi,
 
I want to implemente PS/2 interface to JL16, so I can use standard keypad instead of a on board key matrix.
 
I need to generate software interrupt, but I don't know how to ,on 908JL16.
 
Regards,
popup
Labels (1)
0 Kudos
6 Replies

465 Views
peg
Senior Contributor IV
Hi popup,
 
Here is a little project I did that may help you out here. I have discussed it before on these forums and poted it as well but can't find it now.
This actually takes a old style PC keyboard as input and outputs ASCII equivalent out the serial port.
 


Message Edited by peg on 2007-05-14 06:34 PM
0 Kudos

465 Views
bigmac
Specialist III
Hello popup,
 
A further reference is application note AN1723 "Interfacing MC68HC05 Microcontrollers to the IBM AT Keyboard Interface".  While it refers to an earlier MCU, the assembler code presented is backward compatible with the HC908 devices, if a little inefficient (no stack usage, etc.).
 
Regards,
Mac
 
0 Kudos

465 Views
bigmac
Specialist III
Hello,
 
Yet another reference to AT keyboard interfacing.
Regards,
Mac
 
0 Kudos

465 Views
peg
Senior Contributor IV


bigmac wrote:
Hello,
 
Yet another reference to AT keyboard interfacing.
Regards,
Mac
 


The CW project I posted earlier is the project referenced above converted to C and CW.
A reference to the original (above) is made within the project (in main.c)

 
0 Kudos

465 Views
popup
Contributor I
Hi, peg
 
Thank you for your code and adivise. However I have to move to another project recently and maybe we can discuss the PS/2 in the futher. I believe I will.
 
In fact, I have to explain something about me, I am now working on projects which were originally implemented on atmel avr chips and I need to port them to HC908/9S12 mcu.
 
I feel really annoying that I don't know how to do it with HC908 or with CW5.1 and embeded c language . I fell there are too much to learn in a short time. 
 
My questions looks simple and your responses are always so soulful,I really want to thank you greatly!
 
Regards,
popup
 
 


Message Edited by popup on 2007-05-16 01:20 AM
0 Kudos

465 Views
Alban
Senior Contributor II
Hello,

SWI assembly instruction is the instruction meaning SoftWare Interrupt.

asm SWI; //call the instruction in CodeWarrior in C

SWI has its interruptor vector.

Cheers,
Alban.
0 Kudos