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.

OMAPL138B-EP: omapl138 lcdk

Part Number: OMAPL138B-EP
Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Hello All,

I'm working on OMAPL138 custom board in that I want to configure gpio as below 10mhz frequency, Initially, I ran with Cpu clock frequency at 300Mhz.

For changing the clock frequency I have gone through the PLL controllers spreadsheet base on that I have configured my OMAP-L138 LCDK gel so I cross verified with UART whether it's working or not. Finally, it's working when I adjust the SOC_SYSCLK_2_FREQ for 100Mhz. 

For GPIO I want to  #define SOC_SYSCLK_4_FREQ (SOC_SYSCLK_1_FREQ/4) to get this clock frequency If I ran with PLL0 100mhz it'll divisible by 4. But the thing is for GPIO whichever examples are availabe in that package they're not using SOC_SYSCLK_4_FREQ this macro to get GPIO clock by 4.

I surfed a lot on the internet cant able to find an example code to set a clock for GPIO. Please If someone knows this problem Kindly help me out

Thanks in advance,

Regards,

Seyed

  • Hello Seyed,

    But the thing is for GPIO whichever examples are availabe in that package they're not using SOC_SYSCLK_4_FREQ this macro to get GPIO clock by 4.

    Which package were you referring to?

    I surfed a lot on the internet cant able to find an example code to set a clock for GPIO.

    I'm not sure what you meant by "GPIO clock". If you want to toggle a GPIO at a certain frequency, you can set up a timer with the desired frequency. Then use that timer to generate interrupts and toggle the GPIO in the ISR. Is this what you need to do?

    Regards,

    Jianzhong

  • Hello Jianzhong,

    Thanks for your response I'm working in starterware package omapl138.

    Ok Jianzhong i will try once  gpio with the timer frequency (ISR) and let you know.

    Regards,

    Seyed