pwm_update_channel - interrupt- / polling-method?

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I was just wondering, whats the difference between
"pwm_interrupt_update_channel" and "pwm_update_channel".

I am running a PWM at 1MHz and I can update its frequency and/or duty-cycle to another value with either one of these functions.

But in BOTH cases I cannot read back the correct new value from .cprd right after the update-function returns.

So what for is the polling method then?
And what for is the interrupt method then?

Greetings,
jabba

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

*bump* ... still of interest after more than 3 years :D