`
java-mans
  • 浏览: 11433760 次
文章分类
社区版块
存档分类
最新评论

NET2272.C 代码分析——SetProcessorSpecificDefaultConfiguration

 
阅读更多

本函数的作用是对NET2272与ADSP的接口进行配置。

首先要使能内存异步块3

*pEBIU_AMGCTL |= 0xF;

ssync();

Asynchronous Memory Global
Control Register (EBIU_AMGCTL)


The Asynchronous Memory Global Control register configures global aspects of the controller. It contains bank enables and other information as described in this section. This register should not be programmed while the AMC is in use. The EBIU_AMGCTL register should be the last control register written to when configuring the processor to access external memory-mapped asynchronous devices. Writes to this register should be followed by an SSYNC instruction to ensure that the asynchronous bank is enabled before an access is attempted.

Figure 16-3. Asynchronous Memory Global Control (EBIU_AMGCTL)

Within the EBIU_AMGCTL register, the AMCKEN bit is used for external devices that are connected to CLKOUT. When it is needed, the CLKOUT/SCLK1 pin can be enabled by setting the AMCKEN bit in the EBIU_AMGCTL register. In systems that do not use CLKOUT/SCLK1, set the AMCKEN bit to 0.

Writing a “1” to the AMBEN2–0 bits will enable specific asynchronous memory banks, while a writing a “0” will disable specific banks. If a bus operation accesses a disabled asynchronous memory bank, the EBIU responds by acknowledging the transfer and asserting the error signal on the requesting bus. The error signal propagates back to the requesting bus master. This generates a hardware exception to the core, if it is the requester. For DMA mastered requests, the error is captured in the respective status register. If a bank is not fully populated with memory, then the memory likely aliases into multiple address regions within the bank. This aliasing condition is not detected by the EBIU, and no error response is asserted.

The 16-bit packing enable bits (B0PEN, B1PEN, B2PEN and B3PEN) are available to control the access size for each asynchronous memory bank separately. When one of these bits is set to one, any request to the corresponding AMC (Asynchronous Memory Controller) bank will result in a 16-bit access to external devices. Regardless of whether the request comes from a 8-bit, 16-bit, 32-bit data fetch or whether the fetch originates from the DMA controller, the EBIU will perform a 16-bit access. In the case of 32-bit requests to the AMC, a dual 16-bit access will be made to fetch 32-bits.

For more details on the use of ABE3–0, please refer to "Byte Enables" on another page.

When a 16-bit packing enable bit is set to zero (that is, “cleared”), the AMC treats any request to the dedicated bank as a 32-bit access to external device. Regardless of the kind of access (8,16 or 32-bit fetch), the external bus will perform a 32-bit access.

The CDPRIO bit configures the AMC to control the priority requests that occur simultaneously to the EBIU from either the processor core or the DMA controller. When this bit is set to zero, requests from either core have priority over a request from the DMA controller to the AMC, unless the DMA is “urgent”. When the CDPRIO bit is set, all requests from the DMA controllers, including the memory DMAs, have priority over core accesses. For the purposes of this discussion, core accesses include both data fetches and instruction fetches.

分享到:
评论

相关推荐

    ldd示例代码——第三版配套源代码.rarldd示例代码——第三版配套源代码.rarldd示例代码——第三版配套源代码.rarldd示例代码——第三版配套源代码.rar

    ldd示例代码——第三版配套源代码.rarldd示例代码——第三版配套源代码.rarldd示例代码——第三版配套源代码.rar

    C语言项目——企业员工管理系统.zip

    C语言项目——企业员工管理系统.zip C语言项目——企业员工管理系统.zip C语言项目——企业员工管理系统.zip C语言项目——企业员工管理系统.zip C语言项目——企业员工管理系统.zip C语言项目——企业员工管理系统....

    C语言项目——贪吃蛇游戏.zip

    C语言项目——贪吃蛇游戏.zip C语言项目——贪吃蛇游戏.zip C语言项目——贪吃蛇游戏.zip C语言项目——贪吃蛇游戏.zip C语言项目——贪吃蛇游戏.zip C语言项目——贪吃蛇游戏.zip C语言项目——贪吃蛇游戏.zip ...

    C语言项目——火车订票系统.zip

    C语言项目——火车订票系统.zip C语言项目——火车订票系统.zip C语言项目——火车订票系统.zip C语言项目——火车订票系统.zip C语言项目——火车订票系统.zip C语言项目——火车订票系统.zip C语言项目——火车...

    C语言项目——超级万年历.zip

    C语言项目——超级万年历.zip C语言项目——超级万年历.zip C语言项目——超级万年历.zip C语言项目——超级万年历.zip C语言项目——超级万年历.zip C语言项目——超级万年历.zip C语言项目——超级万年历.zip ...

    C语言项目——图书管理系统.zip

    C语言项目——图书管理系统.zip C语言项目——图书管理系统.zip C语言项目——图书管理系统.zip C语言项目——图书管理系统.zip C语言项目——图书管理系统.zip C语言项目——图书管理系统.zip C语言项目——图书...

    C语言项目——MP3音乐播放器.zip

    C语言项目——MP3音乐播放器.zip C语言项目——MP3音乐播放器.zip C语言项目——MP3音乐播放器.zip C语言项目——MP3音乐播放器.zip C语言项目——MP3音乐播放器.zip C语言项目——MP3音乐播放器.zip C语言项目——...

    C语言项目——商品管理系统.zip

    C语言项目——商品管理系统.zip C语言项目——商品管理系统.zip C语言项目——商品管理系统.zip C语言项目——商品管理系统.zip C语言项目——商品管理系统.zip C语言项目——商品管理系统.zip C语言项目——商品...

    C语言项目——通讯录管理系统.zip

    C语言项目——通讯录管理系统.zip C语言项目——通讯录管理系统.zip C语言项目——通讯录管理系统.zip C语言项目——通讯录管理系统.zip C语言项目——通讯录管理系统.zip C语言项目——通讯录管理系统.zip C语言...

    C语言项目——网络通信编程.zip

    C语言项目——网络通信编程.zip C语言项目——网络通信编程.zip C语言项目——网络通信编程.zip C语言项目——网络通信编程.zip C语言项目——网络通信编程.zip C语言项目——网络通信编程.zip C语言项目——网络...

    C语言项目——学生信息管理系统.zip

    C语言项目——学生信息管理系统.zip C语言项目——学生信息管理系统.zip C语言项目——学生信息管理系统.zip C语言项目——学生信息管理系统.zip C语言项目——学生信息管理系统.zip C语言项目——学生信息管理系统....

    C语言项目——学生个人消费管理系统.zip

    C语言项目——学生个人消费管理系统.zip C语言项目——学生个人消费管理系统.zip C语言项目——学生个人消费管理系统.zip C语言项目——学生个人消费管理系统.zip C语言项目——学生个人消费管理系统.zip C语言项目...

    C语言项目——窗体版图书管理系统.zip

    C语言项目——窗体版图书管理系统.zip C语言项目——窗体版图书管理系统.zip C语言项目——窗体版图书管理系统.zip C语言项目——窗体版图书管理系统.zip C语言项目——窗体版图书管理系统.zip C语言项目——窗体版...

    python项目——火车票分析助手.zip

    python项目——火车票分析助手.zip python项目——火车票分析助手.zip python项目——火车票分析助手.zip python项目——火车票分析助手.zip python项目——火车票分析助手.zip python项目——火车票分析助手.zip ...

    python项目——Excel数据分析师.zip

    python项目——Excel数据分析师.zip python项目——Excel数据分析师.zip python项目——Excel数据分析师.zip python项目——Excel数据分析师.zip python项目——Excel数据分析师.zip python项目——Excel数据分析师....

    C语言项目——12个实用项目.zip

    C语言项目——12个实用项目.zipC语言项目——12个实用项目.zipC语言项目——12个实用项目.zipC语言项目——12个实用项目.zipC语言项目——12个实用项目.zipC语言项目——12个实用项目.zipC语言项目——12个实用项目....

    python项目——开心麻花影视作品分析.zip

    python项目——开心麻花影视作品分析.zip python项目——开心麻花影视作品分析.zip python项目——开心麻花影视作品分析.zip python项目——开心麻花影视作品分析.zip python项目——开心麻花影视作品分析.zip ...

    python项目——DIY字符画.zip

    python项目——DIY字符画.zip python项目——DIY字符画.zip python项目——DIY字符画.zip python项目——DIY字符画.zip python项目——DIY字符画.zip python项目——DIY字符画.zip python项目——DIY字符画.zip ...

    python项目——AI智能联系人管理.zip

    python项目——AI智能联系人管理.zip python项目——AI智能联系人管理.zip python项目——AI智能联系人管理.zip python项目——AI智能联系人管理.zip python项目——AI智能联系人管理.zip python项目——AI智能联系...

    .arch源代码——第1章.zip

    .arch源代码——第1章.zip

Global site tag (gtag.js) - Google Analytics