R01UH0092EJ0110 Rev.1.10
Page 133 of 807
Jul 31, 2012
M16C/64C Group
10. Processor Mode
10.2.2
Processor Mode Register 1 (PM1)
Set the PRC1 bit in the PRCR register to 1 (write enabled) before rewriting this register.
The PM12 bit becomes 1 by a program. Setting it to 0 has no effect.
Bits PM11, PM15 to PM14 are enabled when bits PM01 to PM00 are 01b (memory expansion mode) or
11b (microprocessor mode).
PM10 (
CS2
area switch bit (data flash enable bit)) (b0)
This bit is used to select the function of addresses 0E000h to 0FFFFh. Table 10.4 lists Data Flash
(Addresses 0E000h to 0FFFFh).
Data flash includes block A (addresses 0E000h to 0EFFFh) and block B (addresses 0F000h to
0FFFFh). When data flash is selected by the setting of the PM10 bit, both block A and block B can be
used.
The PM10 bit automatically becomes 1 while the FMR01 bit in the FMR0 register is 1 (CPU rewrite
mode).
Table 10.4
Data Flash (Addresses 0E000h to 0FFFFh)
PM10 Bit in PM1 Register
0
1
Processor Mode
Single-chip mode
Reserved area
Data flash
Memory expansion mode
External area
Data flash
Microprocessor mode
External area
Reserved area
b7
0
b6 b5 b4
b1
b2
b3
Processor Mode Register 1
Symbol
PM1
Address
0005h
Bit Symbol
Bit Name
RW
PM10
Reset Value
0000 1000b
RW
b0
Function
0 : CS2 (0E000h to 0FFFFh )
1 : Data flash (0E000h to 0FFFFh)
CS2 area switch bit
(data flash enable bit)
PM11
PM12
PM13
Wait bit
PM17
0 : No wait state
1 : Wait state (1 wait)
RW
RW
Memory area expansion bit
b5 b4
0 0 : 1-MB mode (no expansion)
0 1 : Do not set
1 0 : Do not set
1 1 :
RW
RW
0 : Address output
1 : Port function
Port P3_7 to P3_4 function
select bit
Internal area expansion bit 0
Refer to the bit explanation below “PM13
(Internal Area Expansion Bit 0) (b3)”
RW
Watchdog timer function select
bit
0 : Watchdog timer interrupt
1 : Watchdog timer reset
RW
PM14
PM15
Reserved bit
Set to 0
RW
—
(b6)
4-MB mode
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...