|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part: }$ Z! Y, P/ ^
$ U3 z& D3 \! h( F4 l. `% u) S
1. get --> (SPI_BASE); d2 z; O& V0 j& P4 Z& s9 d
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
0 ~6 S- I4 [, B5 z; }3 H3. clear register (SPI_BASE + 90h): t+ h# e6 B% i% x9 x
4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
: L! Z( P, i' y0 x. v! Y" l5. 下cmmand 給 SPI controller : 6 { i' _$ U, g, |* ^
6. return register 在 Read byte SPI_BASE + 10h 位置: Q, g0 I: G" T# z2 d
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置7 g( v& u* A# J( K/ B! \2 m6 }
l# P% e, v, i% Q
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|