Re: PS/2 mouse interface with 8052 microcontroller

From: CBarn24050 (cbarn24050_at_aol.com)
Date: 01/16/05


Date: 15 Jan 2005 23:52:10 GMT


>Subject: PS/2 mouse interface with 8052 microcontroller

>
>I am tring to interface PS/2 mouse (optical) with a 8052 (AT89S52)
>microcontroller. From what I get from the internet without adding any
>extra hardware I cannot interface the mouse directly with the UART
>(serial port) of the microcontroller (mouse has data and clock lines;

The mouse generates the clock, the data is latched on one of the edges,I forget
which, when it sends data to the pc and the other edge when the pc sends data
to it, just like a keyboard. You need to connect the clock line to an interrupt
input and the data to a bidirectional port bit. Then you need to write the
software. You could just use an old mouse that sends ascii or buy a ps2-ascii
converter.



Relevant Pages

  • Re: is it possible to interface SPI to serial?
    ... > computer through the serial port. ... > microcontroller that has both a uart and an spi interface between the ... Don't overlook parts that have UARTs but no SPI -- SPI ...
    (sci.electronics.design)
  • Re: Fast clock and slow modem on laptop
    ... In the Usenet newsgroup comp.os.linux.hardware, ... I'd bet if you googled for the terms "Linux clock fast" and looked at ... >modems with the USB adapter rather than the direct hookup to the serial ... >I needed the adapter for the laptop because it doesn't have a serial port. ...
    (comp.os.linux.hardware)
  • Re: Need help in converting YUV to RGB using OV7620
    ... PCLK at 5Mhz. ... Firstly you have NOT checked that your microcontroller can accept data ... ONE clock edge, whilst UV is clocked out at 10MHz by using the rising ... work either on BOTH edges of the PCLK signal or to two ports that can ...
    (comp.arch.embedded)
  • Re: Writing pins to the RS232
    ... A serial port does not have data ports 0-n. ... So you slap a chip on between the UART and the RS232 pin that translates the voltages for you. ... UART (usually built into the microcontroller) ... I could use python to communicate serially to a BASIC stamp or a Javelin stamp and then use the stamp to set however many pins as 0's or 1's but should it be that hard to do with python. ...
    (comp.lang.python)
  • Re: Help me solve this design problem PLEEEZ
    ... any single chip microcontroller could handle the job - the ... >> clock the microcontroller at 32.768kHz. ... which added with some logic gates allows the first timer to work ...
    (sci.electronics.design)

Loading