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

Pericom PI7C9X798: Why does the timer stall when the 24 MHz crystal is running?

First identify the timer's selected clock source. The PI7C9X798 uses XTAL1 and XTAL2 for the oscillator circuit, but its 16-bit timer can also take an external clock at TMRCK. If firmware chooses that input on a board that does not drive it, normal UART traffic and a stopped timer can coexist. UART traffic alone cannot demonstrate that the timer has received any ticks.

Capture the actual commands

Diodes document DS40309 identifies TMRCK as pin 14 of the 100-MQFP. The global-command table lists low-nibble commands 0101 for the internal source, 0110 for the external source and 1001 to start the timer. These are individual commands, not fields to combine with bitwise OR in one write. The datasheet separately defines TIMER_CTL at offset 84h. Do not copy those command values into the status/control fields merely because both tables refer to the timer. There is no need to change the UART divisor for this test.

Consider a firmware image copied from a board with an external pulse source to a board fitted only with a 24 MHz crystal. Compare the initialization trace against the assembled schematic. Identify the source-selection command and the later start command. If pin 14 is not driven, compare the two source selections on a test board with initial count, mode and interrupt setup held constant. To exercise external mode, use a suitable logic pulse source within the board's interface requirements. Do not route either high-impedance crystal node to TMRCK with a jumper.

Keep three pieces of evidence: an independently confirmed reference, the timer-source/start command trace, and the resulting counter or timer interrupt behavior. If the timer still stalls with the correct source, verify the start command and count loading, and record any reads that can clear an interrupt. Repeat on both cold boot and software restart, since the initialization paths may differ. On a system with several active UARTs, document which channels are active and whether TMRCK is actually driven; a transition on the shared interrupt line does not identify the timer on its own.

Related selection guide: MERLIN Crystal Timing: Diodes PI7C9X7952 crystal clock chain: Does zero at 0x16 mean no sampling or an empty FIFO?

Resource link: https://www.mecxtal.com.cn/en/handbook/dio-036.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.