Coupons
Help
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:

EMC Design for Microcontroller Circuits: I/O, Reset, and Oscillator

Author : Alex Chen | PCB Design & High-Speed Engineering Specialist

November 20, 2026


Microcontroller circuits sit at the center of many embedded products, and their electromagnetic compatibility (EMC) performance is often determined by details that are easy to dismiss during schematic capture and layout. IC manufacturers continue to reduce microcontroller dimensions to place more functions on each silicon die. Smaller geometry usually makes transistors faster. Even when the MCU clock rate cannot increase, rise and fall times become shorter, and the resulting harmonic components extend to higher frequencies. In many cases, a die shrink is not communicated to users. A circuit that starts with an acceptable MCU can therefore develop EMC problems at some point in the product lifecycle. The most effective response is to design a robust circuit from the beginning.

Many real-time applications need high-speed MCUs, so designers must treat circuit design and PCB routing carefully to reduce potential EMC problems. The power required by an MCU increases with its processing power. It is not difficult to place the supply circuit, such as a calibration circuit, close to the microcontroller, and a dedicated capacitor can reduce the effect of the DC supply on other circuits.

An MCU usually has an on-chip oscillator connected to its own crystal or resonator, avoiding the need to use a clock from another clock-driver circuit. This independent clock provides better protection against noise radiated by other parts of the system. In terms of clock frequency, the MCU is usually the device with the highest power requirement, so keeping the clock close to the MCU ensures the minimum drive requirement at the clock frequency.

Highlights:

  • Reducing MCU geometry raises edge rates and harmonic frequency content even when the clock rate is unchanged, so EMC margin must be designed in early.
  • High-impedance inputs need defined termination; IRQ and reset pins need special ESD, filtering, and clamping because false triggering affects the whole system.
  • Oscillator values such as RO, C1, and C2 depend on both the MCU inverter and the external crystal or resonator, so use manufacturer data rather than assumptions.

 

Microcontroller Circuits

The power and signal-integrity behavior of a microcontroller circuit cannot be separated from its EMC behavior. The MCU is both a source of fast edges and a sensitive load for clocks, resets, interrupts, and supply rails. A robust design starts with the assumption that the device may change over time, and that the PCB must retain margin even if a future die revision brings faster output transitions without a change in clock frequency. Maintaining sufficient design margin under these conditions is an important consideration in EMC design.

Supply placement is part of this margin. The power drawn by an MCU increases with its processing workload, and the supply circuit must be close enough to support transient current demand. A local capacitor helps isolate the DC supply from other circuits, while keeping the clock source close to the MCU minimizes the drive requirement at the clock frequency. When the oscillator is connected to the MCU's own crystal or resonator, the clock does not depend on an external clock-driver circuit, which improves immunity to noise radiated by other parts of the system.

 

I/O Port Pins

For most MCUs, pins are usually high-impedance inputs or mixed input/output. High-impedance input pins are susceptible to noise, and when improperly terminated they can cause registers to latch incorrect levels. A non-internally terminated input pin needs a high impedance, for example 4.7KΩ or 10KΩ, connecting each pin to ground or to the supply rail to ensure a known logic state. Unconnected input pins often float around the middle of the supply level, or at an indeterminate voltage because of internal leakage paths.

For IRQ or reset pins, which are input pins, termination is more important than for ordinary I/O pins. If noise causes these two pins to trigger falsely, it has a large effect on the behavior of the whole circuit. When an input pin is unconnected and the input latch is half open, internal current leakage occurs in the IC. High current consumption is often observed, especially in CMOS devices. High-impedance termination on input pins can therefore reduce supply current, in addition to other EMC benefits.

 

IRQ Pins

Because interrupts affect MCU operation, the IRQ pin is one of the most sensitive pins on the device. An interrupt request can come from a remote device to the MCU on the PCB, or even from a plug-in adapter or subsystem card. It is therefore important to ensure that any connection to the interrupt request pin has transient electrostatic discharge protection. For ESD protection, bidirectional diodes, transorbs, or metal oxide varistors on the IRQ line are usually sufficient, and they also help reduce overshoot and damp ringing without imposing a large line load. Even in cost-sensitive applications, resistor termination on the IRQ line remains indispensable.

 

Reset Pin

Improper reset causes many problems because different applications rely on different startup and power-down conditions. The most basic function of reset is to ensure that, once power is applied, the MCU begins executing code in a controlled manner.

