A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
Hello all,
I had a strange issue while debugging in MPLAB. I am using PIC 16F73 with HiTECH C
compiler.
The program counter unexpectedly resets to zero, at some point.The WDT is not enabled
atall. Could you please tell me what can be the possible reason?
Please the part of code where it happened,
switch(DigitCount)
{
case 0:
TimePtr->Hour[1] = KeyPressCount - 1;
DigitCount++;
CommandWrite(0x06);
KeyPressCount = 0;
DigitMaxValue = 9;
break;
case 1:
TimePtr->Hour[0] = KeyPressCount - 1; //=> It happened here
DigitCount++;
CommandWrite(0x06);
KeyPressCount = 0;
DigitMaxValue = 5;
DataWrite(':');
CommandWrite(0x06);
break;
}
Thank you in advance.
------------------------------------
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )