Re: Pic 16F627 Freq Problem
I still cant see were you set the ports to outputs?
At reset, by default, all ports are set as inputs.
You normally write to the TRIS register a '0' to set a port as output or a '1' to set the port as input.
You would also normally have a label at the start of the program, such as
START:
and at the end of the program you would have a jump such as
GOTO START.
This would make the program loop and keep repeating.
Your program runs through to the end and then, well, ends?
This would cause the micro to reset and start at the beginning again.
After reset, the ports, by default are inputs.
But as I said, I'm not to familiar with the basic compiler you are using.
Maybe it sets the I/O in a mysterious way???