31.5.14 PFM Write Protect Region n REGISTER

Table 31-25. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: PWP
Offset: 0x50 + n*0x04 [n=0..3]
Reset: 0x00000000
Property: R/W

Bit 3130292827262524 
     PWPBASE[11:8] 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 2322212019181716 
 PWPBASE[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 PWPENPWPLOCKPWPMIR PWPSIZE[11:8] 
Access R/WR/SR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 76543210 
 PWPSIZE[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 27:16 – PWPBASE[11:0] The Region Base Address is PWPBASE * 4096 When PWPEN=1, the region from PWPBASE*4096 to PWPBASE*4096+PWPSIZE+1 is write/erase protected. Note: This field can only be modified when PWPLOCK=0, BUSY=0 and KEY=<CFGKEY Value>.

The Region Base Address is PWPBASE * 4096.

When PWPEN=1, the region from PWPBASE to PWPBASE+PWPSIZE+1 is write/erase protected.

Note: This is a byte address force to align to page boundaries.
Note: This field can only be modified when PWPLOCK=0, STATUS.BUSY=0 and KEY.KEY=<CFGKEY Value>.

Bit 15 – PWPEN Note: This field can only be modified when PWPLOCK=0, BUSY=0 and KEY=<CFGKEY Value>.

Note: This field can only be modified when PWPLOCK=0, STATUS.BUSY=0 and KEY.KEY=<CFGKEY Value>.
ValueNameDescription
1ENABLEPWP is Enabled for the defined region
0DISABLEPWP is Not Enabled for the defined region

Bit 14 – PWPLOCK Note: PWPLOCK can be set the same time as other bits are written.

Note: PWPLOCK can be set the same time as PWPBASE and PWPSIZE are written. Once set, PWPLOCK can only be cleared by a reset (Writing zero has no effect.).
Note: This field can only be modified when PWPLOCK=0, STATUS.BUSY=0 and KEY.KEY=<CFGKEY Value>.
ValueNameDescription
1LOCKEDThis register is Locked and cannot be modified
0UNLOCKEDThis register is Not Locked and can be modified

Bit 13 – PWPMIR Mirrors Lower PFM settings to Upper or Upper PFM settings to Lower. Used to maintain WP consistency between Upper and Lower PFM when using PFSWAP. Note: This field can only be modified when PWPLOCK=0, BUSY=0 and KEY=<CFGKEY Value>. Note: Mirroring is only valid for a dual panel flash system.

Mirrors Lower PFM settings to Upper or Upper PFM settings to Lower. This feature can be used to maintain Write Protect (WP) consistency between Upper and Lower PFM when using PFSWAP.

Note: When Mirrored, the PWPBASE address bit that distinguishes between Upper and Lower PFM is treated as a “Don’t Care”, meaning it can be 0 or 1.
Note: This field can only be modified when PWPLOCK=0, STATUS.BUSY=0 and KEY.KEY=<CFGKEY Value>.
ValueNameDescription
1MIRRORPWP settings are Mirrored
0UNMIRRORPWP settings are NOT Mirrored

Bits 11:0 – PWPSIZE[11:0] Region Size is (PWPSIZE+1) * 4096. 0x000 = 4KB 0x001 = 8KB ... 0xFFF = 16MB Note: This field can only be modified when PWPLOCK=0, BUSY=0 and KEY=<CFGKEY Value>.

Pages Region Size is (PWPSIZE+1) *4KB.

0x000= 4KB

0x001= 8KB

...

0x3F= 256KB

Note: This field can only be modified when PWPLOCK=0, STATUS.BUSY=0 and KEY.KEY=<CFGKEY Value>.