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

chip reprogramming thru RS232

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







chip reprogramming thru RS232
PostPosted: Sun Aug 06, 2006 7:13 am     Reply with quote

I think it's better to put this question into different topic so it would be easy to find. Now this could be some general information for this theme.
Anyway, this is extended version of the "chip programming thru USB" topic.

-------------------------------------------------------------------------
I have read the topic from the "different guest" and "iso9001" and i have decide to go with RS232 option. Now, i have written JAVA program for some serial user interface and in this program you have something like editable table with some input and some output values you can change and after you hit confirmation key, this new data should be sended to chip .Chip should make calculation, and some other stuff, and send this new data to PC, where the user can see the changes ( signal is described like two lines ).

Program on the chip:
Calculation and convertion of the AD - DA signal
Sending new data min. 90 times per minute to PC

Program on the PC
Receiving data and sending new, user changed data, to chip.
Refreshing new data and displaying the changes


This should be realtime application, becuse user on the PC can change the values anytime and he should get the new, calculated data in less then second.

OK. this is the first look into "problem" so if you have time, please write your suggestions.

Matt
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 06, 2006 4:30 pm     Reply with quote

Quote:

In this program you have something like editable table with some input
and some output values you can change and after you hit confirmation
key, this new data should be sended to chip .

Chip should make calculation, and some other stuff, and send this new
data to PC, where the user can see the changes.


Look at these examples for some ideas.
c:\program files\picc\examples\ex_intee.c
c:\program files\picc\examples\ex_voice.c
c:\program files\picc\examples\ex_email.c
They take data from the PC, via the serial port, and write it to eeprom
inside the PIC. That's part of what you want to do. The last two
examples are too complicated, but they may help.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Tue Aug 08, 2006 9:21 am     Reply with quote

Is that actually possible?

To program (= rewrite the flash memory like when you use the ICD programmer via the MCLR interface) the PIC via RS232?

Is that complicated? It would be easy when that is possible instead of using a programming connector.

Any hints tips or so ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 08, 2006 9:47 am     Reply with quote

Do a web search for these keywords: PIC bootloader
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 12:48 am     Reply with quote

I found this:

http://www.microchipc.com/PIC16bootload/

It looks like a programmer, but it works via 2 wires Tx and Rx of the PIC.
What I am actually interested in, is the software on the PC side.
And you can't just send bytes to the PIC's serial port to program it?
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Wed Aug 09, 2006 12:51 am     Reply with quote

So the bootloader runs on the PIC. Then you can send the hex program via RS232.

Then when you want to reprogram, you have to reload the bootloader via an ICD programmer?
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