|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:# `& T" _4 u8 L* c
% L/ T( C, r2 |: H+ E" s1. get --> (SPI_BASE)5 e$ A4 i* A5 `
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
4 {, J& P) F8 r2 n3. clear register (SPI_BASE + 90h)
" g9 u1 R' b, n9 C- T' ~5 |4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h9 T1 b4 ]# i4 I1 n' Y2 A
5. 下cmmand 給 SPI controller :
$ e! I) F$ J+ c# n% Z" f6. return register 在 Read byte SPI_BASE + 10h 位置. q# g% T! n( L& u( f. W1 B! { N
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
. v8 f# ?8 _, e- f. q$ E5 U& e- G$ u/ M' B3 t1 _
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|