1 / 3

PWM Pulse Width Modulation API

PWM Pulse Width Modulation API. Achieves PWM by cascading 2 timers… The output of lower order will be fed to input of upper order timer… The output of lower order timer is also used to control the pulse width… The output of higher order timer will decide the period…

brit
Télécharger la présentation

PWM Pulse Width Modulation API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PWMPulse Width Modulation API • Achieves PWM by cascading 2 timers… • The output of lower order will be fed to input of upper order timer… • The output of lower order timer is also used to control the pulse width… • The output of higher order timer will decide the period… • Duty cycle = pulse width/period

  2. Timer/ Counter 2 Pulse width Control PWM1 PWM1 output Timer/ Counter 3 Period Control Pulse width Control Period Control PWM1 output About PWM

  3. API Calls • naPwmOpen • Opens the specified channel and returns the handle • naPwmSetPulseWidth • Sets the pulse width and period in nanoseconds, returns the actual value set • naPwmStart • Enables the PWM channel • naPwmStop • Disables the PWM channel • naPwmClose • Closes the channel and releases the resources

More Related