资料介绍
This Technical Brief describes the creation of a USB
device that can enumerate as a mouse or as a
keyboard, depending on which PS/2
®
peripheral is
plugged into it. The Soft Detach provision of the
PIC16C745/765 support firmware makes the creation
of such a device possible. Technical Briefs, TB055 and
TB056, describe in detail the implementation of a PS/2
to USB mouse translator and a PS/2 to USB keyboard
translator, respectively. This Brief will not discuss the
translation of either of these two devices. It focuses on
the Soft Detach function and modifying the descriptor
jump table for a device with multiple sets of descriptors.
TB058
Demonstrating the Soft Detach Function
With a PS/2 to USB Translator Example
Soft Detach is one of the most useful features on
Author: Reston Condit Microchip's PIC16C745/765 USB microcontroller. The
Microchip Technology Inc. reason the Soft Detach command is so useful, is that,
in applications such as this one, no special driver
needs to be created for the host. The more typical
INTRODUCTION