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

TaiTien 13.714 MHz Crystal: Why Can USB Work in the Application but Fail in the Bootloader?

Check the bootloader's own clock configuration. An Atmel application note hosted by Microchip identifies the TaiTien XRFBCC-NANL as a 13.714 MHz crystal option. Its AT89C5131A design obtains approximately 48 MHz for USB with a ratio of 7/2, but the same note says the default Atmel bootloader does not support that ratio. The maintenance path requires the appropriate bootloader arrangement. An application can configure the PLL after it starts without proving that USB in the bootloader uses the same configuration.

Why did this legacy design choose a different crystal frequency?

The note discusses pairing an AT89C5131A with an ATR2406. It identifies 10.368 MHz and 13.824 MHz as two crystal frequencies for the radio, and says the AT89C5131A prescaler cannot produce the required 48 MHz USB clock from those choices in this design. It instead selects 13.714 MHz and identifies the TaiTien XRFBCC-NANL, a 10 ppm surface-mount crystal, in its parts discussion. That is a choice for this example with downstream constraints, not a general substitution list for every AT89C5131A board.

The example uses R=6 and N=1. The diagram gives an output equal to the oscillator frequency times (R+1)/(N+1), or 7/2. Using the displayed nominal frequency to three decimal places gives 47.999 MHz; the note presents this as approximately 48 MHz. That explains the calculation. It does not establish the precise ordered frequency, USB compliance or the system tolerance budget.

A PCB designator or part listed in a reference note does not establish the actual oscillator conditions in a repaired board. Check its BOM, frequency marking and revision. A derivative could use the same PCB with different software or an external clock. Start with the reference frequency and part number, but do not treat them as permission to change a board unconditionally.

When does each stage configure USB?

StageEvidence to reviewEvidence that is not sufficient
Board and crystalActual frequency, part number and board revisionTitle mentioning 13.714 MHz
ApplicationPLL settings and USB evidence while the application runsConnecting after application startup
BootloaderInstalled boot code and support for the required ratioUse of 7/2 in the application
Repair releaseSeparate cold-start and approved update-path verificationReconnecting USB within a running application

Different code runs before and after application startup. At reset or in the designated maintenance mode, the application may not yet be running. USB then depends on the bootloader's prescaler configuration. The application may rewrite it after startup. Thus one board can enumerate correctly in the application but lack an available USB connection while in its bootloader. Those are separate clock prerequisites rather than contradictory observations.

Use the documented way to enter maintenance. Reconnecting USB at the host is not the same as cold-starting the device. Reconnection may simply make an already-running application enumerate again. State whether the board was power cycled, which mode it reached, which bootloader revision was used and whether the observed connection was for the application or maintenance. Seeing the device on the same USB connector does not establish a bootloader pass.

Why aren't the application PLL settings evidence for the bootloader?

The note's limitation concerns the default Atmel bootloader, which does not support the 7/2 setting used in the example. That helps localize a fault; it does not identify the startup code already installed in a particular unit. Some boards may have a customized bootloader or another approved update route. Identify the version and maintenance process before deciding whether the documented limitation applies.

Likewise, do not change both the crystal and bootloader immediately when a device fails to enumerate. Where the actual frequency and application setup are known, preserve the baseline, observe each startup stage and compare against a known-good unit with the same hardware and software. Isolate one decision variable rather than accepting a board whose update path is not reliable. Any changes should use the documented update or service procedure approved for that device.

Where maintenance must support this frequency, include the bootloader revision and supported clock configuration among the deliverables. Purchasing should not substitute the nearest nominal crystal on its own. Software delivery should not omit the boot prerequisites. Once hardware and software agree, the release record can bind the exact part number to the application and bootloader versions.

How do you narrow the problem during repair?

Start by verifying that the board actually uses the reference design's 13.714 MHz configuration. If it uses a different crystal, recover its approved system settings rather than applying the R and N values from this example. Then record application and bootloader connections separately. If both fail, investigate power, reset, cables, host and clock before focusing on the divider. If only the bootloader fails, first confirm its version, entry conditions and supported ratio.

Make test triggers reproducible. Record whether power was removed, how maintenance mode was entered, what the host reported on connection and whether the board could return to normal startup using the approved route. Use separate entries instead of writing “USB passed” once for application mode and once for maintenance. Status indications and logs can help show which mode was actually observed.

Finally, define whether the repair is supposed only to restore operation or also to preserve the ability to maintain the product. If the customer needs updates through the supported boot path, successful application enumeration is not enough. “Application connection passes; maintenance startup not yet verified” tells the next shift which evidence is missing. Use a confirmed board and software revision as a reproducible comparison only after all required paths are covered.

An older workstation may show only that the host displayed a device name, without indicating which program owns that interface. Identify the expected state from approved device identifiers or service logs, then record clock and host observations together rather than treating a stale host entry as a new result. Where the service procedure does not require a firmware write, do not change user data simply to verify the path; use the approved non-writing check.

Frequently asked questions

Does the calculated 47.999 MHz mean the hardware fails?

No. That arithmetic uses the nominal frequency as displayed in the public document and is not a controlled measurement. Verify the actual option, full specification, configuration and receiver requirements. Bootloader support still needs its own check.

Should you replace the crystal first if the bootloader doesn't enumerate?

Not from that symptom alone. If application USB already works, check the boot mode, installed version and supported prescaler ratio first. Follow the hardware path separately if the part, oscillation conditions or actual measurements prove incompatible.

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.