Taras Kondratiuk

Memory mapping on MC9S12DG128

Discussion created by Taras Kondratiuk on Jul 25, 2008
Latest reply on Jul 26, 2008 by Taras Kondratiuk
HI, everyone.

I'm working with Freescale uCs only a few days and I have some problems with understanding of memory mapping.
I'll try to describe my problems:
1) this uC has 8k RAM and in user guide written that this memory can be mapped to any 8k boundary. But INITRM register defines the upper 5 bits of RAM address. So RAM can be mapped to any 2k boundary.
2) After reset RAM memory mapped to 0x0000-0x1FFF. But the INITRM reset value is 0x09 (hex). So RAM should be mapped to 0x0800-0x2800.

Can you explain me this contradictions?
Thanks.

Outcomes