|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:, a5 ^# L- c* {+ V/ E
3 o/ w' O9 g) `& }1 O% g' _- l! I1. get --> (SPI_BASE)
4 a( J- N7 I! N' o: J- d2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
5 I# y7 ~9 ~. K7 J3. clear register (SPI_BASE + 90h)
( Z) E8 y8 [/ P- L1 N6 G/ p4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
4 X& d" e. _4 m* y: j' s5. 下cmmand 給 SPI controller : . E ]0 t$ H# R3 V
6. return register 在 Read byte SPI_BASE + 10h 位置
0 w# h) y' `% |1 ~; o# \ Q7. Read 64byte SPI_BASE + 10h ~ 4Fh位置7 A7 ~* J6 I/ M) R+ ~
% `2 Y* \: k: d9 s7 ^3 F2 ^4 `[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|