S6E2CC/C5/C4/C3/C2/C1 Series Flash Programming Specification, Document Number: 002-04913 Rev. *D
50
1.4.9 DFCTRLR (Dual Flash mode Control Register)
This section explains DFCTRLR.
This register is used to control the dual flash mode.
Depending on the product, there are some restrictions on this mode. See Section "1.3.6 Dual flash mode" for details.
bit
31
16
15
2
1
0
Field
WKEY
Reserved
RME
DFE
Attribute
RW
RW
RW
Initial value
0
0
0
[bit31:16] WKEY : Write Key
When "0xEACC" is written to the WKEY bit at the same time, writing to the DFE bit and the RME bit can be performed.
Field
bit
Description
WKEY
31:16
Write Key
On write:
0xEACC : Writing to the RME bit and DFE bit is valid.
Other than 0xEACC: Writing to the RME bit and DFE bit is invalid.
On read:
"0" is always read.
[bit15:2] Reserved bits
The read values are undefined. Ignored on write.
[bit1] RME : Re-Map Enable
This bit set the allocation of the DualFlash area in the dual flash mode
Field
bit
Description
RME
1
Re-Map Enable
0: Flash Macro #1 is assigned to DualFlash area. (Initial value)
1: Flash Macro #0 is assigned to DualFlash area.
[bit1] DFE : Dual Flash mode Enable
This bit set the dual flash mode.
Field
bit
Description
DFE
1
Dual Flash mode Enable
0: the dual flash mode is disabled. (Initial value)
1: the dual flash mode is enabled.
Notes:
−
In order to write to the DFE bit and the RME bit, write WKEY="0xEACC" at the same time. When WKEY="0xEACC"
is not written, the writing is invalid.
−
Writing is invalid if writing the RME bit only. Write DFE="1" at the same time.
−
Always perform writes to DFCTRLR register using word access (32-bit access).
−
Writing to this register is invalid when the DualFlash mode is enabled (when DFE="1"). In order to perform writing
again, issue a reset command.
−
Do not perform writing to this register after the trace buffer function is enabled (after BE="1" is set for the FBFCR
register).
−
Do not change this register with instructions written in flash memory. Re-write programs other than those in the Flash
area.
−
Perform a dummy read to register, after changing this register.
−
Writing is invalid in any mode other than user mode.