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

about WDT on pic18f45k40

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



Joined: 13 Aug 2004
Posts: 69
Location: Turkey

View user's profile Send private message Visit poster's website

about WDT on pic18f45k40
PostPosted: Fri Apr 25, 2025 6:48 am     Reply with quote

hi
I am a bit confused
in the pic18f45k40.h WDTCLK_HFINTRC is defined in the fuses
but in the datasheet page 34 nothing mentioned about it?
any suggestions

my fuse definition in my prog is as follows


#FUSES NOEXTOSC,RSTOSC_HFINTRC_64MHZ //1
//#FUSES //2
#FUSES NOCLKOUT,NOCKS//3
#FUSES NOFCMEN,NOMCLR,PUT,NOLPBOR,NOBROWNOUT //4
//#FUSES //5
#FUSES ZCDDIS,NOPPS1WAY,NOSTVREN //6
#FUSES NODEBUG,NOXINST,WDT1024 //7
//#FUSES //8
//#FUSES //9
#FUSES NOWDT,WDT_SW//10
//#FUSES //11
#FUSES WDTCLK_HFINTRC//12
#FUSES NOWRT,NOWRTC,NOWRTB,NOWRTD //13
#FUSES NOSCANE,NOLVP,PROTECT,CPD//14
#FUSES NOEBTR,NOEBTRB //15

what clock source would be for the wdt ?

one thing
--- More info: Fuses changed for this oscillator setting
after compiling I get this info



cheers
_________________
Dr Suleyman CANAN
R&D Electronic Engineer
https://suleymancanan.wordpress.com

Do whatever you do with amateur spirit -
But always feel professional.
Ttelmah



Joined: 11 Mar 2010
Posts: 19831

View user's profile Send private message

PostPosted: Sat Apr 26, 2025 10:31 am     Reply with quote

You don't show us what 'information' you get after compiling.
Do you have a setup_wdt line in the code?. If so, this will override the
fuse clock selections. Basically the wdt timings can only be set in the
fuses, so if you specify a time in the code, the compiler changes the
fuses to match this setting.
scanan



Joined: 13 Aug 2004
Posts: 69
Location: Turkey

View user's profile Send private message Visit poster's website

PostPosted: Wed May 07, 2025 2:38 am     Reply with quote

Ttelmah wrote:
You don't show us what 'information' you get after compiling.
Do you have a setup_wdt line in the code?. If so, this will override the
fuse clock selections. Basically the wdt timings can only be set in the
fuses, so if you specify a time in the code, the compiler changes the
fuses to match this setting.


THanks
I forgot the setup_wdt
now works well
_________________
Dr Suleyman CANAN
R&D Electronic Engineer
https://suleymancanan.wordpress.com

Do whatever you do with amateur spirit -
But always feel professional.
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