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

Simple question - Custom variables from PC software

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



Joined: 30 Oct 2006
Posts: 2

View user's profile Send private message

Simple question - Custom variables from PC software
PostPosted: Thu Jan 11, 2007 5:47 am     Reply with quote

Not quite sure how to phrase this as I am not a programmer Smile

I have a project that I would like users to be able to customize. For example the user can specify the label of a sensor in a software program, click "Upload to PIC" and that label will then be used by the PIC.

Is this sort of thing possible with the PIC? Would the software program have to write the variables to the EEPROM of the PIC and then the PIC read the values back out (so they stay static).

Is the only way to achieve this through boot loading new firmware?

It would be much appreciated if I could be pointed in the correct direction Smile Just a keyword so I can go off and research would be great!
Guest








PostPosted: Thu Jan 11, 2007 7:43 am     Reply with quote

Hi,

This would be fairly easy actually. You could code the PIC to receive commands from the PC containing the label data that you want. The PIC would store this data to the internal EEPROM so that it would be available on powerup also. The PC could send something like this:

$LAB1 Voltage<CR>

The PIC would interpret this as a command to make 'Label1' show the text 'Voltage'.

Does that help?

Tim
Zoltarc



Joined: 30 Oct 2006
Posts: 2

View user's profile Send private message

PostPosted: Thu Jan 11, 2007 5:06 pm     Reply with quote

Great thanks!
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