CY4623:63803Automatic Bus Detection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I need  built to support only USB or bothUSB and PS/2 interfaces,Please provide the “detect_if_ps2() ”DEMO,Thank you.

0 Likes
1 Reply
ShopithamR_26
Employee
Employee
25 replies posted 10 replies posted 5 replies posted

 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

0 Likes