Content originally posted in LPCWare by Pacman on Wed Sep 25 10:18:56 MST 2013
I needed a non-50/50 duty cycle as well.
What I did, was to make an interrupt, which toggled the compare values.
Thus I got a short ON and a very long OFF cycle.
I do not know if there are any better ways than that, but it's definitely possible to keep an accurate timing (you don't need to toggle the pins manually).
An alternative could be to use two compare registers and then an external XOR gate to combine them into one square-wave. You can get 6-pin (SC70-6), 8-pin (SOT-23) logic gates, or even smaller gate-chips if necessary.