Quote Originally Posted by Charles Linquis View Post
I'm trying to figure out what you mean by -

"18f2550, at 4mhz, pll div 1 OSC 48 etc."

Is your device running at 4Mhz, 16Mhz, 48Mhz or some other speed?


Whatever speed it is running, that is what the

DEFINE OSC xx line should state.

The code has no idea of what speed oscillator you are using, so you have to tell it in order for PBP to set things up correctly.
The crystal is 4mhz, the pll div /cpu div is set to 1, which cloccks the pic at 48mhz, the define osc is set to 48, which is all correct, the error was in the limitations of the minmum freq of the pwm at that clock speed, i had forgot to check, never imagined that the slowest i could run it was 3k at that clock, hence the three levels of brightness for 0-255, not a simple one level

I didnt rtm......