6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 6:48 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 24, 2018 1:27 am 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
So, I found this page by Daryl Rictor

http://sbc.rictor.org/io/pckb6522.html

Wired it up, bada bing, bada boom, I got a working PS/2 keyboard!

Well, I'm actually using an AT keyboard but they are basically the same.

Thanks Daryl!!!

I debated running the keyboard directly off the VIA. I thought a simple ATTiny or "Arduino-like" circuit could have easily translated the serial keyboard to parallel ASCII. But I knew the VIA was up to the task.

The only thing I had to change was the two lines defining where my PORTB was located.

I'm getting closer and closer to running EhBASIC off this 20x4 LCD module.

The next thing I need to fix is the line wrapping. My thoughts are to create an 80 byte buffer that is linear. Representing the four lines. Then, have my LCD write routines translate it into the different, weird, format the LCD needs.

Then, I need to integrate the DEL, cursor keys, etc.

Finally, convert my LCD mode to 4 bits so that I can move the keyboard setup to the on-board VIA of the Potpourri6502. Right now, I'm driving it off SLOT3 and using another VIA.


Attachments:
Keyboard2.jpg
Keyboard2.jpg [ 5.39 MiB | Viewed 3415 times ]
Keyboard.jpg
Keyboard.jpg [ 5.81 MiB | Viewed 3415 times ]

_________________
Cat; the other white meat.
Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 24, 2018 7:33 pm 
Offline
User avatar

Joined: Thu May 14, 2015 9:20 pm
Posts: 155
Location: UK
Well typed! :-)


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 25, 2018 2:12 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Nice.... Type ON! Perhaps it's time to get a UART working on your SBC and start using interrupt-driven code to drive it and the VIA timers as well. It's nice to see you making good progress with your SBC... I wish I had more free time to add more software functions and I/O devices to my latest SBC project :(

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 25, 2018 3:29 am 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
Thanks guys.

Oh yeah, serial is on my list. For some reason, I've had a terrible time getting my one 65C51 to work. I have the NXP chip too. But I messed up my prototype board for it and got frustrated.

But I will get it. :-)

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: