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.

AM2634: How to use CLKOUT0 Pin

Part Number: AM2634

Hi

For an external peripheral I want to generate a 25 MHz clock on the CKOUT0 Pin. How can I configure, enable and disable this channel?

Thanks for help.

Best regards

Dominik

  • Hello Dominik,

    Thank you for your patience. This information is described in the Device Configuration - Clocking chapter of the TRM.

    The XTALCLK is already 25 MHz as required for the device and can be used as the source for CLKOUT0.

    The info below is also available in the TRM but updating details for this use case and including below for quick reference.

    6.4.1.2.3.2.3 Sequence for Programming CLKOUT Clock
    1. Program TOP_RCM CLKOUT0 divider register with the value of 0x000 in-order to switch to a new desired frequency,
    CLKOUT0_DIV_VAL.CLKDIV = 0x000
    2. Poll for the CURRDIVIDER field of corresponding clock status register to reflect its new frequency change,
    CLKOUT0_CLK_STATUS.CURRDIVIDER = 0x01
    3. Update the CLKOUT0 GCM register with the value of 0x111 to select XTALCK as its source,
    CLKOUT0_CLK_SRC_SEL.CLKSRCSEL = 0x111
    4. Poll for the CLKINUSE field of corresponding status register to reflect its new frequency change,
    CLKOUT0_CLK_STATUS.CLKINUSE = 0x04

    The CLKOUT0_CLK_GATE RCM register can then be used to enable and disable this signal.

    Best Regards,

    Zackary Fleenor