Hi,

#define x2 1

#define baud 19200

#define xtal 22118400

#if (x2 == 1)

CLKREG = 0x01;

#else

CLKREG = 0x00;

#endif

Okay.

Now I need the power function ( … 2^x2 … 2**x2 …. potenz(2;x2) ….. ????)

Is there a way to solve this problem for the following calculation?

BRL = 256-(xtal/baud/192) * ~~2^x2~~ ; <- thats wrong

(It's for a AT89S8253)

Thanks for ideas, help & answers

Rabis49