can i try this?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi,
i have already tried and succeeded in interfacing the PS2 keyboard to the ATMega8. But the bit processing in the clock interrupt seems to be taking a significant time slice from my other tasks. I was just glancing at the datasheet and came across the USART feature of the AVR unlike the 8051 which upports only UART. So my question is : can i use the synchronous reception feature of the hardware USART by connecting the clock from the keyboard to the XCK pin and the data to thr RX pin of the AVR?? any catches involved?

This topic has a solution.
Last Edited: Wed. Jul 8, 2015 - 12:11 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I did a Google search for "avr uart ps2" (without quotes) and got over 12,000 hits. Other variations would probably bring you even more hits.

This has also been discussed on this forum, so you might use the search here. I seem to remember that it can indeed be done.

Chuck Baird

"I wish I were dumber so I could be more certain about my opinions. It looks fun." -- Scott Adams

http://www.cbaird.org

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yep, I succesfully tried that just a month ago with a PS2 mouse. Of course, when sending data you have to use bit banging, but at least with the mouse I only needed to send data when initializing the mouse.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanks tuomas,
that was exactly what i was loking for.
:)