|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:* K* o _ h" Y8 e3 u; H4 l K
; o& t* S x( Z
1. get --> (SPI_BASE)% `" J$ [( }) `1 p' @* T; i
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)# J; p' o* m6 t! N8 b; O/ G3 \5 d
3. clear register (SPI_BASE + 90h)
+ {, W" |8 m$ t4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h5 y- F, v: K3 x
5. 下cmmand 給 SPI controller : ' b; M( P2 E) w( a! L; z9 N% S
6. return register 在 Read byte SPI_BASE + 10h 位置
. H2 d+ W3 s" w1 L5 Q3 Z7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
3 u+ A. a1 \ y; D" M/ s/ A9 t' C3 u* W! y3 C8 j+ X
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|