FlashMedia Interface
MOTOROLA
IDE and FlashMedia Interface
13-11
.
13.4.1.1
FlashMedia Clock Generation and Configuration
Clock generation and selection of the card type is accomplished by programming the
FLASHMEDIACONFIG register as shown in the following table.
Note:
1. The clock generator will increase the length of some SCLK_OUT clock cycles to avoid bus contention when the SDIO
pin switches from input to output, or from output to input mode. The clock generator will stop the SCLK_OUT clock if
this is necessary to avoid buffer overrun or buffer underrun.
Note:
2. It is legal to reprogram these bits while the interface is running. No glitch will occur on sclk_out.
Note:
3. In SD mode, this bit should be programmed 1. In MemoryStick mode, programming 1 gives more relaxed timing,
however MemoryStick specs stipulate it should be 0.
Table 13-8 FlashMedia Registers
ADDRESS
MBAR2BAS +
ACCESS
SIZE
BITS
NAME
DESCRIPTION
0x460
RW
32
FLASHMEDIACONFIG
clock and general configuration
0x464
RW
32
FLASHMEDIACMD1
Command register for interface
1
0x468
RW
32
FLASHMEDIACMD2
Command register for interface
2
0x46C
RW
32
FLASHMEDIADATA1
Data register for interface 1
0x470
RW
32
FLASHMEDIADATA2
Data register for interface 2
0x474
RW
32
FLASHMEDIASTATUS
Status register
0x478
RW
32
FLASHMEDIAINTEN
Interrupt enable register
0x47C
R
32
FLASHMEDIAINTSTAT
Interrupt status register
0x47C
W
32
FLASHMEDIAINTCLEAR
Interrupt clear register
Table 13-9 FLASHMEDIACONFIG Register Configuration
FLASHMEDIAC
ONFIG
BITS
FIELD NAME
MEANING
RES
NOTES
7:0
CLOCKCOUNT0
(CLOCKCOUNT0+1) is the sclk_out_pin low
period in number of bus clocks
15
1,2
15:8
CLOCKCOUNT1
(CLOCKCOUNT1+1) is the sclk_out_pin high
period in number of bus clocks
15
1,2
17,16
STOPCLOCK
00: normal operation
01: freeze clock low
10: freeze clock high
01
2
18
-
reserved
0
19
RECEIVEEDGE
1: receive data on falling edge of SCLK_OUT pin
0: receive data on rising edge of SCLK_OUT pin
03
21:20
CARDTYPE
00: Sony MemoryStick
01: SecureDigital, 1-bit serial data
11: SecureDigital, 4-bit serial data
0
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.