This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM2754-Q1:如何在应用中切换 MCASP 实例的时钟源?

Guru**** 2670055 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1595444/am2754-q1-how-do-i-switch-the-clock-source-for-an-mcasp-instance-in-my-application

器件型号: AM2754-Q1

您好、

我想在应用中开发一项功能、要求在应用运行时切换 MCASP 实例的时钟源、在外部基准时钟和内部时钟之间切换。 如何实现此功能?

image.png

我发现了一些在驱动程序中有用的东西。 也许我可以修改 gMcaspAttrs[instance].hwcfg 并重新打开 McASP 实例以满足我的需求?

/**
 *  \brief Hardware setup data clock structure
 */
typedef struct
{
    uint32_t aClk;
    /**< Clock details ACLK(R/X)CTL */
    uint32_t hiClk;
    /**< High clock details AHCLK(R/X)CTL */
    uint32_t clkChk;
    /**< Configures RX/TX CLK fail detect */
    uint8_t isHClkExt;
    /**< Flag for if HCLK is from external source */
    uint32_t hClkExt;
    /**< External HCLK (TX/RX) source */
} MCASP_ClockConfig;

 

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jet:  

    AM275 中有一个专用的无毛刺多路复用器、用于在内部时钟和外部时钟之间切换。  

    我附加了一个时钟开关演示示示例 —  e2e.ti.com/.../mcasp_5F00_clock_5F00_switch_5F00_am275.zip

    您可以检查  14.2.1.1.1.2.229.1 MAIN_CTRL_MMR_CFG0_McASP1_CLKSEL 和  14.2.1.1.1.2.245.1 MAIN_CTRL_MMR_CFG0_McASP1_GF_CLK_SEL 寄存器  介绍这些功能、以获取更多有关此功能的信息。  

    如果您对此有任何其他需要、请告诉我。  

    此致、
    Ritapravo