Using Hi-tec I wanted to determine if cause of firmware resetting was watchdog time out or not.
So at the beginning of main I placed: In the hope to test watchdog timeout.
Data sheet shows if watch timeout occurred, then TO bit of status would change to 0
So I enabled WDT and placed while(1) loop.
I am getting a load of 1's sent via RS232,
so WDT register is read as 1 and not expected 0.
Not sent reset WDT command prior to reading status bit4 , So status(4) is not acting on a clear watchdog command
So after a WDT reset does anyone know why status bit TO is set at 1 when data sheet shows as NOT TO?
I.e. default for status bit 4 = 0 .
Thanks

Martin