|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:, c1 X6 |; J$ |" ~0 G! @
/ t9 Q% N9 r7 N3 w1. get --> (SPI_BASE): e9 q5 B. q- A
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
% @, I& ~* @0 X8 h) p1 S y3. clear register (SPI_BASE + 90h)
1 S( V, W1 a7 v6 ~ Z4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
5 C$ K" f! N9 }) x7 o- V" d2 W" a5. 下cmmand 給 SPI controller :
* ~5 h3 a( m: s6 V2 o0 q; ]& W6. return register 在 Read byte SPI_BASE + 10h 位置
. d m7 e. L1 V- I7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
, p4 [; H: T; s( z1 S
# V# j$ t- p9 n- E, `% `[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|