EEPROM Read Speed in AVR Microcontrollers
A single‑byte EEPROM read via the classic EEPROM interface (EECR/EEDR on megaAVR or NVMCTRL on tinyAVR 1‑series) completes the memory‐fetch in4 CPU clock cyclesonce the read is triggeredArduino Forum.
At a 20 MHz system clock (50 ns per cycle), that corresponds to4 × 50 ns = 200 nsfor the core memory access. In practice, you also need several instructions to set up the address and trigger the read, so end‑to‑end throughput for back‑to‑back byte reads typically falls in the8–12 cyclerange (400–600 ns), or roughly1.7–2.5 MB/s.
A single‑byte EEPROM read via the classic EEPROM interface (EECR/EEDR on megaAVR or NVMCTRL on tinyAVR 1‑series) completes the memory‐fetch in4 CPU clock cyclesonce the read is triggeredArduino Forum.
At a 20 MHz system clock (50 ns per cycle), that corresponds to4 × 50 ns = 200 nsfor the core memory access. In practice, you also need several instructions to set up the address and trigger the read, so end‑to‑end throughput for back‑to‑back byte reads typically falls in the8–12 cyclerange (400–600 ns), or roughly1.7–2.5 MB/s.
Dedicated CCL Logic Speed
The Configurable Custom Logic (CCL) peripheral implements combinatorial (AND/OR/XOR, etc.) and sequential (flip‑flops, latches) functions entirely in hardware, independently of the .
In its simplest “bypass” mode (no synchronizer or filter enabled), a change on a LUT input propagates to the output in approximately50 ns, with measured propagation delays ranging from30 ns to 70 nsdepending on temperature and logic complexityMicrochip Forum.
If you enable the built‑in synchronizer (FILTSEL=SYNCH), the output is synchronized to the CCL clock and incurs a delay of2 CCL clock cycles; using the full digital filter (FILTSEL=FILTER) adds4 clock‑cyclelatencyMicrochip Docs.
The Configurable Custom Logic (CCL) peripheral implements combinatorial (AND/OR/XOR, etc.) and sequential (flip‑flops, latches) functions entirely in hardware, independently of the .
In its simplest “bypass” mode (no synchronizer or filter enabled), a change on a LUT input propagates to the output in approximately50 ns, with measured propagation delays ranging from30 ns to 70 nsdepending on temperature and logic complexityMicrochip Forum.
If you enable the built‑in synchronizer (FILTSEL=SYNCH), the output is synchronized to the CCL clock and incurs a delay of2 CCL clock cycles; using the full digital filter (FILTSEL=FILTER) adds4 clock‑cyclelatencyMicrochip Docs.
['F']
['e']
['a']
['t']
['u']
['r']
['e']
['']
['L']
['a']
['t']
['e']
['n']
['c']
['y']
['']
['(']
['a']
['t']
['']
['2']
['0']
['']
['M']
['H']
['z']
[')']
['']
['A']
['p']
['p']
['r']
['o']
['x']
['.']
['']
['M']
['a']
['x']
['']
['T']
['h']
['r']
['o']
['u']
['g']
['h']
['p']
['u']
['t']
['']
['E']
['E']
['P']
['R']
['O']
['M']
['']
['r']
['a']
['w']
['']
['r']
['e']
['a']
['d']
['']
['4']
['']
['c']
['y']
['c']
['l']
['e']
['s']
['']
['(']
['2']
['0']
['0']
['']
['n']
['s']
[')']
['']
['≤']
['']
['5']
['']
['M']
['H']
['z']
['']
['b']
['y']
['t']
['e']
['']
['r']
['a']
['t']
['e']
['']
['E']
['E']
['P']
['R']
['O']
['M']
['']
['e']
['n']
['d']
['‑']
['t']
['o']
['‑']
['e']
['n']
['d']
['']
['r']
['e']
['a']
['d']
['']
['']
['8']
['–']
['1']
['2']
['']
['c']
['y']
['c']
['l']
['e']
['s']
['']
['(']
['4']
['0']
['0']
['–']
['6']
['0']
['0']
['']
['n']
['s']
[')']
['']
['≈']
['']
['1']
['.']
['7']
['–']
['2']
['.']
['5']
['']
['M']
['B']
['/']
['s']
['']
['C']
['C']
['L']
['']
['b']
['y']
['p']
['a']
['s']
['s']
['']
['p']
['r']
['o']
['p']
['a']
['g']
['a']
['t']
['i']
['o']
['n']
['']
['']
['1']
['.']
['0']
['']
['C']
['P']
['U']
['']
['c']
['y']
['c']
['l']
['e']
['']
['+']
['']
['1']
['']
['L']
['U']
['T']
['']
['d']
['e']
['l']
['a']
['y']
['']
['(']
['~']
['5']
['0']
['']
['n']
['s']
[')']
['']
['≥']
['']
['1']
['0']
['–']
['2']
['0']
['']
['M']
['H']
['z']
['']
['l']
['o']
['g']
['i']
['c']
['']
['t']
['o']
['g']
['g']
['l']
['e']
['s']
['']
['C']
['C']
['L']
['']
['w']
['i']
['t']
['h']
['']
['s']
['y']
['n']
['c']
['h']
['r']
['o']
['n']
['i']
['z']
['e']
['r']
['']
['2']
['']
['C']
['C']
['L']
['']
['c']
['y']
['c']
['l']
['e']
['s']
['']
['(']
['1']
['0']
['0']
['']
['n']
['s']
[')']
['']
['1']
['0']
['']
['M']
['H']
['z']
['']
['r']
['e']
['g']
['i']
['s']
['t']
['e']
['r']
['e']
['d']
['']
['l']
['o']
['g']
['i']
['c']
['']
['C']
['C']
['L']
['']
['w']
['i']
['t']
['h']
['']
['f']
['i']
['l']
['t']
['e']
['r']
['']
['4']
['']
['C']
['C']
['L']
['']
['c']
['y']
['c']
['l']
['e']
['s']
['']
['(']
['2']
['0']
['0']
['']
['n']
['s']
[')']
['']
['5']
['']
['M']
['H']
['z']
['']
['f']
['i']
['l']
['t']
['e']
['r']
['e']
['d']
['']
['l']
['o']
['g']
['i']
['c']
Comparison & Takeaways
Raw speed: A pure EEPROM byte‐read (200 ns) is about4× slowerthan a simple CCL LUT propagation (~50 ns).
Practical throughput: Sequential EEPROM reads with instruction overhead drop to ~400–600 ns per byte, making them8–12× slowerthan unfiltered CCL logic.
CPU off‑loading: CCL runs independently of the CPU, eliminating instruction overhead and freeing the core for other tasks—ideal for time‑critical “glue logic.”
Raw speed: A pure EEPROM byte‐read (200 ns) is about4× slowerthan a simple CCL LUT propagation (~50 ns).
Practical throughput: Sequential EEPROM reads with instruction overhead drop to ~400–600 ns per byte, making them8–12× slowerthan unfiltered CCL logic.
CPU off‑loading: CCL runs independently of the CPU, eliminating instruction overhead and freeing the core for other tasks—ideal for time‑critical “glue logic.”
In summary, while on‑chip EEPROM is perfectly adequate for infrequent data retrieval (configuration parameters, calibration tables), any real‑time signal processing or high‑speed glue logic is far better implemented in the CCL peripheral, which delivers nanosecond‑scale reaction times and can operate at system clock rates without CPU intervention.