当前位置:首页 >> 信息与通信 >>

Idle project for AT91RM9200DK


T91 Basic Idle project for AT91RM9200DK
Introduction
The goal of this demonstration project is to show how to move the AT91RM9200 in IDLE state

This very small application is controlled through the DBGU serial port messages.

User can send ‘p’ or ‘c’ characters to move the core in idle mode. Other characters send while in idle mode will activate the core. Description
There are 2 ways to go in IDLE mode: ? ? ? ? ? ? Configuring the processor clock bit in the PMC (power management controller) Using the CP15 function “Wait for Interrupt” of the ARM920T: MCR p15, 0, Rd,

c7, c0,4 While running the application send characters each seconds through the DBGU. An interrupt is triggered when a character is received. If this character is ‘P’ then the AT91RM9200 goes in idle mode configuring the power management controller. If character sent is ‘C’ then the AT91RM9200 goes in idle mode using CP15 function.

DBGU Trace and Command -I- ====================================== -I- AT91RM9200 idle mode example -I- --------------------------------------I- Hit P to enter in idle mode using PMC -I- Hit C to enter in idle mode using CP15 -I- Hit another key to exit idle mode -I- ======================================

IDLE 模式测试方法 下面来说明用 JTAG/ICE 的方式来做 EBD9200IDLE 模式的测试。基本条件如下: 1. 9 针串口插在底版上标号为“P1”的串口插座上,25 针并口线一头插在 PC 机并口,另 一头插在 JTAG/ICE 转换器上,JTAG/ICE 转换器的排线一头插在底版上标号为“J22” 的 20Pins 槽上,另一头插在 JTAG/ICE 转换器的的右边即靠近 SN74HC244 10 脚这边; 2. 将底版上标号为“J23”的跳线跳到靠近 J5 这边; 3. 核心板上标号“J2”的跳线跳到靠近“C18”的这边; 4. 底版上其它跳线配置为:J13,J16 要插好,JP1 插在靠近 C14 这边,J12 插在靠近 C22 这边; 5. 9V 电源线(最好用我公司提供的专用产品)插在标号为“JACK1”的 DC 插座上。 当您上电后 ARM9 调试代理软件 EBD9200 超级终端的现象和电路板的现象如下图所示的话 就说明连接正确:

将待测试的文件通过软件汇编和编译在超级终端中刚开始现象如下 参 加 汇 编 和 文 件 目 录 AT91RM9200-BasicIdle-ARM1_2-2_0/AT91RM9200-BasicIdle/compil/BasicIdle.mcp



按“P“的现象如下

按“C”的现象如下

按其它键的现象如下

测试完毕。



相关文章:
更多相关标签: