Hello all,
I am new here and new to pic's. At my new job (a few months now) I have been thrown into some design work involving PICs, so I am having to come up to speed fairly quickly. I have one design under my belt so I have a good start with my understanding.

What I am working on is a switched mode constant current / constant voltage Li-Ion battery charger based around the PIC18F2523. At this point, this is the only pic I have worked with.

We are using PBP and the U2 programmer from MELabs.

I have searched the forums and the net to help answer my questions but I haven't come up with anything solid and concise as of yet, so maybe you all can help me.

I am running my pic in the internal oscillator mode and have it set for 4MHz and I am using the PBP command HPWM to generate my PWM output that drives the MOSFETs in my circuit.

Right now my PWM is running at 32Khz but I would like to get it up into the 300-500kHz range but I am unsure how to do this. I have tried higher values in HPWM command and it doesn't seem to work.

I have read a few suggestions on the forum & other places about stuffing registers manually and calculating the period but I am unsure if that is my next step. I would also like to continue using the internal oscillator and would like to maintain decent resolution to the PWM steps.

Thanks