Hello, Can anyone tell me if could be possible to create a differents PWM with variable duty cycle by using CAPCOM1/2? How would you configure output pines? I have tried it in Dave, but I dont see. Thanks.
Hello Chris, I've noticed that CC2_T7 register serves to control the wave period and CC2_CC16 to control duty cycle. :) In my case: CC2_CC16 = 0xFFFF -> Duty Cycle = 0 % CC2_CC16 = 0x48E5 -> Duty Cycle = 100 % Thanks ;-)
I have one question: The CC20IO (P9.4) output hasn't got "compare mode 3". Why?
It has it.I've noticed that the P9.4 had configured as general output.
hello
I am bit confuse about the period. How can we generate 50micro second period using CAPCOM2 in XC164CS? Can anyone hwlp me plz?
Vivek
Sorry above information is unclear. I just want to produce 50micro second period PWM or u can say 20Khz. What should be the timer reload value?