??? 07/13/06 18:41 Read: times |
#120224 - How to do it. Responding to: ???'s previous message |
Two ways.
1. Use a spare pin the PS/2 to USB adapter to feed a signal back to the uC to tell that the adapter is present (or not) and thus you can select the mode. Disadvantage: you need another uC pin. 2. Use the supplied examples from Cypress. BUT in order to do PS/2 and USB on the same pins with just a pass-thru (wiring only) adapter your USB controller must allow you to control the D+ and D- pins and you may need to disable any pullups/downs required for USB speed detection. Plus you can't have any additional pullupsdowns active when USB is selected because that will really foul things up. I doubt (but haven't checked) the D12 will let you do that. I think 80% of the USB keyboard market is Cypress EnCore and that's where you'll find the examples I cited earlier. The Encore allows you to control the pins sufficiently to achieve what you want to do. It's a dog of a micro though. ;-) GB |