|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:' M% w b: o+ n/ L$ g5 b
% P x9 `) H9 w$ i8 `1. get --> (SPI_BASE)
* d$ b: c1 A+ ~' y3 Y. G2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)$ c6 l+ l4 k: a/ `* a% n
3. clear register (SPI_BASE + 90h)1 ^# D) }* e, \
4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h7 |% e: O/ W# o% {2 t5 M& z5 Y5 q
5. 下cmmand 給 SPI controller : ! N& n- T; t8 R8 S$ U: q5 k9 r
6. return register 在 Read byte SPI_BASE + 10h 位置
3 J! Q5 U1 Z9 L; k$ `/ X" ~7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
, n* s/ I9 y5 \( R% Q+ r! G9 ]9 U6 h k. Z) U3 R# O0 g
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|