|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:
6 }1 C) G$ T5 k
# a5 E# J3 C. b/ n1. get --> (SPI_BASE)
0 U4 b( @6 W8 }' D2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh); a, i( d, w9 ?0 Y+ j6 \/ D o
3. clear register (SPI_BASE + 90h)" K0 d5 t3 U/ T7 S
4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
% n) u5 Q- r0 u3 y4 P$ }5 f5. 下cmmand 給 SPI controller :
7 A% ^3 t/ l) A0 j5 }6. return register 在 Read byte SPI_BASE + 10h 位置% s+ ~% Y; w; z* i. v; \
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
% M4 E" D! y N8 n' L( O& \" K, W* o2 K
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|