TMR0 Pic 12F615
Posted: Wed May 08, 2019 4:14 am
Hello Benj, Everyone,
I have a problem that I can not solve with the attached program, which was running Flowcode 7 I think or maybe 6 (I don't remember), whatever, it worked.
Lately I opened it under Flowcode 8.1.1.11 and compiled, since it doesn't works (in simulation under Proteus) the displayed error code is "Processor has been reset as a result of incorrect watchdog timer initialization"
however, I have initialized TMR0 = 0xff I do not understand where is the subtlety.
The operating principle is:
A2 is the IN input;
Input signal IN => a pulse that can vary from 1 to 2ms with a period of 20ms;
A3 is the output if A2 = 1ms => A3 = 0; if A2 = 2ms => A3 = 1.
If you have an idea of the problem, I want some explanation to understand it.
Thank you in advance
I have a problem that I can not solve with the attached program, which was running Flowcode 7 I think or maybe 6 (I don't remember), whatever, it worked.
Lately I opened it under Flowcode 8.1.1.11 and compiled, since it doesn't works (in simulation under Proteus) the displayed error code is "Processor has been reset as a result of incorrect watchdog timer initialization"
however, I have initialized TMR0 = 0xff I do not understand where is the subtlety.
The operating principle is:
A2 is the IN input;
Input signal IN => a pulse that can vary from 1 to 2ms with a period of 20ms;
A3 is the output if A2 = 1ms => A3 = 0; if A2 = 2ms => A3 = 1.
If you have an idea of the problem, I want some explanation to understand it.
Thank you in advance