PWM signwave with 50ns freq. Step

Discussion in 'Embedded Systems and Microcontrollers' started by Max.Otto, Nov 18, 2014.

  1. Max.Otto

    Thread Starter New Member

    Oct 27, 2014
    7
    0
    Hi all,
    i want to generate PWM step with 50ns. For this i have input signal.
    The PWM Clock freq = 24Mhz.
    if input is 3,25v then PWM freq = 1 µs (microsec)
    if input is 0,5v then PWM freq = 250ns (nanosec).

    pls share ur ideas for doing this task.
    Regards
    Max
     
  2. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,797
    1,103
    Do you want a step width of exactly 50nS? That will be tricky (to say the least) when your clock period is 1/24MHz = 41.66nS :(.
     
  3. ScottWang

    Moderator

    Aug 23, 2012
    4,853
    767
    PWM frequency = 50nS = 20 Mhz
    24Mhz=41.667nS, which is right?
    So you have 24 Mhz(41.667nS) frequency, but you want to get a 50nS(20Mhz) pwm?
     
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,387
    1,605
    You say you want a PWM (Pulse width) with steps of 50nS, then give two other periods.

    Something is not making sense in your question, please rephrase it, I thing something is getting lost in translation.
     
  5. Max.Otto

    Thread Starter New Member

    Oct 27, 2014
    7
    0
    sorry..PWM Clock freq. = 20MHz then i have PWM freq. = 50nS.
    How can i go further?
     
  6. jpanhalt

    AAC Fanatic!

    Jan 18, 2008
    5,687
    900
    What chip are you using?

    John
     
  7. Max.Otto

    Thread Starter New Member

    Oct 27, 2014
    7
    0
    PSoC 5LP
     
  8. Max.Otto

    Thread Starter New Member

    Oct 27, 2014
    7
    0
    i got 1 Problem when i set clock to 20 MHz then my Controller tell me thje wrong configuration

    I explain u all my whole tast.

    I have 2 PWMs. 1 Forward & other Backward. I have to set Deadtime as Input.
    if i/p = 3,2v then DT = 24,
    if i/p = 0,5v then DT = 2.


    Same time the Duty cycle of both PWM should 47% of period.
    pls share ur ideas to perform this tast.

    Regards
    Max
     
  9. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,797
    1,103
    That's a completely different 'tast' (task, test, ?) from the one in post #1. Which one do you really want help with?
     
  10. Max.Otto

    Thread Starter New Member

    Oct 27, 2014
    7
    0
    i Need help for my last replied Task..
     
  11. Max.Otto

    Thread Starter New Member

    Oct 27, 2014
    7
    0
    Hi all,
    i want to generate 1 PWM Signal with deadtime Input (with A/D channel Volatege between 0.5 to 3.25)

    pls help me for this.
     
  12. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,797
    1,103
    The task in post #11 is different again! We are unable to help you if you yourself don't know what the correct task is :(.
     
Loading...