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

Download Hex data from PC

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



Joined: 22 Feb 2006
Posts: 14

View user's profile Send private message

Download Hex data from PC
PostPosted: Mon Jul 24, 2006 5:21 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 24, 2006 12:36 pm     Reply with quote

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?
PostPosted: Mon Jul 24, 2006 5:26 pm     Reply with quote

Good response bro'.
Do you have some links where I can do more reading on?
John Morley



Joined: 09 Aug 2004
Posts: 97

View user's profile Send private message

PostPosted: Mon Jul 24, 2006 9:46 pm     Reply with quote

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
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