me_guitarist
Full Member level 6
pic variable frequency tone
Now only I get what u mean. Any formula that I can calculate the required freq?
Can we control the internal oscillator?
for example, run it at 2Mhz etc.....so this will effect the output right?
Thanks!
Added after 5 hours 29 minutes:
One more thing.
Can this coding work with 10F200?
VVV said:The code I modified for you has equates at the top. All you have to do is change those lines. For instance change:
N_Freq EQU 64H
To use an external 20MHz crystal, change the oscillator option to _HF_OSC in the config word.
But why would you do that, since the internal oscillator is stable and accurate enough for this application? And it's absolutely free, as there are no components to add.
Plus, a 20MHz clock will make the sound pitch too high.
Now only I get what u mean. Any formula that I can calculate the required freq?
Can we control the internal oscillator?
for example, run it at 2Mhz etc.....so this will effect the output right?
Thanks!
Added after 5 hours 29 minutes:
One more thing.
Can this coding work with 10F200?