mcf5307cft90b Freescale Semiconductor, Inc, mcf5307cft90b Datasheet - Page 127

no-image

mcf5307cft90b

Manufacturer Part Number
mcf5307cft90b
Description
Mcf5307 Coldfire Integrated Microprocessor User
Manufacturer
Freescale Semiconductor, Inc
Datasheet
In the current state is modified.
4.13 Cache Initialization Code
The following example sets up the cache for FLASH or ROM space only.
Read miss
Read hit
Write miss
(copyback)
Write miss
(write-through)
Write hit
(copyback)
Write hit
(write-through)
Cache invalidate
Cache push
Cache push
Access
move.l#0x81000300,D0 //enable cache, invalidate it,
movecD0, CACR
move.l #0xFF00C000,D0//cache FLASH space, enable,
movecD0,ACR0
Table 4-9. Cache Line State Transitions (Current State Modified)
WD3 Write data to memory;
WD4 Write data to memory and to cache;
CD1 Push modified line to buffer;
CD2 Supply data to processor;
CD3 Push modified line to buffer;
CD4 Write data to cache;
CD5 No action (modified data lost);
CD6 Push modified line to memory;
CD7 Push modified line to memory;
read new line from memory and update cache;
supply data to processor;
write push buffer contents to memory;
go to valid state.
stay in modified state.
read new line from memory and update cache;
write push buffer contents to memory;
stay in modified state.
stay in modified state.
Cache mode changed for the region corresponding to this line. To avoid this state,
execute a CPUSHL instruction or set CACR[CINVA] before switching modes.
stay in modified state.
go to valid state.
Cache mode changed for the region corresponding to this line. To avoid this state,
execute a CPUSHL instruction or set CACR[CINVA] before switching modes.
go to invalid state.
go to invalid state.
go to valid state.
Freescale Semiconductor, Inc.
For More Information On This Product,
//default mode is cache-inhibited imprecise
//ignore FC2, cacheable, writethrough
Chapter 4. Local Memory
Go to: www.freescale.com
Response
Cache Initialization Code
4-29

Related parts for mcf5307cft90b