Maker Pro
Maker Pro

Create two PWM pulses with 10kHz difference

jalil92

Jun 7, 2019
5
Joined
Jun 7, 2019
Messages
5
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
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,722
Joined
Nov 17, 2011
Messages
13,722
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?
 
Top