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......





Bookmarks