Mouse / Keyboard interface

Assembler, C/C++ related topics
simon
Site Admin
Posts: 744
Joined: Thu Sep 13, 2012 9:35 am
Location: Luedenscheid, Germany
Contact:

Re: Mouse / Keyboard interface

Postby simon » Mon Sep 09, 2013 10:23 am

Hi Chris,

actually the code will hang before one tries so receive data from the mouse. As the Atmega tries to send commands very early on startup the moment for checking a timeout is when it waits for the mouse taking over the CLK line. And you are right. The posted code was pre-pre-pre-alpha so without any error handling and stated as buggy. :)

Good to know. I may borrow a few mice from work to test them.

Simon

simon
Site Admin
Posts: 744
Joined: Thu Sep 13, 2012 9:35 am
Location: Luedenscheid, Germany
Contact:

Re: Mouse / Keyboard interface

Postby simon » Tue Sep 10, 2013 8:52 am

Hi,

I have attached the actual firmware for the Atmega8. This works for me at the moment. Latter I want to switch from sending received keyboard data as Ascii to scan codes...

Simon
Attachments
keyb_mouse-0.0.2.tgz
Less buggy AVR firmware.
(8.1 KiB) Downloaded 1045 times


cron