|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:
2 v& V' b, t, \9 o0 S
0 E" ~0 i2 h5 _! x, v2 K% Y: h1. get --> (SPI_BASE)- Y. d6 m( l7 l
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)7 x, r; v/ P2 C# u3 ?# A
3. clear register (SPI_BASE + 90h)5 l6 F0 K! g l# Y
4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h5 }% z3 r: g" W2 ^4 ]6 x; @- }
5. 下cmmand 給 SPI controller :
0 c0 u, G- e% m6. return register 在 Read byte SPI_BASE + 10h 位置! M8 v9 H7 @ n; X; [" n+ d
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置. [. W" I( z$ l
+ g" x) P6 f: V4 B[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|