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 support@ccsinfo.com

EEPROM Inserting 00s

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



Joined: 23 Jun 2009
Posts: 2

View user's profile Send private message

EEPROM Inserting 00s
PostPosted: Wed Feb 17, 2010 1:21 am     Reply with quote

Hi,

I am using the following pre compiler directive on a PIC18F2423:
Code:

#ROM 0xF00000 = {78,79,32,77,69,83,83,65,71,69,32,32,32,32,32,00}

In ASCI this should read "No Message " but when I look at the actual bytes that the .hex is writing to the PIC it shows up as:

0000- 4e 00 4f 00 20 00 4d 00
0008- 45 00 53 00 53 00 41 00
0010- 47 00 45 00 20 00 20 00
0018- 20 00 20 00 20 00 00 00

There is a space between each character and 00s are being written, I cant figure out why this is happening.

Any help would be apprecieated.

Thanks,
Zach
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 17, 2010 1:27 am     Reply with quote

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=25373
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