|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:
" p; r' h; ?1 B; Y7 ]4 W% I7 E( G
1. get --> (SPI_BASE)
3 D: m! w* z( n+ i0 L! d. a% R) E2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)6 D8 t a% f7 }8 q8 D, Q
3. clear register (SPI_BASE + 90h)
0 ], s: A. q9 `6 D$ T% U4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h* k. ^. x, F; ~5 @* q
5. 下cmmand 給 SPI controller :
1 F9 \! F5 Q& _/ W! `5 @6. return register 在 Read byte SPI_BASE + 10h 位置
& h# P) s8 l. X x8 s1 \/ J7. Read 64byte SPI_BASE + 10h ~ 4Fh位置- O' J( X- g) z4 @) {4 e h
- C8 z% ]& b' M/ Y[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|