PWM dimming mode is implemented in this design. Choose the pole at around 4 kHz, and choose 475 Ω as the filter resistor. With those values, an 82 nF capacitor should be chosen for this filter. To get a faster loop response, choose a smaller filter resistor. In this design, 200 Ω was chosen to get a pole at approximately 10 kHz.