View previous topic :: View next topic |
Author |
Message |
thushi
Joined: 22 Feb 2006 Posts: 14
|
Download Hex data from PC |
Posted: Mon Jul 24, 2006 5:21 am |
|
|
Hi all,
I am using PIC16F877A, PIC C compiler to generate "Bell" sound. In order to do that I want to download data from PC to PIC16F877A flash memory. How can I do that? My data is stored in a column and saved in a text file. Can you please help me? (with source code if possible!)
Thank you |
|
|
John Morley
Joined: 09 Aug 2004 Posts: 97
|
|
Posted: Mon Jul 24, 2006 12:36 pm |
|
|
Hi,
You could transmit the data to the PIC over an RS-232 interface. Thus, your problem is two-fold. First, you need a small program running on the PC (written using VB perhaps?) to read your text file line-by-line and send each byte to the PC serial port. Then you need to write code for the PIC to receive the data byte-by-byte and store it in the Flash memory. Overall, a relatively simple project, but a really a lot to deal with if you are a beginner. _________________ John Morley |
|
|
skel Guest
|
Any links? |
Posted: Mon Jul 24, 2006 5:26 pm |
|
|
Good response bro'.
Do you have some links where I can do more reading on? |
|
|
John Morley
Joined: 09 Aug 2004 Posts: 97
|
|
Posted: Mon Jul 24, 2006 9:46 pm |
|
|
Hi,
I'd start with Google and do a search on "VB6 MSCOMM". This will provide you with lots of useful information on using VB6 to access the PC serial port. Next, I'd search this forum for "RS232" and "Int_RDA", etc. to learn about using the PIC serial port with CCS C. That should give you a good start. _________________ John Morley |
|
|
|