Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set watchdog on Pic32 Pinguino Micro
10-12-2012, 10:26 AM,
#1
How to set watchdog on Pic32 Pinguino Micro
Hi all,

how can I set watchdog on PIC32 Pinguino Micro?
I need set watchdog timeout to 4 s (1:4096).

Thanks.
Reply
10-12-2012, 11:28 AM,
#2
RE: How to set watchdog on Pic32 Pinguino Micro
It's a feature of the chip so probably best to read the Microchip manual on it.

John
Reply
11-12-2012, 01:19 PM,
#3
RE: How to set watchdog on Pic32 Pinguino Micro
(10-12-2012, 11:28 AM)pingotg Wrote: It's a feature of the chip so probably best to read the Microchip manual on it.

John

Thanks for reply. On manual it is easy, but I must change configuration bit - in MPLAB no problem, but I can't search, where the config bits are set in Pinguino IDE. I need only set FWDTPS bits to 0b01100 - in runtime it is not possible (http://www.microchip.com/forums/m574816.aspx)
Reply
11-12-2012, 09:43 PM,
#4
RE: How to set watchdog on Pic32 Pinguino Micro
From the manual you can enable in software regardless of config bits so why not just write the software?

Looks like you just write to WDTCON

John
Reply
08-02-2013, 12:06 AM,
#5
RE: How to set watchdog on Pic32 Pinguino Micro
Hi
I am currently facing the same issue.

It is easy to enable / disable the WDT if it is not enabled by the device config.
In reg WDTCON : bit 15 ON: Watchdog Timer Enable bit

But in the bootlader it seems that WDTPS is fixed at 0 in the device conf.

The result is that the watchdog delay is 1ms.

I fear, the value of WDTPS can not be changed.
In WDTCON, we can only access to SWDTPS to is not writable (Shadow Copy of Watchdog Timer Postscaler Value from Device Configuration bits
On reset, these bits are set to the values of the WDTPS <4:0> Configuration bits.)

Any solution or does it mean that we need to flash a new bootloader to have a watchdog different of 1 ms ?

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)