Home     Projects     Micro     Tools     Delphi     Developer     PHPScript     Software     Site map
HOME  
 
Add to Favorites
Print this page
   




USB Interface Microchip PIC18F4550 with CDC library


This example demonstration how to use USB PIC18F4550 with CDC library .I modified this from CDC example for PICDEM FS USB. I use Delphi to control PIC18F4558 via USB.To use Delphi example you must download TComPort component for delphi(in this site)

In delphi I want to control LED3 , LED4 and Read ADC Port0(RA0) then show in volt format and progressbar.

If you have PICDEM FS USB board you can use this example. But, if you don't have you can use my schematic I was designed for my test

To program PIC18F4550 chip you must set configuration bit
in PIC programmer software follow Pictire 2




Picture 1 Schematic for my test





Picture 2 Configulation bit for this article
   

Note :
I change some thing from orginal CDC library in file by add comment on line in autofiles\usbcfg.h

//#define USE_SELF_POWER_SENSE_IO
//#define USE_USB_BUS_SENSE_IO


Example consist of :
- CDC Examples I was modified from orginal compile with C18
- Delphi 6 example
- Driver WinXP/2K(original)




Download

Relate articles

Control stepping motor via USB with PIC18F4550
USB data acquisition with PIC18F4550



   
Copyright(c) 2005-2006 sixca.com, All right reserved.
Best view @ 800X600, IE 6.0 up   
Terms of Use  Privacy Policy