Motorola MCF5281, MCF5282 CFM User Status Register Cfmustat, Cfmustat Field Descriptions, Cbeif

Models: MCF5282 MCF5281

1 816
Download 816 pages 28.97 Kb
Page 157
Image 157

Memory Map

6.3.4.7CFM User Status Register (CFMUSTAT)

The CFMUSTAT reports Flash state machine command status, array access errors, protection violations, and blank check status.

 

7

6

5

1

0

Field

CBEIF

CCIF

PVIOL

 

ACCERR

BLANK

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

1100_0000

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

R/W

R

 

 

 

 

R/W

 

 

 

 

 

 

 

 

 

 

 

Address

 

 

 

IPSBAR + 0x1D_0020

 

 

 

 

 

 

 

 

 

 

 

Figure 6-11. CFM User Status Register (CFMUSTAT)

NOTE

Only one CFMUSTAT bit should be cleared at a time.

 

 

Table 6-10. CFMUSTAT Field Descriptions

 

 

 

 

 

Bits

Name

 

 

Description

 

 

 

 

7

CBEIF

 

Command buffer empty interrupt flag. The CBEIF flag indicates that the command buffer

 

 

 

for the interleaved Flash physical blocks is empty and that a new command sequence can be

 

 

 

started. Clear CBEIF by writing it to 1. Writing a 0 to CBEIF has no effect but can be used

 

 

 

to abort a command sequence. The CBEIF bit can trigger an interrupt request if the CBEIE

 

 

 

bit is set in CFMMCR. While CBEIF is clear, the CFMCMD register is not writable.

 

 

 

1

Command buffer is ready to accept a new command.

 

 

 

0

Command buffer is full.

 

 

 

 

6

CCIF

 

Command complete interrupt flag. The CCIF flag indicates that no commands are pending

 

 

 

for the Flash physical blocks. CCIF is set and cleared automatically upon start and

 

 

 

completion of a command. Writing to CCIF has no effect. The CCIF bit can trigger an

 

 

 

interrupt request if the CCIE bit is set in CFMCR.

 

 

 

1

All commands are completed

 

 

 

0

Command in progress

 

 

 

 

5

PVIOL

 

Protection violation flag. The PVIOL flag indicates an attempt was made to initiate a

 

 

 

program or erase operation in a Flash logical sector denoted as protected by CFMPROT.

 

 

 

Clear PVIOL by writing it to 1. Writing a 0 to PVIOL has no effect. While PVIOL is set in

 

 

 

any this register, it is not possible to launch another command.

 

 

 

1

A protection violation has occurred

 

 

 

0

No failure

 

 

 

 

4

ACCERR

 

Access error flag. The ACCERR flag indicates an illegal access to the CFM array or

 

 

 

registers caused by a bad program or erase sequence. ACCERR is cleared by writing it to 1.

 

 

 

Writing a 0 to ACCERR has no effect. While ACCERR is set in this register, it is not

 

 

 

possible to launch another command. See Section 6.4.3.4, “Flash User Mode Illegal

 

 

 

Operations,” for details on what sets the ACCERR flag.

 

 

 

1

Access error has occurred

 

 

 

0

No failure

 

 

 

 

3

 

Reserved, should be cleared.

 

 

 

 

 

MOTOROLA

Chapter 6. ColdFire Flash Module (CFM)

6-15

Page 157
Image 157
Motorola MCF5281, MCF5282 CFM User Status Register Cfmustat, Only one Cfmustat bit should be cleared at a time, Cbeif