 |
 |
View previous topic :: View next topic |
Author |
Message |
scanan
Joined: 13 Aug 2004 Posts: 69 Location: Turkey
|
about WDT on pic18f45k40 |
Posted: Fri Apr 25, 2025 6:48 am |
|
|
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
|
|
Posted: Sat Apr 26, 2025 10:31 am |
|
|
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
|
|
Posted: Wed May 07, 2025 2:38 am |
|
|
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. |
|
 |
|
|
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
|