Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I appreciate your input. This is a useful pointer. However, my test code got that bit cleared as depicted below:
//read RCON bits for reset conditions
if(RCONbits.WDTO)
{
_LATE4 = 0;
_LATE5 = 0;
__delay32(9600000);
}
RCON = 0x0000;
I...
Thanks,
I tried the new config as below with no success. The reset was ongoing unless I use CLRWDT. I believe the chip is bad. I will be receiving new dsPIC from my supplier soon to confirm if it is chip level failure.
#pragma config FWPSB = WDTPSB_10 // WDT Prescaler B (1:10)
#pragma...
Strangely, the WDT was the culprit. It remains enabled despite turning it off in the config and confirming that on the programmer config bits too.
Apply CLRWDT stopped the reset.
Could a bad chip be the cause or errata issue or something I don't know yet?
Since I don't have any readout...
I tried all stuff. I just changed it to below as suggested. The restart still happens exactly 20 seconds. It is frustrating.
__delay32(2400000);
_LATE4 = 0;
_LATE5 = 1;
__delay32(2400000);
_LATE4 = 1;
_LATE5 = 0...
I have a simple code for blinking LEDs in dsPIC30F2010. I am using MPLABX v5.20 and XC16 v1.36.
I notice the dsPIC restarts at approximately 20seconds. Please, what could be the cause? I have tried on different boards and same result.
Here is my code:
#include <xc.h>
#include <libpic30.h>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.