[Icc-avr] Reading fuses on Mega168
Edi Im Hof
edi.imhof.ml at ihe.ch
Tue Apr 29 07:47:59 PDT 2008
Ian schrieb:
>
> The actual definition of SPMSCR is
>
> #define SPMCSR (*(volatile unsigned char *)0x57)
>
> which for some strange reason the compiler translates to 0x37.
This actually addresses the very same location. All the registers from
$00 .. $3F are mirrored to $20 .. $5F
Witch leaves still the question why the compiler does this know ...
Are you really sure you are looking in the right file where the SPMCSR
is defined?
Edi
>
> Regard,
>
> Ian James
>
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ IH electronic + Phone: ++41 52 320 90 00 +
+ Edi Im Hof + Fax: ++41 52 320 90 04 +
+ Doernlerstrasse 1 + URL: http://www.ihe.ch +
+ CH-8545 Sulz + E-Mail: edi.imhof at ihe.ch +
+ Switzerland + +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the Icc-avr
mailing list