Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | Unexpected program reset in MPLAB while debugging

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.

Unexpected program reset in MPLAB while debugging - peacezim2001 - Jul 15 8:56:59 2009

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 )