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 CCS Technical Support

PC detecting PIC as USB device

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



Joined: 29 Jul 2009
Posts: 154
Location: at work

View user's profile Send private message MSN Messenger

PC detecting PIC as USB device
PostPosted: Wed Sep 23, 2009 12:31 am     Reply with quote

I've never programmed for USB, and I'm just wondering if I can achieve what I need with the PIC I have.

I'm using the 16f684, and I want to add a USB port to it, with a program that automatically installs to the connected PC so it recognized the device, then connects to the internet and downloads a firmware upgrade for the PIC, and installs it to the PIC, so the PIC now has an updated program. This all needs to be automatic though. I don't want the user to have to do anything other than click "automatically install this hardware" after plugging the usb cable into their PC.

Can this be done without any external hardware? If not, what should I expect to look into? I've read up on USB connections, but couldn't find anything like this.
_________________
Vinnie Ryan
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Sep 23, 2009 1:45 am     Reply with quote

Quote:
Can this be done without any external hardware?
No. Not with a PIC16.
Read about PIC processors with USB interface, e.g. PIC18F4550.
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Wed Sep 23, 2009 8:18 am     Reply with quote

I'm pretty sure the PIC16F684 has no UART and can't reprogram itself; to reprogam, it has to be totally shut down. It's not the chip for the job.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Sep 23, 2009 8:43 am     Reply with quote

Take note of what John said above.

But if you did have a hardware UART and the chip was able to self-program,
I would humbly suggest a FTDI FT232R chip.
http://www.ftdichip.com/Documents/DataSheets/DS_FT232R_V204.pdf
With just a little external hardware it is up and running.
To the PC and PIC side it looks like a serial port.
That means boot loaders should work without changes.

That is probably the easiest way for a beginner.
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