At power-up, the supply rises to the MCU operating voltage, and a period is needed for the crystal to stabilize. The reset pin therefore needs a time delay. The simplest delay is a resistor-capacitor (RC) network. As current flows through the resistor, the capacitor begins to charge until the level reaches the value that the MCU reset circuit detects as logic 1.

Ideally there is no strict rule for resistor and capacitor sizes, but other considerations apply. The internal leakage current of the reset pin is usually specified not to exceed 1μA (for the Motorola HC08 MCU), which means the resistor should be no more than 100kΩ. The capacitor must not be electrolytic, so that the stop current remains at a minimum. A ceramic capacitor is recommended because it balances low cost, low leakage, and good high-frequency response. The reset pin capacitance is very small (lower than 5pF in the Motorola HC08 MCU). There is also a limit on the minimum impedance value because the maximum pull-up current is approximately 5mA at 1V (VOL). When the low-impedance voltage source presented by the external capacitor is taken into account, the minimum pull-up resistor value is set at 2KΩ.

Clamping the reset pin voltage with a diode is also recommended. It prevents excessive supply voltage and allows the capacitor to discharge quickly when power is removed.

 

Oscillator

Many MCUs incorporate an inverter amplifier that is used with an external crystal or ceramic resonator to form a Pierce oscillator. The key design question is the minimum gain, or transconductance, that the amplifier must provide to oscillate with a particular external component set.

A typical standard Pierce oscillator arrangement used on an MCU is shown below. The crystal operates over the 1MHz to 20MHz frequency range. The MCU internal circuit is shown in simplified form: a NAND gate is followed by an inverter. The NAND gate has two inputs, one connected to the MCU OSC1 pin and the other connected to the internal STOP signal.

Figure 17 | Standard Pierce oscillator operating from 1 MHz to 20 MHz

Figure 17 | Standard Pierce oscillator operating from 1 MHz to 20 MHz

 

Part 2: Component Selection and Circuit Design Techniques

For an oscillator circuit, positive feedback must exist and the closed-loop gain must be greater than 1. The resistor RO introduces negative feedback and raises the open-loop gain requirement of the amplifier. RO should usually be as large as possible to minimize feedback while overcoming current leakage at power-up. With 1MHz and 20MHz crystals, RO should be in the 1MΩ to 10MΩ range. For ceramic resonators, RO is generally 1MΩ. The resonator Q and capacitors C1 and C2 form the resonant circuit. C1 and C2 represent the external capacitors and any parallel parasitic capacitance. Crystals and ceramic resonators have a small-signal equivalent circuit as shown below. Proper component selection, including the choice of resonator, feedback resistor, and load capacitors, is essential for achieving stable oscillator startup and reliable operation.

Figure 18 | Crystal equivalent circuit

Figure 18 | Crystal equivalent circuit

R is the series resistance, and L and C are the motional or series inductance and capacitance. CO is the shunt capacitance, which represents the sum of the low-frequency parallel capacitance of the resonator in the crystal package and the parasitic capacitance. Any additional parasitic capacitance between the OSC1 and OSC2 pins is included in this value.

Crystal manufacturer datasheets detail the values of R, L, C, and CO for a particular crystal. To measure these values, the manufacturer must drive the crystal at a specified power dissipation level. At crystal startup, however, the only signal through the crystal is thermal noise, so the power dissipated in the crystal is very low. It is known that the effective resistance can increase when the power dissipated in the crystal falls to a low level. The maximum value of R is estimated by the crystal manufacturer.

Because the values of RO, C1, and C2 depend not only on the MCU inverter characteristics but also on the external crystal or ceramic resonator, exact component values can be obtained from the manufacturers' datasheets.

Related Reading: 

Alex Chen | PCB Design & High-Speed Engineering Specialist Alex Chen | PCB Design & High-Speed Engineering Specialist

Alex Chen is a senior PCB design engineer with extensive experience in high-speed and high-density circuit design. He specializes in signal integrity, impedance control, and multilayer PCB layout optimization. At AIVON, he reviews and refines content related to PCB design principles, EDA tools, and advanced layout techniques. His expertise helps engineers avoid common design pitfalls and improve performance, reliability, and manufacturability in complex PCB projects.

Related Tags


2026 AIVON.COM All Rights Reserved
Intellectual Property Rights | Terms of Service | Privacy Policy | Refund Policy