One lighting controller has two assembly versions. One uses the internal oscillator and the other takes an external clock on EXTCLK. A repair technician removes the external clock and writes zero to the mode bit, but the lights stay off. Check whether the board selected EXTCLK after its latest power-up. On the PCA9685, a normal write of zero cannot clear that selection once it is set. Rewriting the operating frequency can leave the counter waiting for external edges.
Document the clock change as a state transition
The data sheet requires setting SLEEP before switching to an external clock, then writing EXTCLK while the device stays asleep and resuming operation as specified. Returning to the internal source requires a power cycle or software reset. With a 40 MHz external clock, a prescale register value of 19, and 4096 cycles per frame, the refresh rate is approximately 488 Hz. That calculation assumes the selected clock is present. Use a counter to check EXTCLK and a programmed PWM output separately.
Test cold power-on and warm reconfiguration separately for both assembly versions. First verify external-clock selection with a working source, then test switching back on a bench with outputs disabled. Check that the other channels, address settings, and output polarity are restored after reset. If several devices share the bus, determine which ones a software reset affects before choosing the production reset method.
If reworked boards can arrive in a previously configured state, the initialization script cannot assume power-on defaults. Record the reset method, mode readback, reference input, and first waveform after recovery. For a later lighting failure, this helps narrow the search to the clock connection or output configuration.NXP PCA9685 datasheet
