English
Language : 

MC68HC705J2 Datasheet, PDF (37/82 Pages) Freescale Semiconductor, Inc – member of the low-cost
Freescale Semiconductor, Inc.
1
SECTION 6
2
MEMORY
3
This section describes the organization of the on-chip memory.
4
6.1 Memory Map
5
The CPU can address 4 Kbytes of memory space. The program counter normally
advances one address at a time through the memory, reading the program
6
instructions and data. The EPROM portion of memory holds the program
instructions, fixed data, user-defined vectors, and service routines. The RAM portion
7
of memory holds variable data. I/O registers are memory-mapped so that the CPU
can access their locations in the same way that it accesses all other memory
locations.
8
Figure 6-1 is a memory map of the MCU. Figure 6-2 is a more detailed memory map
9
of the 32-byte I/O register section.
10
6.1.1 Input/Output Section
11
The first 32 addresses of the memory space, $0000–$001F, are defined as the I/O
section. These are the addresses of the I/O control registers, I/O status registers,
and I/O data registers.
12
13
6.1.2 RAM
The MCU has 112 bytes of fully static read/write memory for storage of variable and 14
temporary data during program execution. RAM addresses $00C0–$00FF serve as
the stack. The CPU uses the stack to save CPU register contents before processing 15
an interrupt or subroutine call. The stack pointer decrements during pushes and
increments during pulls.
16
17
NOTE
Be careful if using the stack addresses ($00C0–$00FF) for data
18
storage or as a temporary work area. The CPU may overwrite data in
the stack during a subroutine or interrupt.
19
20
MEMORY
Rev. 2
6-1
For More Information On This Product,
Go to: www.freescale.com