标题: dsp6713源码及CADENCE原理图与PCB文件 [打印本页]

作者: QWQ233    时间: 2018-11-24 22:40
标题: dsp6713源码及CADENCE原理图与PCB文件
cadence视频和PDF于争博士教程



单片机源程序如下:
  1. /* ------------------------------------------------------------------ */
  2. /* Copyright declaration                                              */
  3. /* ------------------------------------------------------------------ */
  4. /* ------------------------------------------------------------------ */
  5. /* FileName:        DSP6713_CHIP.c                                    */
  6. /* Writen by:       Yu zheng                                          */
  7. /* ------------------------------------------------------------------ */

  8. #define CHIP_6713

  9. /* Include header files */
  10. #include <c6x.h>
  11. #include <csl.h>
  12. #include <csl_irq.h>
  13. #include <csl_pll.h>
  14. #include "DSP6713_CHIP.h"

  15. /* ------------------------------------------------------------------ */
  16. static void PLLDelay(Uint32 count)
  17. {
  18.    Uint32 i = count;
  19.    while(i--)
  20.    {
  21.      asm(" NOP 1");
  22.    }
  23. }

  24. /* ------------------------------------------------------------------ */
  25. static void initPLL()
  26. {
  27.         // temporarily disable global interrupts
  28.         Uint32 gie;
  29.         gie = IRQ_globalDisable();

  30.         //******************  Initialize PLL Registers *****************         
  31.         // Put PLL in bypass
  32.         PLL_bypass();
  33.         PLLDelay(20);
  34.        
  35.         // Reset PLL
  36.         PLL_reset();
  37.         PLLDelay(20);
  38.        
  39.         // Set main multiplier/divisor
  40.     PLL_RSET(PLLDIV0,
  41.                      PLL_PLLDIV0_RMK(PLL_PLLDIV0_D0EN_ENABLE, PLL_PLLDIV0_RATIO_OF(0))
  42.                      );                           // 12.288/1 = 12.288 MHz

  43.         PLL_RSET(PLLM, PLL_PLLM_PLLM_OF(17)); // 12.288*17 = 208 MHz
  44.                                                  

  45.     // Set DSP clock
  46.     PLL_RSET(PLLDIV1,
  47.                      PLL_PLLDIV1_RMK(PLL_PLLDIV1_D1EN_ENABLE, PLL_PLLDIV1_RATIO_OF(0))
  48.                      );                                                  // 208/1 = 208 MHz
  49.     PLLDelay(20);   

  50.     // Set peripheral clock
  51.     PLL_RSET(PLLDIV2,
  52.                      PLL_PLLDIV2_RMK(PLL_PLLDIV2_D2EN_ENABLE, PLL_PLLDIV2_RATIO_OF(1))
  53.                      );                                                  // 208/2 = 104 MHz
  54.     PLLDelay(20);
  55.    
  56.     // Set EMIF clock
  57.     PLL_RSET(PLLDIV3,
  58.                      PLL_PLLDIV3_RMK(PLL_PLLDIV3_D3EN_DISABLE, PLL_PLLDIV3_RATIO_OF(1))
  59.                      );                                                 // 208/2 = 104 MHz
  60.     PLLDelay(20);
  61.    
  62.     PLL_RSET(OSCDIV1,
  63.                      PLL_OSCDIV1_RMK(PLL_OSCDIV1_OD1EN_ENABLE,PLL_OSCDIV1_RATIO_OF(1))
  64.                      );                                                 // 208/2 = 104 MHz
  65.    
  66.     // Take PLL out of reset. Wait for PLL to lock
  67.     PLL_deassert();
  68.     PLLDelay(1500);
  69.    
  70.     // Enalbe PLL
  71.     PLL_enable();
  72.     PLLDelay(20);

  73.         // restore global interrupts back
  74.         IRQ_globalRestore(gie);

  75. }  // end of initPLL

  76. /* ------------------------------------------------------------------ */
  77. void DSP6713_chipinit()
  78. {
  79.         /* register DEVCFG */
  80.         CHIP_Config MyChipConfig =
  81.         {
  82.                 CHIP_DEVCFG_RMK(
  83.                                                 CHIP_DEVCFG_EKSRC_SYSCLK3,
  84.                                                 CHIP_DEVCFG_TOUT1SEL_TOUT1PIN,
  85.                                                 CHIP_DEVCFG_TOUT0SEL_TOUT0PIN,
  86.                                                 CHIP_DEVCFG_MCBSP0DIS_0,
  87.                                                 CHIP_DEVCFG_MCBSP1DIS_0
  88.                                                    )
  89.         };
  90.         CHIP_config(&MyChipConfig);

  91.         initPLL();
  92. }

  93. /* ------------------------------------------------------------------ */
  94. /* end of DSP6713_init.c                                              */
  95. /* ------------------------------------------------------------------ */
复制代码

所有资料51hei提供下载:
于博士CADENCE视频教程之相关配套资料.rar (3.42 MB, 下载次数: 72)



作者: at0mge    时间: 2019-6-24 10:55
正好可以拿来参考学习,非常感谢分享。
作者: hexingxue    时间: 2020-5-30 16:21
正在学习,非常感谢。
作者: cuprum    时间: 2023-8-8 14:52

这块板子是带FPGA部分的吗
作者: Rube426    时间: 2023-8-26 19:41
这么老了!




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1