|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:
* W4 f: K: G; w& G$ F |$ s" ^' x! ]4 A: {# d5 u K
1. get --> (SPI_BASE)
5 @: Q& ]/ R3 d: A$ U2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
# q4 K$ ?* U: o( F4 F1 x/ f9 i" w3. clear register (SPI_BASE + 90h)
5 y1 ^1 c& ?' m( X8 ]4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
{# _8 l. J' n) n A' h( d5. 下cmmand 給 SPI controller :
5 ?8 G" w3 b6 |/ e6. return register 在 Read byte SPI_BASE + 10h 位置; s) a# ?( t- E: w. C: c: o2 v
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置% Q) \. ^$ G8 [: Z2 O9 T
1 o. S( b1 y6 W7 _: q$ t/ Z
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|