TXZ Family
Flash Memory
2018-06-05
77 / 120
Rev. 2.0
5.2.16. [FCSWPSR] (Flash Memory SWAP Status Register)
Bit
Bit Symbol
After reset
Type
Function
31:14
-
0
R
Read as “0”
13:8
SIZE[5:0]
000000
R
This bit indicates the setting of memory swap size (Area 0).
000000: No swap (Initial value)
000001: 4K bytes (Page0
Page1)
000010: 8K bytes (Page0 to 1
Page2 to 3)
000100: 16K bytes (Page0 to 3
Page4 to 7)
001000: 32K bytes (Block0
Block1)
010000: Area(Area0
Area1)
Other settings than the above are prohibited.
7:2
-
0
R
Read as “0”
1:0
SWP[1:0]
00
R
Swap setting
00: Release the swap (Initial status)
01: Swap is ongoing
10: Prohibited
11: Release the swap
Note1: Perform memory swap on the program in the RAM.
Note2: If “11” is set to <SWP[1:0]>, swap is released. If “00” is set to <SWP[1:0]>, swap condition is released
and initialized with the automatic swap erasing command.
At this time, the swap size setting <SIZE[5:0]> is initialized to “000000” as well.
Note that this operation must be performed on the condition where program code is programmed in both
memories to be swapped.