If I put nothing instead of "XXXXXXX" the watchdog works and resets the program.
But if I replace "XXXXXX" by "delay_ms(1);" , watchdog won't work and won't reset the program.
And the funny part, if I replace it by "delay_us(1000)" , watchdog will work and will reset the program.8-O
it means that "delay_ms(1)" and "delay_us(1000) are different :!::!::!:
please give me some recommendations.
This program sets all of bits in PORTA. and after that the proram resets by WDT and we can't see any change in PORTA. but if "delay_ms(1);" replaces by "delay_us(1000);" the WDT won't work and won't reset the microcontroller. and we can see PORTA is 0x00.