Flash Memory Version; Functions To Inhibit Rewriting Flash Memory; Stop Mode; Wait Mode - Renesas M16C/26A Series Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6

19.13 Flash Memory Version

19.13.1 Functions to Inhibit Rewriting Flash Memory

ID codes are stored in addresses 0FFFDF
and 0FFFFB
. If wrong data is written to these addresses, the flash memory cannot be read or written in
16
standard serial I/O mode.
The ROMCP register is mapped in address 0FFFFF
memory cannot be read or written in parallel I/O mode.
In the flash memory version of microcomputer, these addresses are allocated to the vector addresses (H)
of fixed vectors.The b3 to b0 in address 0FFFFF

19.13.2 Stop mode

When the microcomputer enters stop mode, execute the instruction which sets the CM10 bit to "1"(stop
mode) after setting the FMR01 bit to "0"(CPU rewrite mode disabled) and disabling the DMA transfer.

19.13.3 Wait mode

When the microcomputer enters wait mode, excute the WAIT instruction after setting the FMR01 bit to
"0"(CPU rewrite mode disabled).

19.13.4 Low power dissipation mode, on-chip oscillator low power dissipation mode

If the CM05 bit is set to "1" (main clock stop), the following commands must not be executed.
• Program
• Block erase

19.13.5 Writing command and data

Write the command code and data at even addresses.

19.13.6 Program Command

Write 'xx40
' in the first bus cycle and write data to the write address in the second bus cycle, and an
16
auto program operation (data program and verify) will start. Make sure the address value specified in the
first bus cycle is the same even address as the write address specified in the second bus cycle.

19.13.7 Operation speed

When CPU clock source is main clock, before entering CPU rewrite mode (EW0 or EW1 mode), select 10
MHz or less for BCLK using the CM06 bit in the CM0 register and the CM17 to CM16 bits in the CM1
register. Also, when CPU clock is f
(EW0 or EW1 mode), set the ROCR3 to ROCR2 bits in the ROCR register to "divied by 4" or "divide by 8".
On both cases, set the PM17 bit in the PM1 register to "1" (with wait state).

19.13.8 Instructions prohibited in EW0 Mode

The following instructions cannot be used in EW0 mode because the flash memory's internal data is
referenced: UND instruction, INTO instruction, JMPS instruction, JSRS instruction, and BRK instruction
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
(ROC) on-chip oscillator clock, before entering CPU rewrite mode
3
page 320
f o
3
2
9
C
2 /
6
) T
, 0FFFE3
, 0FFFEB
16
16
. If wrong data is written to this address, the flash
16
are reserved bits. Set these bits to "1111
16
, 0FFFEF
, 0FFFF3
16
16
19. Usage Notes
, 0FFFF7
,
16
16
".
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents