If a change that speeds up drawing on an RA8875 board also makes repeated touches at a fixed point scatter, recalculate the two timing parameters used for acquisition before recalibrating the coordinate map.
The RAiO controller can use a quartz crystal between XI and XO. Its touch circuitry operates from the system clock, which depends on both the crystal and the PLL configuration. For a four-wire resistive panel, one setting divides the ADC clock and another sets a data-ready wait in system-clock cycles. Checking the pixel clock or copying the previous touch settings does not establish that either acquisition quantity is unchanged.
Follow the crystal to the two touch timing parameters
RAiO specifies a crystal range of 15 to 30 MHz and gives an example with a 20 MHz input. For PLL fields M = 0, N = 11 and K = 2, multiply the crystal frequency by N + 1 and divide by both M + 1 and two to the power K. The system clock is 20 × 12 ÷ 4, or 60 MHz. Start with the nominal crystal frequency actually fitted and decode the fields correctly. Treating eleven as the multiplier, or K = 2 as division by two, gives an incorrect touch timing calculation.
The upper timing field in the touch control register selects a data-ready wait in system-clock periods. The low three bits choose the ADC clock divider. They share an upstream source but are independently selected. Assume a 60 MHz system clock, a wait of 4096 periods and division by 64 for the ADC. The wait is about 68.27 µs and the ADC clock is 937.5 kHz. Record them as a time and a frequency, respectively. The 68.27 µs register interval is not the entire latency from initial contact to receipt of coordinates by the application.
Restore both quantities after a system-clock change
Suppose the previous system clock was 30 MHz, with a wait of 2048 periods and division by 32 for the ADC. Those choices also yield about 68.27 µs and 937.5 kHz. Raising the system clock to 60 MHz without changing the touch register reduces the wait to about 34.13 µs and increases the ADC clock to 1.875 MHz. One firmware change has altered two physical quantities. A repair note saying “crystal frequency doubled” would send purchasing in the wrong direction. In this example the external crystal is unchanged.
| Example setup | Data-ready wait | ADC clock |
|---|---|---|
| 30 MHz, 2048 cycles, divide by 32 | About 68.27 µs | 937.5 kHz |
| 60 MHz, 2048 cycles, divide by 32 | About 34.13 µs | 1.875 MHz |
| 60 MHz, 4096 cycles, divide by 64 | About 68.27 µs | 937.5 kHz |
The third row restores the two calculated quantities. It is a starting point for comparison with the first row, not evidence that the actual panel, cable, supply and firmware will work with these settings. The manufacturer limits the ADC clock to 10 MHz. Both example frequencies are below that ceiling, which excludes overclocking by that criterion but does not establish settling. All table entries are hypothetical. To identify the sensitive parameter, hold the ADC divider constant and increase the wait by one setting. Restore the wait and then change only the ADC division. Retain both comparisons before attributing an improvement to either change.
Hold the contact fixed and compare raw coordinates
The controller uses a single 10-bit ADC to read the two axes of a four-wire panel. Choose three repeatable positions, such as the center and two adjacent corners, and fixture the contact for repeatable position and force. Save raw X and Y at each position along with the touch interrupt and readout times. The user interface may already rotate, filter and scale the coordinates to pixels. A plotted trace documents the symptom, but debugging conversion, settling and mapping requires the preprocessed readings.
For each repeat series, report the median and range per axis, then compare the first contact with the settled portion. If raw readings cluster tightly at several points but displayed positions shift together, inspect the coordinate transform and calibration coefficients. If scatter occurs just after initial contact and increasing the wait shortens that interval, investigate contact formation, input settling and acquisition sequence. That observation alone cannot distinguish panel resistance, connector contact and conversion effects. If a controlled X/Y interchange makes an anomaly follow a physical direction, record the revised channel mapping before interpreting the result.
Establish that X and Y belong to the same contact
In automatic mode the controller performs the touch operation and latches the results. The host reads X, Y and the register containing their low bits. Manual mode additionally requires explicit touch-event checking, X latching and Y latching. Timing distributions from the two modes are incomparable without accounting for those workflows. Keep the stylus still and tag each acquisition. Check that the high and low bits refer to the same update and that interrupt acknowledgement or clearing does not associate the previous coordinate with the current contact. Replaying an old coordinate after release can resemble an ADC that has insufficient time to settle.
Document the supply and analog reference. The controller supports an internal reference. When external reference mode is selected, the specification calls for an external reference of half VDD. Confirm the actual selection before probing, and keep contact, cable routing and backlight state fixed. If the flex cable runs beside a backlight switching node, move it in a separate test with identical timing settings and check whether outliers decrease on the affected axis. Varying the backlight and the system clock in one run can make a power or routing effect look like a timing fault.
Decide when there is a reason to change the parts list
Keep the full crystal ordering code, load capacitors and board revision together. Record the system clock configuration and both touch settings with the firmware. Evidence for purchasing should identify the baseline firmware, the exact candidate change and how the same population of panels and cables was tested. If a revised wait and divider restore the three fixed-point distributions to the product requirement with the original crystal still fitted, record a firmware configuration change first. That result gives no causal basis for replacing the crystal reel. For a substitute touch panel, obtain its connection diagram and electrical information and repeat testing at contact onset and at the corners.
Does a normal display refresh rate rule out a touch clock issue?
Pixel output and touch sampling use different settings. The same visible refresh rate can coexist with different system clocks and downstream dividers. Use the actual system clock for the touch calculations and export the control register values and raw coordinates. Smooth animation is not a timing measurement. For a board-house retest, specify the panel, flex length and supply voltage.
Can a board be released if changing to manual mode removes the occasional jump?
Manual mode allows the host to schedule detection and latching, but changes software load and contact-to-report latency. First capture a complete release and fresh press, stating the valid-contact rule to avoid counting the previous endpoint as the new first coordinate. Compare both modes with the same number of fixed points, contact duration and pressing method. Report missed events, first-coordinate latency and settled scatter separately. A cleaner trace at the cost of an unacceptably slow first response still needs to be judged against the product's interaction requirement.
