mcf5407 Freescale Semiconductor, Inc, mcf5407 Datasheet - Page 267

no-image

mcf5407

Manufacturer Part Number
mcf5407
Description
Mcf5407 Coldfire Integrated Microprocessor User
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mcf5407AI162
Manufacturer:
FREESCALE
Quantity:
201
Part Number:
mcf5407AI162
Manufacturer:
FREESCAL
Quantity:
132
Part Number:
mcf5407AI162
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf5407AI162
Manufacturer:
ALTERA
0
Part Number:
mcf5407AI220
Manufacturer:
freescaie
Quantity:
6
Part Number:
mcf5407AI220
Manufacturer:
Freescale Semiconductor
Quantity:
135
Part Number:
mcf5407AI220
Manufacturer:
FREESCALE
Quantity:
1 831
Part Number:
mcf5407AI220
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf5407AI220
Manufacturer:
NXP
Quantity:
25
Part Number:
mcf5407CAI162
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
10.4.1.4 Code Example
The code below provides an example of how to initialize the chip-selects. Only chip selects
0, 1, 2, and 3 are programmed here; chip selects 4, 5, 6, and 7 are left invalid. MBARx
defines the base of the module address space.
CSAR0 EQU MBARx+0x080
CSMR0 EQU MBARx+0x084
CSCR0 EQU MBARx+0x08A
CSAR1 EQU MBARx+0x08C
CSMR1 EQU MBARx+0x090
CSCR1 EQU MBARx+0x096
CSAR2 EQU MBARx+0x098
CSMR2 EQU MBARx+0x09C
CSCR2 EQU MBARx+0x0A2
CSAR3 EQU MBARx+0x0A4
CSMR3 EQU MBARx+0x0A8
CSCR3 EQU MBARx+0x0AE
CSAR4 EQU MBARx+0x0B0
CSAR4 EQU MBARx+0x0B4
CSMR4 EQU MBARx+0x0BA
Bits
7–6
2–0
8
5
4
3
BSTW Burst write enable. Specifies whether burst writes are used for memory associated with each CSn.
Name
BSTR Burst read enable. Specifies whether burst reads are used for memory associated with each CSn.
BEM
AA
PS
Auto-acknowledge enable. Determines the assertion of the internal transfer acknowledge for
accesses specified by the chip-select address.
0 No internal TA is asserted. Cycle is terminated externally.
1 Internal TA is asserted as specified by WS. Note that if AA = 1 for a corresponding CSn and the
Port size. Specifies the width of the data associated with each chip select. It determines where data
is driven during write cycles and where data is sampled during read cycles. See Section 10.3.1.1,
“8-, 16-, and 32-Bit Port Sizing.”
00 32-bit port size. Valid data sampled and driven on D[31:0]
01 8-bit port size. Valid data sampled and driven on D[31:24]
1x 16-bit port size. Valid data sampled and driven on D[31:16]
Byte enable mode. Specifies the byte enable operation. Certain SRAMs have byte enables that must
be asserted during reads as well as writes. BEM can be set in the relevant CSCR to provide the
appropriate mode of byte enable in support of these SRAMs.
0 Neither BE nor BWE is asserted for read. BWE is generated for data write only.
1 BE is asserted for read; BWE is asserted for write.
0 Data exceeding the specified port size is broken into individual, port-sized non-burst reads. For
1 Enables data burst reads larger than the specified port size, including longword reads from 8- and
0 Break data larger than the specified port size into individual port-sized, non-burst writes. For
1 Enables burst write of data larger than the specified port size, including longword writes to 8 and
Reserved, should be cleared.
external system asserts an external TA before the wait-state countdown asserts the internal TA, the
cycle is terminated. Burst cycles increment the address bus between each internal termination.
example, a longword read from an 8-bit port is broken into four 8-bit reads.
16-bit ports, word reads from 8-bit ports, and line reads from 8-, 16-, and 32-bit ports.
example, a longword write to an 8-bit port takes four byte writes.
16-bit ports, word writes to 8-bit ports and line writes to 8-, 16-, and 32-bit ports.
Table 10-10. CSCRn Field Descriptions
;Chip select 0 address register
;Chip select 0 mask register
;Chip select 0 control register
;Chip select 1 address register
;Chip select 1 mask register
;Chip select 1 control register
;Chip select 2 address register
;Chip select 2 mask register
;Chip select 2 control register
;Chip select 3 address register
;Chip select 3 mask register
;Chip select 3 control register
;Chip select 4 address register
;Chip select 4 mask register
;Chip select 4 control register
Chapter 10. Chip-Select Module
Description
Chip-Select Registers
10-9

Related parts for mcf5407