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.

Configuring PWM on OMAP-L138/WinCE6.0 LogicPD Experimenter Kit Arm Side

Hi, We're trying to use the PWMTEST example in the BSP (BSP_WINCE_ARM9_01_10_00) to generate separate PWM signals EPWM0A, EPWMA0B with different frequencies and duty cycles.  I've read through Ch. 17 in the TRM, but can't figure out how to do it relative to the example code because must use APIs for ARM side, so can't use registers directly.  How to do?  Thanks, D.M.

  • Hi Don,

    Thanks for your post.

    Please ensure to meet the software and hardware requirements in the below wiki in order to use BSP:

    http://processors.wiki.ti.com/index.php/AM18x/OMAP-L138_WinCE_BSP_Quick_Start_Guide#Software

    Also, please check the ARM9_WinCE_BSP_User_Guide for PWM driver as below:

    http://processors.wiki.ti.com/index.php/ARM9_WinCE_BSP_User_Guide#PWM_Driver

    In the above doc., please check registry entries, limitations, driver API's and sample command line for pwmtest application to configure PWM output and to start/stop generating PWM signal as follows:

    pwmtest -c <freq in hz> <duty cycle percentage> (configure PWM output)

    pwmtest –s (start PWM signal)

    pwmtest –h (stop PWM signal)

    Thanks & regards,

    Sivaraj K

    ------------------------------------------------------------------------------------------------------- 
    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

     

  • Hi Sivaraj,

    Thanks much for reply.  I'll definitely take a look at this.  Two questions:

    1) How can I control the 2 outputs (A, B) so I can get separate frequencies and duty cycles - 2 different signals?

    2) In the example you reference, they open "PWM1" (on J30).  If I use "PWM0", will that open EPWM0A/B (on J13)?

    Note: Would like to use pins on J13 if possible because SPI1 (on J30) is hardwired to NORFlash on SOM.  SPI0 (on J13) should be available, and should hopefully avoid pinmux issues.  We're not currently using SPI, but when we used SPI1 in the past, our LCD went dark (with SPI working), and I had to re-load UBoot.

    D.M.