Hi AllyCat and Hippy,
Thank you both for sharing your knowledge and guiding us beginners who usually have lots of questions, because answering one question raises twice as many ore lol
I had read the kbin and keyin command pages on the website, and In the kbin command page (
https://picaxe.com/basic-commands/advanced-io-interfacing/kbin/)
It stated the following:
Effect of Increased Clock Speed
This command will automatically use the internal 4MHz resonator for correct operation.
This made me think I could get away with using an 08M2 at 32Mhz and drop down to 4Mhz during any communication procedures (with the ps2 device), Its all conjecture really since I'm new-ish (returning after about 10 yrs due to being busy all the time).
And the info which Allycat pointed out, I'd come across that in my search for more info.
These are the two best (for me) internet pages which i came across that I was using to understand everything about communicating with a PS2 keyboard
wiki.osdev.org
This is how far I had got before I stopped and looked at the 14M2 instead of the 08M2
The attached program file kind of shows the route I was taking...
Maybe my code will give you a laugh, because its non standard, but I just tend to put it down as I think and iron out issues later.
I'm sure it can be improved/optimised lots (and bugfixed lots too!), and i'm not even sure if it (the code) would logically work.....
But I like to keep busy and it helps stop my grey matter from conking out lol
Its not finished, since I wanted to support most of the ps2 keyboard keys rather than just the common ones.
But as things stand, and heeding the advice of experienced members, it looks like I will need to start afresh and use the 14M2 ...