View previous topic :: View next topic |
Author |
Message |
dossdev
Joined: 08 Jul 2009 Posts: 24
|
PIC18f452 USB Question |
Posted: Wed Oct 21, 2009 12:53 pm |
|
|
I need to interface to a custom app running on a PC via USB. Normally I do this using the FTDI 232 chip which creates a virtual COM port on the PC. I'm planning on using an 18F part in my design anyway so I thought I might try and spare the expense of the FTDI chip and use the USB capability of the 18F452. I realize the PIC USB devices offer full USB support, however I only need to send/receive simple serial data to/from the PC. The FTDI parts are dead simple to use. My concern is whether or not I can get the PIC's USB to register with the PC as a virtual com port without a lot of grief. This is a make versus buy question. I can save a few bucks if I can rill the USB into the PIC.
Thanks to all in advance
-Dan |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Oct 21, 2009 12:58 pm |
|
|
Quote: |
so I thought I might try and spare the expense of the FTDI chip and use
the USB capability of the 18F452
|
It doesn't have any support for USB. To find 18F-series PICs that do
support it, go to this page:
http://www.microchip.com/maps/microcontroller.aspx
Set the prefix to: PIC18F
Set the USB Ch. to: 1
Wait a moment, and then look at the list of PICs in the box at the top.
Also, here is the Microchip Data Sheet Finder page:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2046
-----------------
Edit: Fixed link
Last edited by PCM programmer on Wed Oct 21, 2009 2:06 pm; edited 1 time in total |
|
|
dossdev
Joined: 08 Jul 2009 Posts: 24
|
|
Posted: Wed Oct 21, 2009 1:06 pm |
|
|
Sorry, wrong p/n. I would use something like an 18F2455, 2550, etc. |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Wed Oct 21, 2009 2:18 pm |
|
|
The existing USB_serial (CDC) examples are basically doing what you want. CCS provides also an *.inf file to install the device as virtual COM port. The FTDI VCOM and FTD2XX drivers have however still a few handling advantages. So I suggest to test the CCS CDC driver with your application enviroment. |
|
|
|