Memory Mapping - Fujitsu SOFTUNE F2 MC-16 User Manual

Software for developing programs for the f2 mc-16 family of microprocessors / microcontrollers
Hide thumbs Also See for SOFTUNE F2 MC-16:
Table of Contents

Advertisement

CHAPTER 2 DEPENDENCE FUNCTIONS
2.3.1.5

Memory Mapping

Memory space can be allocated to the user memory and the emulation memory, etc., and
the attributes of these areas can be specified.
However, the MCU internal resources are not dependent on this mapping setup and
access is always made to the internal resources.
■ Access Attributes for Memory Areas
The access attributes shown in Table 2.3-2 can be specified for memory areas.
A guarded access break occurs if access is attempted in violation of these attributes while executing a
program.
When access to the user memory area and the emulation memory area is made using program commands,
such access is allowed regardless of the CODE, READ, WRITE attributes. However, access to memory with
the GUARD attribute in the undefined area, causes an error.
Table 2.3-2 Types of Access Attributes
User Memory
Emulation Memory
Undefined
When access is made to an area without the WRITE attribute by executing a program, a guarded access break
occurs after the data has been rewritten if the access target is the user memory. However, if the access target
is the emulation memory, the break occurs before rewriting. In other words, write-protection (memory data
cannot be overwritten by writing) can be set for the emulation memory area by not specifying the WRITE
attribute for the area.
This write-protection is only enabled for access made by executing a program, and is not applicable to access
by commands.
144
Area
CODE
READ
WRITE
GUARD
NOGUARD
Attribute
Instruction Execution Enabled
Data Read Enabled
Data Write Enabled
Access Disabled
No check of access attribute
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Softune workbench

Table of Contents