[En-Nut-Discussion] Wait-states bug?

Harald Kipp harald.kipp at egnite.de
Mon Oct 28 16:26:55 CET 2002


Mikael,

It's there for extra safety, because from
simple timing calculation the Ethernut Board
requires the extra wait state. In reality it
runs fine without.

We typically run all apps with this wait
state, except where performance is needed.
In that case we add

outp(BV(SRE), MCUCR);

in NutMain().

The code is still used for ATmega103 chips and
compiler.h helps the ATmega128 with

#ifndef SRW
#define SRW  6
#endif

Harald




More information about the En-Nut-Discussion mailing list