zoukankan      html  css  js  c++  java
  • FSHC之MCU接口部分理解

    |_____________|       |_____|                                                                    |___________|

    |                       |-----|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]);

             

  • 相关阅读:
    几种简单的博弈 1
    Luogu P2789 直线交点数
    搜索题简记
    并查集的妙用
    [qbzt寒假]线段树和树状数组
    [qbzt寒假]hash
    [qbzt寒假]Trie字典树
    博客阅读须知
    洛谷P1842 [USACO05NOV]奶牛玩杂技——题解
    2020SDOI游记
  • 原文地址:https://www.cnblogs.com/chip/p/4274209.html
Copyright © 2011-2022 走看看