CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC18f452 USB Question

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dossdev



Joined: 08 Jul 2009
Posts: 24

View user's profile Send private message

PIC18f452 USB Question
PostPosted: Wed Oct 21, 2009 12:53 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 21, 2009 12:58 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Oct 21, 2009 1:06 pm     Reply with quote

Sorry, wrong p/n. I would use something like an 18F2455, 2550, etc.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Oct 21, 2009 2:18 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group