MC9S08QE128 MCU Series Reference Manual, Rev. 2
Freescale Semiconductor
51
Chapter 4
Memory
4.1
MC9S08QE128 Series Memory Map
As shown in
, and
, on-chip memory in the MC9S08QE128 Series of
MCUs consists of RAM, flash program memory for nonvolatile data storage, and I/O and control/status
registers. The registers are divided into three groups:
•
Direct-page registers (0x0000 through 0x007F)
•
High-page registers (0x1800 through 0x187F)
•
Nonvolatile registers (0xFFB0 through 0xFFBF)
Figure 4-1. MC9S08QE128 Memory Map
flash
16384 BYTES
PPAGE=4
PPAGE=5
PPAGE=6
PPAGE=7
0x10000-0x13FFF
0x14000-0x17FFF
0x18000-0x1BFFF
0x1C000-0x1FFFF
DIRECT PAGE
RAM
6016 BYTES
0x0000
0x007F
0x0080
0x1800
0x17FF
0x187F
0x0FFFF
128 BYTES
HIGH
128 BYTES
FLASH
16384 BYTES
0x1880
RAM
2048 BYTES
0x207F
0x3FFF
0x2080
FLASH
8064 BYTES
16384 BYTES
0x07FFF
0x0C000
0x04000
REGISTERS
0x0BFFF
0x08000
PAGE REGISTERS
PPAGE=1
FLASH
16384 BYTES
PPAGE=0
FLASH
FLASH
16384 BYTES
PPAGE=3
PPAGE=0
PPAGE=1
PPAGE=2
PPAGE=3
0x00000
0x03FFF
0x00000-0x03FFF
0x04000-0x07FFF
0x08000-0x0BFFF
0x0C000-0x0FFFF
When the CPU
accesses PPAGE 0
directly, RAM and
registers, when present,
take priority over flash
memory.
Extended Address
CPU Address
Extended
Address
0xFFFF
0x7FFF
0xC000
0x4000
0xBFFF
0x8000
Paging Window -
Extended address-
es formed with
PPAGE and
A13:A0 of CPU ad-
dress
When PPAGE 0 is
accessed through the
linear address pointer
or through the paging
window, the flash
memory is read.
+64K:
up to
128K
In the Figure 4-1,
BLUE arrows (for Program
and Constants), does NOT
depend on PPAGE; only
on: Logical 16 bit
address being OUT of
PAGE 2 range. Physical
A16 will always be "0".
RED arrows (program
and constants)
DOES DEPEND, indeed,
on both: PPAGE, and
Logical 16 bit add-
ress being INSIDE of
PAGE 2 range. If so,
Physical Address is:
PPAGE(2:0);A13:A0
A15:A14 are NEVER
used to form Physical
Address
This is why ISRs MUST
be located in pages 0,
1 or 3: they do NOT
use PPAGE, that is NOT
preserved over Inter-
rupts. NEVER locate
ISRs in page 2.
Inside ISRs you may
use code located on
Banked Memory (Pages
2,4,5,6,7) employing
CALL/RTC to save
and restore PPAGE.
PPAGES values 0, 1 & 3
ARE NOT OF ANY USE!!
--0xFF: 128 Bytes Direct "Page" RAM,
(not in the sense of MMU 8 Pages...)
Completly modifyied, corrected, commented and augmented by Luis G. Uribe C. Mar/Jun 2012
Содержание MC9S08QE128
Страница 2: ......
Страница 4: ......
Страница 49: ...Chapter 3 Modes of Operation MC9S08QE128 MCU Series Reference Manual Rev 2 50 Freescale Semiconductor ...
Страница 138: ...Chapter 6 Parallel Input Output Control MC9S08QE128 MCU Series Reference Manual Rev 2 138 Freescale Semiconductor ...
Страница 144: ...Chapter 7 Keyboard Interrupt S08KBIV2 MC9S08QE128 MCU Series Reference Manual Rev 2 144 Freescale Semiconductor ...
Страница 166: ...Chapter 8 Central Processor Unit S08CPUV4 MC9S08QE128 MCU Series Reference Manual Rev 2 166 Freescale Semiconductor ...
Страница 174: ...MC9S08QE128 MCU Series Reference Manual Rev 2 174 Freescale Semiconductor Analog Comparator S08ACMPV3 ...
Страница 202: ...12 bit Analog to Digital Converter S08ADCV1 MC9S08QE128 MCU Series Reference Manual Rev 2 202 Freescale Semiconductor ...
Страница 282: ...Serial Peripheral Interface S08SPIV3 MC9S08QE128 MCU Series Reference Manual Rev 2 282 Freescale Semiconductor ...
Страница 306: ...Timer PWM Module S08TPMV3 MC9S08QE128 MCU Series Reference Manual Rev 2 306 Freescale Semiconductor ...
Страница 320: ...Development Support MC9S08QE128 MCU Series Reference Manual Rev 2 320 Freescale Semiconductor ...