element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum PWM signwave with 50ns freq. Step
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 1 answer
  • Subscribers 461 subscribers
  • Views 725 views
  • Users 0 members are here
Related

PWM signwave with 50ns freq. Step

Former Member
Former Member over 10 years ago

Hi all,
i want to generate PWM step with 50ns. For this i have input signal.


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

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 10 years ago +1 suggested
    pls wrt n englsh bcs it wll B ezier 2 undrstnd And it really does not take much longer. When you are generating a PWM signal you need to consider two frequencies, the basic clock frequency of the generating…
  • michaelkellett
    michaelkellett over 10 years ago in reply to Former Member +1
    I don't think so ! In a PWM system where one driver pulls the load high and the other pulls it low the deatime is the time when both drivers are off. It's provided by many controllers so that one device…
  • D_Hersey
    0 D_Hersey over 10 years ago

    Are you trying to modulate frequency or duty cycle?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago

    pls wrt n englsh bcs it wll B ezier 2 undrstnd

     

    And it really does not take much longer.

     

    When you are generating  a PWM signal you need to consider two frequencies, the basic clock frequency of the generating system and the pulse frequency. If you need a resolution of 1% then you will need 100 basic clock periods per pulse, so with a 24MHz clock (41.66nS period) you could have a pulse frequency of 240kHz and the pulse widths could range from 4.118uS to 41.66nS. You can' get  a 50nS step with a 24MHz clock.

     

    How are you going to generate this PWM signal  - if you are using  a timer on a micro-controller then the data sheet or user manual will usually describe how to set it up for PWM.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to michaelkellett

    Thank u very much for ur answer.

    I want to modulate frequency. as Input for Deadtime.

    I have i/p 3.25v for 24 Deadtime & 0.5v for 2 Deadtime.

    I have to set this in program. alöso the duty cycle have to calculate in program,

    I Need 40ns PWM Step. So PWM Clock freq. = 24MHz.

    like Deadtime values = 2 (125ns), 3(165ns), 4(205ns)....

     

    Regards

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vsluiter
    0 vsluiter over 10 years ago in reply to Former Member

    Hi Max,

     

    If you want to have a dead time, please use a microcontroller that already has a dead time generator and use that.Atmels XMEGA series have this (AWEX), and the STM32F0... devices also have this. These both run at frequencies equal or higher than 24MHz, and both have an analog to digital converter. Now the only thin you'll have to do is to read out the ADC, calculate the deadtime and write that to the peripheral.

    Here's the document which describes Atmels XMEGA options: http://www.atmel.com/images/doc8076.pdf  ,apparently you can insert 0-255 main clock cycles dead time.

    As ususal, ST's documentation and implementation is a bit more complex, as can be seen here: http://www.st.com/web/en/resource/technical/document/application_note/DM00042534.pdf,, but still you can insert dead time programmatically.



    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    how can i calculate Deadtime??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Former Member

    Max,

     

    If your min and max values are 3.25V for 24 steps and 0.5V for 2 steps, you will have 22 steps between them, so 3.25V - 0.5V = 2.75V.  Divide by 22 steps and you have 0.125V per step.  That will be a constant.  Read the input voltage, subtract 0.5V, divide that number by 0.125 and that will give you the number of steps.  125ns + (40ns * # of steps) = Total Dead Time.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to Former Member

    I don't think so !

     

    In a PWM system where one driver pulls the load high and the other pulls it low the deatime is the time when both drivers are off. It's provided by many controllers so that one device can turn off before the other turns on and thus avoids current going straight through the two devices. (Oftne known a "shoot through" current.)

     

    This link (page 28) has a n explanation and  a diagram.

     

    ww1.microchip.com/downloads/en/DeviceDoc/70062E.pdf

     

    You calculate it according to the precise nature of the controller and you work out what you need either by experiment or simulation/calculation based on the power devices you are using.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 10 years ago

    cto:

     

    TIDesigns – Texas Instruments | DigiKey

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube