Memory Map

6.3.4.4CFM Protection Register (CFMPROT)

The CFMPROT specifies which Flash logical sectors are protected from program and erase operations.

Field

Reset

R/W

Field

Reset

R/W Address

31

16

PROT

See Note

R/W

15

0

PROT

See Note

R/W

IPSBAR + 0x1D_0010

Note: The CFMPROT register is loaded at reset from the Flash Program/Erase Sector Protection longword stored at the array base address + 0x0000_0400.

Figure 6-7. CFM Protection Register (CFMPROT)

The CFMPROT register is always readable and only writeable when LOCK = 0. To change which logical sectors are protected on a temporary basis, write CFMPROT with a new value after the LOCK bit in CFMCR has been cleared. To change the value of CFMPROT that will be loaded on reset, the protection byte in the Flash configuration field must first be temporarily unprotected using the method just described before reprogramming the protection bytes. Then the Flash Protection longword at offset 0x1D_0400 must be written with the desired value.

Table 6-7. CFMPROT Field Descriptions

Bits

Name

 

Description

 

 

 

31–0

PROT[31:0]

Sector protection. Each Flash logical sector can be protected from program and erase

 

 

operations by setting its corresponding PROT bit.

 

 

1

Logical sector is protected.

 

 

0

Logical sector is not protected.

 

 

 

 

The CFMPROT controls the protection of thirty-two 16-Kbyte Flash logical sectors in the 512-Kbyte Flash array. Figure 6-8shows the association between each bit in the CFMPROT and its corresponding logical sector.

6-12

MCF5282 User’s Manual

MOTOROLA

Page 154
Image 154
Motorola MCF5282, MCF5281 user manual CFM Protection Register Cfmprot, Cfmprot Field Descriptions