Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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…  Duty cycle = pulse width/period

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

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


Download ppt "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."

Similar presentations


Ads by Google