码迷,mamicode.com
首页 > 其他好文 > 详细

FSHC之MCU接口部分理解

时间:2015-02-05 13:00:58      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

|_____________|       |_____|                                                                    |___________|

|                       |-----|AHB   |-------------------------------winc------------>|                    |

|                       |-----|  2     |------------------------------------rinc-------->|                    |

|  MCU               |<=>|FIFO  |<====================data=======>|                    |

|  AHB               |       |____ |                                                                      |   FIFO           |

|  interface         |                                                                                        |                    |

|                       |       |______|          |________|                                         |    wapper      |

|                       |       | AHB   |           |               |<---wfull--------------------|                    | 

|                       |<=>|  to     |<===>|fshc_reg   |<----wdata------------------|                    | 

|                       |       |  reg   |           |               |<-----rempty----------------|                    |

|  ___________ |       |_____|            |________|<------rdata-----------------|___________|

                                            图:FSHC的MCU接口部分

1.如果对FSHC模式配置走AHB2REG模块。

   比如:REG_FSHC_CMD_REG=0X32;

            REG_FSHC_SEND_CTRL = 0X343;

            REG_FSHC_MCU_ADRCMD_BIT_LEN =0X1D7;

2.对FLSH读写数据的访问走AHB2FIFO模块。

   比如:while(i<512)

          {

             write_buf[i] = i;

             i++;

           }

        REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j]);

        REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j+4]);

        REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j+8]);

        REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j+12]);

         

FSHC之MCU接口部分理解

标签:

原文地址:http://www.cnblogs.com/chip/p/4274209.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!