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

Can a TM4C123GH6PM USB design replace its 16 MHz crystal with 24 MHz?

Do not approve the substitution merely because the crystal starts, the application runs or a register encoding exists. In the Rev. E datasheet, the USB PLL section and the RCC encoding table list 24 MHz for USB, while the prose immediately before that table lists only values through 16 MHz. That discrepancy does not establish either universal support or a universal prohibition. For a proven production design, retain 16 MHz unless there is a reason to redesign and the USB conditions for the exact silicon revision are resolved.

A functioning application does not establish a functioning USB clock

The USB PLL and the system clock are separate paths. The USB PLL uses only the main oscillator as its reference. It is disabled at power-on reset and needs software to enable it. A CPU running from the internal precision oscillator or another available path can display information, log to a serial port or run timers without proving that the USB PLL has a valid reference. Verify the mounted oscillator and its actual source before checking the USB branch.

A build-time “system frequency” is not a measurement or proof of an effective hardware selection. Code can contain an old 16 MHz initialization and a newer 24 MHz constant. Match the assembly, board initialization, USB role and test revision. If a bootloader and the application have separate clock setup, check both.

What do the three parts of Rev. E say?

The dedicated USB PLL section on page 225 lists 16, 18, 20, 24 and 25 MHz among the supported choices it describes. The RCC XTAL encoding table on page 256 marks 24 MHz at 0x19 and 16 MHz at 0x15 for USB. The sentence above that same table lists only 5, 6, 8, 10, 12 and 16 MHz. Keep these evidence points in the change record, and obtain clarification for the intended silicon and operating mode if needed. Do not select whichever line supports the desired answer.

Check16 MHz24 MHz
Dedicated USB PLL sectionListedListed
RCC XTAL encoding line0x15, marked USB0x19, marked USB
Prose before the RCC tableListedNot listed
Manufacturer LaunchPad example16 MHz main crystal Y2Not established by that example

The encoding is only the first check

Finding 0x19 in the table does not mean it took effect or that the USB PLL is running. Do not apply a field value as an entire RCC register value. Record the XTAL field separately and compare the actual reference. Also check USBPWRDN in RCC2, which controls whether the USB PLL is enabled. Clearing that bit is not equivalent to passing enumeration or timing tests.

The manufacturer's LaunchPad uses Y2 as its 16 MHz main crystal and Y1 as a separate 32.768 kHz clock for hibernation. Those designators belong to that assembly. Follow the actual product schematic. A recognized debugger USB connector on a development board does not establish operation of the target MCU's product USB connection.

What should you check before changing the crystal?

Distinguish a shortage or footprint change from a desire to share a different system clock. If supply is the only issue, a qualified 16 MHz alternate with the appropriate load and footprint is normally simpler to validate than a frequency change. Match its oscillation mode, load, ESR, drive, land pattern and temperature range. Epson's FA-238 Q22FA23800483 is a documented 16.000000 MHz, 10 pF example, not the approved LaunchPad part or a drop-in for another footprint.

Compare populated load and startup timing

If the original crystal has a different load rating, check the effective load that includes the board capacitors and parasitics. Separate a fully unpowered cold start, external reset and USB reconnection during a running session. Establish whether the main reference is late, the USB PLL is not started as intended or the clock is present but the interface fails. Probe loading can disturb an oscillator, so use a suitable low-load method or a buffered point where available. A room-temperature reconnection on a board that is already running does not cover cold startup or a supply boundary.

How to document a 24 MHz prototype

Preserve a known-good 16 MHz assembly and its matching firmware. For the prototype, record the marking, silicon revision, populated circuit and build parameters. Include the evidence applicable to that silicon and note which documentation question remains unresolved. First verify the clock path, then exercise normal USB enumeration, data transfer and reset recovery. Run the product's separate interface, timing and environment tests as required. A pass under a controlled condition is not a universal manufacturer guarantee.

Keep the startup timeline for comparison. A temperature-sensitive failure can be invisible through repeated room-temperature tests. A reset-to-enumeration sequencing issue may not reappear during simple reconnects once the board is already running. Record when clock becomes usable, USB initializes and the host sees a result. Change wiring or firmware one at a time where possible and identify every combination you test.

Use one change record for purchasing, design and test

Purchasing records the exact crystal, frequency and load. Design records the real source, XTAL setting and USB PLL initialization. Test records behavior on the product USB connector and the conditions. While the documentation remains unclear, keep the proven 16 MHz configuration and separate same-frequency sourcing options from a 24 MHz redesign. If clarification arrives for the exact revision, qualify the change using the full record rather than allowing an undocumented line substitution.

Keep same-frequency supply alternates under a different approval from a new main-clock design. A same-frequency alternate still needs startup and temperature checks. A new frequency needs matching build artifacts and test scripts. Label any fixture clock options so the fixture does not accidentally provide a reference that would be absent on the production board.

If the complaint is simply that the computer cannot see the device, check the USB role and cable as control variables. Trying another host helps locate the scope of failure but does not prove a crystal cause. First check the cable and port with a working original board, then use the same traffic and reset procedure on the new revision.

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.