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

Built-in Function, read_program_memory()

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







Built-in Function, read_program_memory()
PostPosted: Thu Oct 25, 2007 4:12 am     Reply with quote

I want to use the built-in function read_program_memory() with PIC16F690. I use it to read out the program memory for calculating CRC16.
In my program I want to calculate CRC16 after power on and after software reset. In case of power on, all is ok.
After a reset, this function doesn't read memory at the given adress but at last used adress.

May someone help me?

Best regards
Matthias
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 25, 2007 12:29 pm     Reply with quote

The function interface looks like this:
Quote:
read_program_memory(address, buffer, count);

Where do you get the address parameter for the read_program_memory
function ?
Is it a constant value ? Or do you read it from data eeprom ?
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