|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:
1 H0 g9 x7 F B7 U7 Q4 Y6 o _8 {- u9 n& N
1. get --> (SPI_BASE)
1 K) u# G2 x* ~0 H! C! I6 c y& u2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)2 F z" T$ V3 b! L
3. clear register (SPI_BASE + 90h)
! J4 {7 f7 G7 C6 l! _) A: W, y4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
- c6 ?7 V3 f0 S: V' f5. 下cmmand 給 SPI controller : / T% B2 o2 B# f% m6 X$ H
6. return register 在 Read byte SPI_BASE + 10h 位置; o, j+ k4 ^0 L7 E
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
[ u/ q! M7 C) y6 w3 q4 n' h
0 a% E8 N! R3 R2 f) a9 \" ^' j[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|