|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:. r4 d1 a9 a0 W
( v- s8 v- Y0 ?* J, z6 b! @ h: L1. get --> (SPI_BASE)' B! P! W" ]6 n; P4 \1 F8 `/ f
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
/ M( X* h+ {5 a' |1 d9 f2 ^* _7 q1 b3. clear register (SPI_BASE + 90h)
: l/ d# d) {" h) x: q4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
1 u0 I+ r* Z) I" d/ u6 h$ u R5 h5. 下cmmand 給 SPI controller :
# k0 F o/ f' W& |; o6. return register 在 Read byte SPI_BASE + 10h 位置' w% o2 O2 S: d# U* d+ u
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置; u, M2 q) n* S
) x z* j: v3 b7 m s
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|