Connect with us

Create two PWM pulses with 10kHz difference

Discussion in 'Microcontrollers, Programming and IoT' started by jalil92, Jul 16, 2019.

  1. jalil92

    jalil92

    5
    0
    Jun 7, 2019
    Hello

    I want to produce two PWM pulses with lpc1768 module. The frequency of PWM should be in the range of 3000kHz to 3500kHz and the difference of frequencies should be 10 kHz (for example 3100kHz and 3110kHz). How do I do this?

    Please help me.

    Thank you
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    9,277
    1,878
    Nov 17, 2011
    According to the datasheet the lpc1768 has 2 pwm units: PWM1 and MotorPWM.
    Program these two to your specifications for different pwm frequencies. However, you'll have a hard time generating a 3000 kHz (3 MHz) pwm with sufficient resolution from a max. 25 MHz clock. What do you need such a high frequency for?
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-