search the forum for PicMultiCalc by mistere
@8m you can get 37.736 KHz , 38.462 KHz
@16m 38.095 KHz , 38.462 KHz
@10 37.879 KHz , 39.063 KHz
I'm using the 8Mhz internal oscillator. I'm curious how you figured that out though, could you educate me?
What if I used a 10 or 16Mhz crystal? I have both on hand.
the scope is actually correct.
38.462KHz is as close as you can get to 38KHz hpwm with a 4MHz osc
The answer was a pull down resistor. It got rid of that slope. I tried a few, and worked out that 4.7K was the highest value I could use. That gave me a final...
From what I understand of what was quoted, 32768Hz was maximum WITHOUT using longs. I'm using an 18F2550, and when I compile, I get the following message:
Well, the scope has measurement functions. Again, this is NOT an expensive scope ($75), but it was reporting 38.46KHz and 26uS period......both right in the ballpark of what I was looking for.
Hmm, tried it, but I couldn't get the frequency up high enough due to the 'setup time' of HPWM. See below though.....got it looking great now.