|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:' e2 e) G j* x& N. V; M
$ |9 F7 w+ \- x- f
1. get --> (SPI_BASE)
# J" v" c0 {2 q: k& d2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)1 S" x$ n c3 i! a6 w( S- }) S6 W
3. clear register (SPI_BASE + 90h)
; z( L7 m8 W2 E( ^4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h* ?1 V8 H4 D; O, `
5. 下cmmand 給 SPI controller : " p: z/ t, U4 X( C: J6 d! a
6. return register 在 Read byte SPI_BASE + 10h 位置) f* B' O/ [* d9 f3 C% O; u* ]( Z
7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
% f3 `3 m7 ?* S" E9 d. B0 p6 h- x6 B
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|