Quote Originally Posted by richard View Post
the scope is actually correct.

38.462KHz is as close as you can get to 38KHz hpwm with a 4MHz osc
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.