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

Why does a TLC59711 board still need clocks after writing data with a 50 MHz reference?

A controller with a 50 MHz active oscillator feeds a chain of TLC59711 LED drivers. Originally the software sent new data only when brightness changed. After enabling external grayscale timing to control the chain's display timing, the write still decodes correctly, but the LEDs behave unexpectedly. Check which grayscale source is selected. In external mode, one serial clock pin both shifts in data and advances grayscale timing. Those phases have a defined order and a required interval. Stopping the clock immediately after a data write omits the second phase.

Shift the data, then clock the display using the same pin

With EXTCLK set, the TLC59711 uses SCKI as its grayscale reference. First send the data, 224 bits for each device, starting with the six-bit write command. For a chain, start with the packet intended for the far end and work toward the first chip. The manufacturer's example sends those packets without inter-device pauses. At the end of the last packet, stop the clock to produce the internal latch. If software inserts a long pause between devices, the chain can interpret that intermediate gap as the end of the data write. Verify the final bit count and latch position in the same capture.

After the last rising edge, the external-clock procedure waits eight times the interval between the final two rising edges to generate the latch. It then waits at least 1.34 µs from latching to the next clock. Keep SDTI low, send one clock to begin grayscale operation, then send the remaining 65,535 clocks. The full sequence has 65,536 grayscale clocks. If a timer takes over this phase, its handoff must avoid producing an unintended extra edge. An SCK line that runs only when data are being shifted cannot supply this phase.

The example uses specific function bits. It disables display repeat, enables resetting the display timing on the latch and clears blanking. Decode these fields for every device. One good device does not show that the last chip entered the same mode. Capture the first and last inputs on a long chain and monitor current on a channel with a recognizable nonzero grayscale setting. Select a measurement point that actually shows the conduction interval under the installed load.

Budget the shift clocks and grayscale clocks

Suppose the serial peripheral divides the 50 MHz active oscillator by eight to produce 6.25 MHz. The nominal period is 160 ns. Three devices require 672 data clocks, or 107.52 µs. The 65,536 grayscale clocks take another 10.48576 ms. Those phases total 10.59328 ms before latching and software gaps. Using nominal uniform clock spacing, the latch delay is 1.28 µs and the next clock must wait at least another 1.34 µs. A round comes to about 10.60 ms in this example before further implementation overhead. Verify actual timing and cascade propagation. The time needed to shift in the data alone cannot determine the achievable refresh.

At a target of at least one hundred updates per second, 66,208 clocks must fit in ten milliseconds, along with latching and other gaps. Even ignoring the gaps, running both phases at the same rate requires at least 6.6208 MHz. The existing 6.25 MHz configuration cannot meet that target. Check available controller divisors and verify valid waveforms throughout the chain. If different modules generate the two clock phases, measure the final two data edges and the full grayscale interval separately.

If the whole external-clock panel occasionally darkens, mark the final two data edges in a diagnostic build. A 160 ns interval gives an estimated latch delay of 1.28 µs at eight times the interval. If the transmit queue changes that final spacing to 200 ns, the same rule gives about 1.60 µs. A grayscale burst scheduled to the original timing then has less time after the latch. Measure from the last two rising edges at the device input and verify when the clock actually resumes. An average SCK measurement can miss the tail spacing.

A long interconnect may also change behavior near the far end. The cascaded devices forward clock and data. Check the forwarded outputs at the next receiver against the manufacturer's diagram and the installed routing. One capture at the controller cannot establish that all three receive the same waveform. Save traces from the short fixture and the longest production assembly. Compare continuous operation and controlled stop and restart. Pausing the host under a debugger changes the display behavior in external-clock mode and must be treated as a separate condition.

Verify the clock choice on the assembled board

Send two distinct test frames and capture data shifting, the pause, the restarted clock and LED current. If the full data arrives without grayscale clocks after the pause, look at software or at the timer handoff. If the right number of grayscale clocks appears and images are shifted within the chain, check packet order and look for premature latching. Holding the same 50 MHz active oscillator constant while reproducing these cases narrows the diagnosis. For sample sign-off, record the reference levels and real divisor along with the three packet lengths, latch timing, full grayscale duration and light output.

References

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.