Hi Vasili,
The compiler seems to stop the processor when the program ends. During
the forever loop the clkout pin shows a Fosc/4 signal, but when you exit
the loop the clkout pin is quiet (and theĀ the PWM signal stops also!).
Proof: at the end of the assembler code there is 'sleep' statement/loop.
Regards, Rob.
On 16-12-2024 07:46, vsurducan wrote:
Hi Rob, I have understood some things:
1. Indeed the 12F1572_blink_intosc, with pragma target CLKOUTEN
ENABLED returns Fosc/4 on RA4 pin only if forever loop end loop
exists. If you expect to have that clock without any repetitive main
program (comment the forever loop), it will not be there.
It's possible to be a compiler issue, or a normal behavior of the
microcontroller, I do not now.
--
*Rob H*amerling, Vianen, NL
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/jallib/37d21e18-eb77-406a-9fd2-9ce477c8885f%40gmail.com.