Couch
Joined: 20 Jan 2004 Posts: 9 Location: Ottawa, Ontario Canada
|
Serial Data and EEPROM storage - ASCII or Binary |
Posted: Wed Mar 10, 2004 12:14 pm |
|
|
Hello,
Been using CCS for a few months now - this forum has been a tremendous help to getting started! I hope to be contributing more in near future after to getting to be a little more dangerous ....
I have a question that hopefully some of you guys can comment on. I am writing an application where multiple pics will share serial data (485 network), and some of them will have the capability to store data using serial ram (RAMTRON). I am wondering if it is worth the trouble to convert all numerical data to a string format for serial transmission and eeprom storage? Here are the pros and cons of converting to ASCII as I see it:
PROS
- easier to debug (you could see the results using terminal and eeprom readers)
- can make use of standard <STX> and <ETX> characters for serial data
CONS
- requires more code (ie more PIC memory) for string conversions
- serial packets are larger, and each value requires more memory space to save results
I'm leaning towards not converting the data to string format in order to make the code leaner and faster, but would like to hear what you guys think about this.
Thanks
Dave |
|