View previous topic :: View next topic |
Author |
Message |
Matt Guest
|
chip reprogramming thru RS232 |
Posted: Sun Aug 06, 2006 7:13 am |
|
|
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
|
|
Posted: Sun Aug 06, 2006 4:30 pm |
|
|
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
|
|
Posted: Tue Aug 08, 2006 9:21 am |
|
|
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
|
|
Posted: Tue Aug 08, 2006 9:47 am |
|
|
Do a web search for these keywords: PIC bootloader |
|
|
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
|
Posted: Wed Aug 09, 2006 12:48 am |
|
|
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
|
|
Posted: Wed Aug 09, 2006 12:51 am |
|
|
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? |
|
|
|