This is an example that demonstration how to control some devices via USB interface.The PC software program with delphi.
– CPU PIC18F4550 with full speed USB interface at 48MHz.
– USB 2.0 compliance
– Use on-chip USB driver
– Control 1 stepping motor.
– MPLAB C18 for firmware at USB devices side.
– Delphi 6 for PC Host software.
Control stepping motor via USB interface – [Link]