Download presentation
Presentation is loading. Please wait.
Published byCharlene Booker Modified over 9 years ago
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.