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

Can an ATmega328PB Use an External System Clock While an Epson FC-135 Times Timer2?

Not with both sources connected to this MCU's shared clock pins. Microchip's ATmega328PB manual states that the Timer/Counter2 oscillator pins TOSC1 and TOSC2 share pins with the external clock function. When using the timer oscillator, the system clock must come from the calibrated internal RC oscillator, and the system clock must meet the four-times timer oscillator requirement. Epson's FC-135 is a passive 32.768 kHz crystal and is a possible candidate for the low-frequency circuit, but it does not provide additional independent clock pins. Check this restriction against the exact MCU rather than assuming it applies unchanged to every AVR variant.

Meeting the frequency ratio does not free the pins

For example, the original board may run the MCU on its internal RC and use an FC-135 in the Timer2 oscillator. A revision might propose an external active oscillator for the system while keeping the same asynchronous timer. An 8 MHz system clock exceeds four times 32.768 kHz, or 131.072 kHz, by a large margin, but this does not resolve the pin-sharing or source-selection restriction. Do not connect two independent sources to the same pad. Also do not reuse a two-terminal crystal connection when switching to a driven square wave. Timer2 has a separate external-input configuration, which does not bypass the restriction on the system clock source.

Decide which clocking capability to preserve

If asynchronous timekeeping is the priority, retain the internal RC system source and confirm load, resistance and startup for the exact FC-135 ordering option. If the equipment must have an external system clock, consider a separate RTC or an MCU with independent clocking resources and review capture, wake and power-loss behavior. This is not a drop-in crystal substitution. During repair, document fuses and clock source first, then check the timer's asynchronous configuration and the actual connections at the pins. A stationary low-frequency count is not evidence by itself that the FC-135 is faulty.

Qualify the MCU's actual system clock and the timer's source separately. A working serial port or an advancing displayed second does not establish which source controls the counter. Test power-up and wake after any configuration change, and retain a timed comparison long enough to check that the equipment did not silently fall back to a timer derived from the system clock.

Related selection guide: MERLIN Crystal Timing: Checking the ATmega324PB prescaler write window with a 20 MHz external oscillator

Resource link: https://www.mecxtal.com.cn/en/handbook/20mhz-atmega324pb-prescaler-write-window.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.