3-2
MSM66591/ML66592 User's Manual
Chapter 3 CPU Architecture
Following is a programing example when expanding the program memory space.
This example indicates that the program memory space is expanded up to 128K bytes
(MSM66591) or 192K bytes (ML66592) after the execution of NOP instruction.
MOVB MEMSACP, #50H
MOVB MEMSACP, #0A0H
SB LROM
NOP
MSMSCON can be written only once after reset. Therefore, resetting (by
RES
signal
input, by execution of BRK instruction, by watchdog timer (WDT) overflow, or by an
operation code trap) is the only way to restore the program memory size to 64K bytes
after it has been expanded to 128K bytes (MSM66591) or 192K bytes (ML66592).
3.1.2 Program Memory Space
Program memory space is referred to as "ROM space."
The MSM66591 can access a maximum of 128K (131072) bytes of program memory in
64K (65536)-byte unit (segment) for segments 0 and 1. The ML66592 can access a
maximum of 192K (196608) bytes of program memory in 64K (65536)-byte unit (seg-
ment) for segments 0, 1 and 2. Since segment 3 is not provided, do not try to access it.
However, if more than 64K bytes (segments 1 and 2) are accessed, the LROM bit of the
MEMSCON (memory size control register) allocated to SFR must be set to "1".
The code segment register (CSR) specifies the segment to be used, and the program
counter (PC) specifies the address in the segment. However, the segment to be used at
execution of ROM table reference instructions (LC A, obj etc.) and the ROM window
functions is specified by the table segment register (TSR).
In the MSM66591, the entire 128K-byte area of the sum of the 64K (65536)-byte area in
segment 0 and the 64K (65536)-byte area in segment 1 is the internal ROM area.
In the ML66592, the entire 192K (196608)-byte area of the sum of the 64K-byte area in
segment 0 and each 64K-byte area in segment 1 and segment 2 is the internal ROM
area.
The following areas are assigned to segment 0:
- Vector table area (86 bytes)
- VCAL table area (32 bytes)
The ACAL area (2048 bytes) is assigned to each segment.
Figures 3-1(a) and 3-1(b) show the memory maps of program memory space.
Summary of Contents for MSM66591
Page 15: ...Contents 12...
Page 17: ......
Page 18: ...Overview Chapter 1 1...
Page 19: ......
Page 30: ...Description of Pins Chapter 2 2...
Page 31: ......
Page 44: ...CPU Architecture Chapter 3 3...
Page 45: ......
Page 101: ...3 56 MSM66591 ML66592User sManual Chapter 3 CPU Architecture...
Page 102: ...CPU Control Functions Chapter 4 4...
Page 103: ......
Page 111: ...4 8 MSM66591 ML66592User sManual Chapter 4 CPU Control Functions...
Page 112: ...Memory Control Functions Chapter 5 5...
Page 113: ......
Page 117: ...5 4 MSM66591 ML66592User sManual Chapter 5 Memory Control Functions...
Page 118: ...Port Functions Chapter 6 6...
Page 119: ......
Page 152: ...Output Pin Control Pin OE Chapter 7 7...
Page 153: ......
Page 155: ...7 2 MSM66591 ML66592User sManual Chapter 7 Output Pin Control Pin OE...
Page 156: ...Clock Generation Circuit Chapter 8 8...
Page 157: ......
Page 160: ...Time Base Counter TBC Chapter 9 9...
Page 161: ......
Page 164: ...Watchdog Timer WDT Chapter 10 10...
Page 165: ......
Page 170: ...Flexible Timer FTM Chapter 11 11 11...
Page 171: ......
Page 213: ...11 42 MSM66591 ML66592User sManual Chapter 11 Flexible Timer FTM...
Page 214: ...General Purpose 8 Bit Timer Function Chapter 12 12...
Page 215: ......
Page 223: ...12 8 MSM66591 ML66592User sManual Chapter 12 General Purpose 8 Bit Timer Function...
Page 224: ...PWM Functions Chapter 13 13...
Page 225: ......
Page 244: ...Baud Rate Generator Functions Chapter 14 14...
Page 245: ......
Page 263: ...14 18 MSM66591 ML66592User sManual Chapter 14 Baud Rate Generator Functions...
Page 264: ...Serial Port Functions Chapter 15 15...
Page 265: ......
Page 348: ...A D Converter Functions Chapter 16 16...
Page 349: ......
Page 381: ...16 32 MSM66591 ML66592User sManual Chapter 16 A D Converter Functions...
Page 382: ...Transition Detector Functions Chapter 17 17...
Page 383: ......
Page 387: ...17 4 MSM66591 ML66592User sManual Chapter 17 Transition Detector Functions...
Page 388: ...Peripheral Functions Chapter 18 18...
Page 389: ......
Page 392: ...External Interrupt Request Function Chapter 19 19...
Page 393: ......
Page 396: ...Interrupt Request Processing Function Chapter 20 20...
Page 397: ......
Page 407: ...20 10 MSM66591 ML66592User sManual Chapter 20 Interrupt Request Processing Function...
Page 408: ...Bus Port Functions Chapter 21 21...
Page 409: ......
Page 413: ...21 4 MSM66591 ML66592User sManual Chapter 21 Bus Port Functions...
Page 414: ...Expansion Port Chapter 22 22...
Page 415: ......
Page 420: ...Serial Port with FIFO SCI5 Chapter 23 23...
Page 421: ......
Page 431: ...23 10 MSM66591 ML66592User sManual Chapter 23 Serial Port with FIFO SCI5...
Page 432: ...RAM Monitor Function Chapter 24 24...
Page 433: ......
Page 441: ...24 8 MSM66591 ML66592User sManual Chapter 24 RAM Monitor Function...
Page 442: ...25 Electrical Characteristics Chapter 25...
Page 443: ......
Page 458: ...Package Dimensions Chapter 26 26...
Page 459: ......
Page 461: ...26 2 MSM66591 ML66592User sManual Chapter 26 Package Dimensions...
Page 462: ...Revision History Chapter 27 27...
Page 463: ......
Page 465: ...27 2 MSM66591 ML66592User sManual Chapter 27 Revision History...