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

chip programming thru USB

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







chip programming thru USB
PostPosted: Sat Jul 22, 2006 12:16 pm     Reply with quote

I have desktop computer and some test program on PC.
Computer is connected with external device over USB.

How can i reprogram the chip thru applikation running on computer applikation. E.g. i want to add new values on in some test program on the chip ( like, instead 1 cycle, user can choose between 2-4 cycles ).

What steps do i have to follow to make this comunication / reprograming work ?
Guest








PostPosted: Sat Jul 22, 2006 12:19 pm     Reply with quote

Sorry for typing error :

How can i reprogram the chip thru applikation running on computer. E.g. i want to add new values in some test program on the chip ( like, instead 1 cycle, user can choose between 2-4 cycles ) and then this MCU program should accept this new parameters and continue to work in this new mode...
A different guest
Guest







PostPosted: Sat Jul 22, 2006 3:07 pm     Reply with quote

You could do this through USB. But I think you are misunderstanding the problem.

The application on the PC 'could' talk to the pic via a number of different protocols. SPI, I2C, RS232, USB, even Ethernet, but you need to make sure your pic can undersand the same protocol.

SPI, I2C and RS232 are easy because they are natively used by the pic.

But the PC doesn't have a dedicated post for SPI or I2C. You can work around that by 'fooling' the parallel port to do this work. But I'd recommend RS232 since the PC is set up for it.

USB and Ethernet are difficult b/c most pics do not 'speak' them natively. So what you can do is put a chip in the middle that converts the signals to RS232 or SPI for example. This is fine, but for most people is way easier, cheaper, and faster just to use RS232 (serial port) from the start.

You could try reading up on bootloaders or RS232-to-pic communication
iso9001



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

PostPosted: Sat Jul 22, 2006 4:28 pm     Reply with quote

If you just want to program and debug then use an ICD. CCS makes one ya know.
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