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

PIC18F24K50

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



Joined: 18 Nov 2008
Posts: 117
Location: Athens, Greece.

View user's profile Send private message

PIC18F24K50
PostPosted: Sun Dec 10, 2017 2:35 pm     Reply with quote

Hello friends!

Is there a way to read the value-settings of a configuration word during run time?

I want to read the value of the config2h register which contains the watchdog postscaler value.
Yes I know that I set this value from the fuses so I should know it.

I just want to read it back during run time.

Thanks!

Giorgos.
_________________
George.
PCM programmer



Joined: 06 Sep 2003
Posts: 20136

View user's profile Send private message

PostPosted: Sun Dec 10, 2017 2:37 pm     Reply with quote

See this function in the CCS manual:

read_configuration_memory( )

http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
georpo



Joined: 18 Nov 2008
Posts: 117
Location: Athens, Greece.

View user's profile Send private message

PostPosted: Mon Dec 11, 2017 8:52 am     Reply with quote

It works!

Thanks!!!
_________________
George.
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