Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Observing System Clock on OMAP-L138

$
0
0

All:

I am trying to observe our system clock with CLKOUT (target system).

Setup:

CCS 6.1.1

OMAP-L138-EP

Starterware 01.10.01.01

Here are the steps I took inside of PLL0 setup in bl_platform.c - I inserted the following code in PLL0Init(), just before the function locks the PLL registers.

However, when I probe CLKOUT, I do not see it... am I setting everything up correctly?

   

    // 1. Set up pinmux for CLKOUT. (function below)
    GPIOBank6Pin14PinMuxSetup();

    // 2.  Set up OCSEL register for system clock.
    HWREG(SOC_PLLC_0_REGS + PLLC_OCSEL) |= PLLC_OCSEL_OCSRC_SYSCLK1 ;

    // 3. Set up enables for system clock.

    HWREG(SOC_PLLC_0_REGS + PLLC_OSCDIV) |= PLLC_OSCDIV_OD1EN_SHIFT;
    HWREG(SOC_PLLC_0_REGS + PLLC_CKEN)   |= PLLC_CKEN_OBSEN_SHIFT;

// At this point, PLL registers are locked.

 

void GPIOBank6Pin14PinMuxSetup(void)
{
     unsigned int savePinmux = 0;

     /*
     ** Clearing the bit in context and retaining the other bit values
     ** in PINMUX13 register.
     */
     savePinmux = (HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(13)) &
                  ~(SYSCFG_PINMUX13_PINMUX13_7_4));

     /* Setting the pins corresponding to GP6[14] in PINMUX13 register.*/
     HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(13)) =
          (SYSCFG_PINMUX13_PINMUX13_7_4_OBSCLK0 | savePinmux);

}

 

 


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>