To use a 555 as a frequency divider of a
known and constant frequency pulse train you have to make sure that the 555 is ready to be triggered again after n input pulses where n is the division factor.
This means that one has to ensure the 555 output (shown in
green) has changed to zero after a further n input pulses (shown in
yellow) since it was last triggered so the 555 is ready to be triggered again by first pulse of the next group of n pulses.
The way the 555 retriggerable monostable circuit operates to divide by n means that the time constant/period of the monostable 555 - x - must satisfy this equation:
(n x T) - t < x < (n x T)
What this says is the 555 output must transition to zero after the trailing edge of the nth pulse and before the leading edge of the (n+1)th pulse - that is in the gap between them when the input is zero.
Attached is an example for a divide by 3 scheme which shows the meaning of n, T, t and x.
It is probable better then for your PWM input to keep t short with respect to T so that there is a relatively big time gap between input pulses so that variations in the 555 timer function which creates the interval x will generally fall clearly after n pulses and nicely before the (n+1)th.
Or something close to this explanation - I am bit rushed.
