|
发表于 2009-6-23 10:16:26
|
显示全部楼层
Read byte for SPI flash part:! e1 g- g% n8 c) Y- w# v4 w' ~: w
. W; i8 B7 }; v
1. get --> (SPI_BASE)0 n" j. @: r# k$ Y7 o- b/ O! A! A
2. Write PreFix Opcode(SPI_BASE + 94h, 95h) , Optype(SPI_BASE + 96h , 97h) , OPMENU (SPI_BASE + 98h ~9Fh)
" b! Y9 d% {* v- m; G0 F3. clear register (SPI_BASE + 90h)1 U; \ p3 L! {; X0 w/ d4 }
4. 給你要read 的address SPI_BASE + 0ah , 09h , 08h
, R( P: g+ v: o5. 下cmmand 給 SPI controller : ! q2 v5 m3 N2 S9 {, J" O
6. return register 在 Read byte SPI_BASE + 10h 位置
@4 }* N% A' g5 O2 S3 f7. Read 64byte SPI_BASE + 10h ~ 4Fh位置
0 Y; ?- B! f- g" C* Q L+ v+ O6 V
[ 本帖最后由 timothy0025 于 2009-6-23 10:18 编辑 ] |
|