MC68HC912B32MFU8 MOTOROLA [Motorola, Inc], MC68HC912B32MFU8 Datasheet - Page 28

no-image

MC68HC912B32MFU8

Manufacturer Part Number
MC68HC912B32MFU8
Description
16-Bit Microcontroller
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
EME — Emulate Port E
5.3 Internal Resource Mapping
5.3.1 Register Block Mapping
INITRG — Initialization of Internal Register Position Register
REG[15:11] — Internal register map position
28
MOTOROLA
RESET:
Removing the registers from the map allows the user to emulate the function of these registers exter-
nally. In single-chip mode PORTE and DDRE are always in the map regardless of the state of this bit.
Normal modes: write once; special modes: write anytime EXCEPT the first time. Read anytime.
The internal register block, RAM, Flash EEPROM and EEPROM have default locations within the 64-
Kbyte standard address space but may be reassigned to other locations during program execution by
setting bits in mapping registers INITRG, INITRM, and INITEE. During normal operating modes these
registers can be written once. It is advisable to explicitly establish these resource locations during the
initialization phase of program execution, even if default values are chosen, in order to protect the reg-
isters from inadvertent modification later.
Writes to the mapping registers go into effect between the cycle that follows the write and the cycle after
that. To assure that there are no unintended operations, a write to one of these registers should be fol-
lowed with a NOP instruction.
If conflicts occur when mapping resources, the register block will take precedence over the other re-
sources; RAM, Flash EEPROM, or EEPROM addresses occupied by the register block will not be avail-
able for storage. When active, BDM ROM takes precedence over other resources although a conflict
between BDM ROM and register space is not possible. Table 10 shows resource mapping precedence.
All address space not utilized by internal resources is by default external memory. The memory expan-
sion module manages three memory overlay windows: program, data, and one extra page overlay. The
size and location of the program and data overlay windows are fixed. One of two locations can be se-
lected for the extra page (EPAGE).
After reset the 512 byte register block resides at location $0000 but can be reassigned to any 2-Kbyte
boundary within the standard 64-Kbyte address space. Mapping of internal registers is controlled by five
bits in the INITRG register. The register block occupies the first 512 bytes of the 2-Kbyte block.
These bits specify the upper five bits of the 16-bit registers address.
Write once in normal modes or anytime in special modes. Read anytime.
0 = PORTE and DDRE are in the memory map.
1 = PORTE and DDRE are removed from the internal memory map (expanded mode).
REG15
Bit 7
0
REG14
6
0
Precedence
REG13
1
2
3
4
5
6
5
0
Table 10 Mapping Precedence
REG12
4
0
BDM ROM (if active)
External Memory
Flash EEPROM
Register Space
REG11
Resource
EEPROM
RAM
3
0
2
0
0
1
0
0
MC68HC912B32TS/D
MMSWAI
Bit 0
MC68HC912B32
0
$0011

Related parts for MC68HC912B32MFU8