Anonymous
Not applicable
Jul 04, 2014
02:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 04, 2014
02:03 AM
I need built to support only USB or bothUSB and PS/2 interfaces,Please provide the “detect_if_ps2() ”DEMO,Thank you.
1 Reply
Sep 11, 2014
12:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 11, 2014
12:29 AM
Hi,
I think that routine is not available in the code . But here is an idea on how to detect whether it is PS/2 or USB.
At POR, the D+ and D- pins are in Hi-Z . You can constantly samples the pins to determine the device interface. If both D+ and D- are low for a certain period of time, the interface is USB. Otherwise, it’s PS2.
-sobi