Not too long ago there was a tread in this forum that wasdealing with maximum frequency output from a PIC for any given master clock. Unfortunatelymy searches did not return any good information.
I’m interested to get a small PIC device (10F or 12F type)to act as a high frequency clock generator using its internal clock and I wouldlike to know what to expect.
I have an application where the space is very tight and Ineed a modulated clock source with decent stability in the order of hundreds ofkHz but ideal will be 1MHz.
Using PBP I understand that something like:
main_loop:
Togglepin_x
GOTOmain_loop
should give maximum frequency output. Assuming that theToggle and GOTO commands will take two cycles each that will give me possibleoutput frequency of Main_clock/4/4 which will be 250 kHz for a 4MHz clock.
My question is if one uses Assembly (which is not my strongestfield) will it get any faster? Will itbe possible to make it run in the background?
Ideally I need a 1 MHz output that will be ON for 15 mS andOFF for 5 mS.
Thank you in advance for any input in this matter.
Bookmarks