2812的为啥倍频不起作用

[复制链接]
 楼主| G21372 发表于 2013-8-25 23:06 | 显示全部楼层 |阅读模式
2812采用30MHz晶振,5倍频,时钟应是150M,但实际上倍频没有作用,时钟还是30M,请问可能的原因在哪儿。还有就是DSP2812的140脚XF_PLL的引脚应该怎么接
yangguangaisha 发表于 2013-8-25 23:14 | 显示全部楼层
倍频要在程序里倍啊。。

// This function initializes the PLLCR register.

void Init_Pll(UINT val)

{

   volatile Uint16 iVol;

   PllVal = (val/2);   

   

   if (*SYSCTRL_REG_PLLCR != val)

   {

   

      EALLOW;

      *SYSCTRL_REG_PLLCR = val;

      EDIS;

   

   // Optional: Wait for PLL to lock.

   // During this time the CPU will switch to OSCCLK/2 until the PLL is

   // stable.  Once the PLL is stable the CPU will switch to the new PLL value.

   //

   // This switch time is 131072 CLKIN cycles as of Rev C silicon.  

   //   

   // Code is not required to sit and wait for the PLL to lock.   

   // However, if the code does anything that is timing critical,

   // and requires the correct clock be locked, then it is best to

   // wait until this switching has completed.  

   

   // If this function is run from waitstated memory, then the loop count can

   // be reduced as long as the minimum switch time is still met.



   // iVol is volatile so the compiler will not optimize this loop out

   //

   // The watchdog should be disabled before this loop, or fed within

   // the loop.   

   

      DisableDog();

   

   // Wait lock cycles.  

   // Note,  This loop is tuned to 0-waitstate RAM memory.  If this

   // function is run from wait-stated memory such as Flash or XINTF,

   // then the number of times through the loop can be reduced

   // accordingly.

      for(iVol= 0; iVol< ( (131072/2)/12 ); iVol++)

      {

   

      }

   }

}
zhangmangui 发表于 2013-8-26 19:06 | 显示全部楼层
2812有个使能PLL的引脚   不知道你是否将此引脚连接合理
嗯 就是140引脚   应该是拉高   记得不太清楚了  
你可以查查
tianli1980 发表于 2013-8-28 18:20 | 显示全部楼层
初步怀疑是没有看门狗时,DSP对PLL管脚采样不正常引起的
smilingangel 发表于 2013-8-29 00:27 | 显示全部楼层
跟楼上两位的先学习了解下的,很不错的介绍的讨论的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

197

主题

1658

帖子

5

粉丝
快速回复 在线客服 返回列表 返回顶部

197

主题

1658

帖子

5

粉丝
快速回复 在线客服 返回列表 返回顶部