Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why can brightness stay unchanged on a PCA9685 with a valid 40 MHz NDK oscillator?

Check the OCH bit in MODE2. NXP documents that with the default OCH = 0, outputs change on an I²C STOP. With OCH = 1, a PWM channel updates on the last ACK only after all four of its PWM registers have been loaded. Two acknowledged writes to LEDn_OFF_L and LEDn_OFF_H alone do not show that the new setting took effect. A sound external clock does not override that update logic.

Compare the bus boundary with the actual PWM output

Suppose a board has a qualified 40 MHz NDK NZ2016SHA reference. A firmware revision switches to ACK-based updates but leaves a routine that writes only the off-count bytes. Capture the selected mode, channel address, actual byte count and STOP while observing the corresponding PWM pin. In ACK mode, confirm that the ON low, ON high, OFF low and OFF high bytes belong to the same channel. Writes to another channel do not complete that set. In STOP mode, verify that each required channel’s data was sent before the intended STOP rather than accepting a successful software return as evidence of output change.

Keep timing acceptance separate from commit behavior

Hold the system clock, prescaler and intended ON count constant while correcting how the update commits. Record the old pulse width, bus boundary and new pulse width for one channel, then test the intended multichannel update. The update boundary is not a claim that channel phase is automatically reset. Keep the precise NDK frequency and voltage option in the procurement record. Revisit the oscillator only if the actual reference fails its checks, not because the bus transaction lacked an output-update condition.

Related selection guide: MERLIN Crystal Timing: Clock oscillators

Resource link: https://www.mecxtal.com.cn/en/products/oscillators.html

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.