Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/12/06 17:32
Read: times


 
#120115 - Doesn't seem to hard
Responding to: ???'s previous message
Onyau Chan said:
Did anyone know how to auto-detect USB and PS2? I have a project to build a dual interface keyboard using normal 8051 MCU and a Philips SIE, PDIUSBD12. I can use any 2 pin to do the PS2 interface. The first step needs to detect the interface. If it is USB, I will enable the SIE. Otherwise, the SIE will remain disabled. Did anyone know how to detect the USB signal with MCU?


The PS/2 protocol uses one line as data and the other as a clock. The USB protocol uses differential signals which means you would expect one line to be the inverse of the other. The nature of the two protocols and what you'd expect to see on the two lines is very different. You should be able to detect them by just looking at those two lines and detecting what's coming in. If you see the two input lines moving together but inversely, it's most likely USB. If the two lines are moving independently and not necessarily inversely, it's probably PS2.

That said, are you really going to try to bit-bang USB? Sounds like a mess.

Regards,
Craig Steiner


List of 28 messages in thread
TopicAuthorDate
Auto-detecting USB and PS2            01/01/70 00:00      
   Power            01/01/70 00:00      
      Power didn't tell            01/01/70 00:00      
         So it's on the same connector ?            01/01/70 00:00      
            I will try            01/01/70 00:00      
            Too long to detect            01/01/70 00:00      
            nope            01/01/70 00:00      
         Mechanical solution            01/01/70 00:00      
            Cable is fixed            01/01/70 00:00      
               How to do it.            01/01/70 00:00      
                  USB Expert            01/01/70 00:00      
            Why not ...            01/01/70 00:00      
         why not put the 'intelligence' into the adapter            01/01/70 00:00      
            Cost/complexity issues            01/01/70 00:00      
               then go the other way            01/01/70 00:00      
                  Still need hardware            01/01/70 00:00      
                     you\'ll need that anyhow, how else?            01/01/70 00:00      
            Agree with Chris            01/01/70 00:00      
               Which is why I suggested Cypress            01/01/70 00:00      
      float to ascii            01/01/70 00:00      
         Start a New Thread and ask again            01/01/70 00:00      
         start a new thread!            01/01/70 00:00      
   Doesn't seem to hard            01/01/70 00:00      
      D+ and D- is not differential at the begining            01/01/70 00:00      
      nope, II            01/01/70 00:00      
   re: autodetect            01/01/70 00:00      
   I bought on of these at radio shack.            01/01/70 00:00      
      speed detect            01/01/70 00:00      

Back to Subject List