I need some help with 12f675 and flowcode 5
Posted: Wed Sep 06, 2017 2:00 pm
Hello.
I'm really hoping someone here can help me with this.
I wrote a simple program in flowcode 5 that basically uses a half rectified square wave as a trigger, the program then waits x number of microseconds and makes a high then low pulse output on one of it pins. The program gradually increases x by a fixed amount until x is > or = y, then x is reset back to its starting point.
Okay after many attempts I finally got all the timing right and the chip does its job perfectly (12f675).
But when wrote exactly the same program to another 12f675 chip the timing is all out, and when I say out I mean far out.
Thinking it was just the new chip at fault I tried writing the program to anther 12f675 and this time the time is out again but its not as far out as the second chip, but it seems to be racing through the program much faster than both the first and second chips.
All the chips are set at 4mhz.
I really don't know what to do, I think it is oscillator calibration related because I am using internal clock. But if this is the case how can i fix it?
Thank you in advance for any help or advice.
I'm really hoping someone here can help me with this.
I wrote a simple program in flowcode 5 that basically uses a half rectified square wave as a trigger, the program then waits x number of microseconds and makes a high then low pulse output on one of it pins. The program gradually increases x by a fixed amount until x is > or = y, then x is reset back to its starting point.
Okay after many attempts I finally got all the timing right and the chip does its job perfectly (12f675).
But when wrote exactly the same program to another 12f675 chip the timing is all out, and when I say out I mean far out.
Thinking it was just the new chip at fault I tried writing the program to anther 12f675 and this time the time is out again but its not as far out as the second chip, but it seems to be racing through the program much faster than both the first and second chips.
All the chips are set at 4mhz.
I really don't know what to do, I think it is oscillator calibration related because I am using internal clock. But if this is the case how can i fix it?
Thank you in advance for any help or advice.