|
|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:
; w4 b) Y; g4 e: i$ T2 m# [4 ]
, O8 e4 C! w y) v7 t2 }7 B1. get --> (SPI_BASE)
' a8 W" {* I* m6 i/ Z8 v& q2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
. \) I" d+ T1 u3. clear register (SPI_BASE + 90h)
8 `% B0 J! `" H' E8 _4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h0 q, I( K# q, M2 g/ b
5. 下cmmand 給 SPI controller :
$ }- S2 B# T1 {6. return register 在 Read byte SPI_BASE + 10h 位置
* l# [/ o8 T$ j7. Read 64byte SPI_BASE + 10h ~ 4Fh位置- z4 v% T1 y! `6 ^7 }
U+ a) ~! L: ?- a- X+ s! ^% N9 k[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|