Do not just swap the crystal. An ATmega32U4 using an external crystal can use either 8 MHz or 16 MHz as the starting reference for its USB PLL, but the input prescaler differs. Set PINDIV to 0 for 8 MHz and to 1 for 16 MHz so the PLL receives 8 MHz in both cases. Check that the board voltage supports its actual CPU speed and that the firmware and bootloader are built for the right configuration. A blinking LED only shows the code reached that step. It does not establish a valid full-speed USB clock.
Distinguish crystal frequency, PLL input and USB clock
The crystal marking describes only the resonator. In a standard external-crystal configuration, the input prescaler follows the crystal reference, and further PLL and USB clock circuitry provides the 48 MHz required for full-speed USB. These are different points. Do not buy a 48 MHz passive crystal for the XTAL1 and XTAL2 position. When the board also divides the system clock, crystal marking alone does not establish the CPU frequency.
| Nominal external crystal | Setting before enabling PLL | Nominal input to PLL |
|---|---|---|
| 8 MHz | PINDIV = 0, divide by 1 | 8 MHz |
| 16 MHz | PINDIV = 1, divide by 2 | 8 MHz |
| 16 MHz with old 8 MHz setting | PINDIV = 0, unchanged prescaler | Not the required 8 MHz |
| 8 MHz with old 16 MHz setting | PINDIV = 1, divide by 2 | 4 MHz, not the required input |
This table compares the PLL input prescaler, not the full USB register configuration. An incorrect setting does not guarantee a lock or any specific resulting output. Set the prescaler before enabling the PLL as specified. PLOCK shows lock status and is useful evidence, but it cannot replace USB enumeration and data-transfer checks.
Match the selected build target to the fitted crystal
The same controller can be used on boards with different clock configurations. Check the compiler frequency definition, bootloader board target, oscillator selection and fitted part separately. Changing one frequency constant does not automatically replace an old bootloader, and flashing an application does not mean its initialization runs in the USB boot stage. Record whether the host detects the board during bootloader startup and after the application starts rather than writing only “USB not recognized.”
Do not assume a 3.3 V board can run its CPU at 16 MHz
The controller's feature page lists industrial-temperature operating points of 8 MHz at 2.7 V and 16 MHz at 4.5 V. A computer's 5 V USB VBUS does not mean the board powers its controller at 5 V. Identify the MCU's actual supply net and check it under load and during startup. A 3.3 V product should not be released for 16 MHz CPU operation solely on the strength of a room-temperature startup.
Crystal frequency, CPU frequency and the internal USB clock at 48 MHz are different electrical questions. Installing a 16 MHz crystal while dividing the CPU clock back to 8 MHz is still a design change. Check the clock domains between reset release and the software clock setup, not just afterward. If the repair should leave the board and firmware unchanged, restore the original crystal frequency rather than assuming a temporary working state validates the product.
For example, an application may toggle a test pin every 16,000 CPU clocks without changing the count. If its CPU actually moves from 8 to 16 MHz, the toggle interval goes from about 2 ms to 1 ms. This checks application timing, not the USB clock. A toggling pin does not prove PLL lock or the correct board target. If system division keeps the CPU speed unchanged, the interval may not change.
Two 16 MHz parts can require different loads
For a passive crystal, verify the original designator, loading network and allowable equivalent series resistance before screening a candidate. The Epson FA-238 Q22FA23800133 is specified at 12 pF, whereas Q22FA23800620 is specified at 8 pF. Both are 16 MHz, but that does not make them interchangeable stock items. They exemplify load options in one family and are not a unique recommendation or evidence of validation on an ATmega32U4 board.
Do not enter crystal CL as the value of each capacitor to ground. For another load option, review the board's capacitors and parasitics separately. Check cover terminals against the manufacturer's drawing and board connections. Even two similar metal-lid parts are not interchangeable solely because the outside dimensions match. When an old part has only a marking, look for its original label, approved drawing or same-revision comparison board. Record confirmed and unknown parameters separately instead of guessing a suffix.
What if USB is absent but the crystal is oscillating?
Use a known-good cable and host port, keeping the connector path, board revision and supply the same. Observe whether the failure appears during bootloader execution, in the application or in both. A bootloader that enumerates while the application fails does not establish full crystal compliance, but points to application USB initialization and clock settings. If neither enumerates, shared clock, power and connection paths are still suspects. Do not immediately blame the host driver.
Check lock and enumeration separately
If the PLL does not lock, check the reference source and prescaler before verifying supply and oscillator startup. If PLOCK indicates lock, check the USB clock path, controller enable and actual host enumeration. After the device is visible, test data transfers so a momentary appearance is not mistaken for a repair. If the fault was confined to power-on, repeat cold starts rather than resetting repeatedly. If the original part no longer works either, inspect adjacent capacitors and joints affected by rework and revisit the original diagnosis.
What a repair record should contain
First record the board revision, controller code, supply, complete crystal ordering code and load. Then record bootloader and application versions, frequency definition and selected reference. Finally record where the test ran, PLL status, whether the host enumerated it and whether data transfers worked. Use separate records for the 8 and 16 MHz variants rather than a single entry marked compatible.
Purchasing and engineering can share a receiving rule: if frequency, load or package differs from the approved drawing, segregate the part as a candidate rather than refilling the repair bin with it. Distinguish visually identical parts by complete ordering code and board revision on their labels. If a field photo does not identify the crystal, record its designator and board version rather than probing an oscillator node with the wrong equipment.
Document the cold-start procedure. Disconnecting an auxiliary supply may not shut down a board that still receives USB power, and an attached debugger may affect startup through its connections. Compare good and repaired boards under the same power-off conditions. Save the exact failure stage and observation. If no clock is observed, first validate the test point and probe loading. An unreliable direct observation is not sufficient evidence that the crystal failed to start.
Validate more than one pilot sample. Along with normal power-on, check supply and temperature limits relevant to the product, and see whether failures also reproduce on the original construction. This separates supplier lot, power and firmware differences instead of attributing one failure to a whole shipment. Keep samples that do not meet the release criteria in engineering validation rather than labeling the repair complete.
For repair, ask for an original-frequency part with the right load and land pattern. If making a new revision, pair the BOM and bootloader identifiers before release so assembly does not mix visually similar but differently configured boards. The answer to whether substitution is possible depends on scope: it is not a direct swap with the same program. Consider a revision only after checking voltage, oscillator circuit, PLL, bootloader and application.
