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.
What does CC2_CC16 register mean? I tried to search into user manual, but I don't find it.
CC2 => Capture Compare Module 2 CC16 => Capture Compare Channel 16
How can I control the period of the PWM signal?
You have chosen Compare Mode 3: Set Output Pin on each Match. Reset output pin on each timer overflow; Only one interrupt per timer period. Allocated to T7
Basically CC2_T7 is your period in this case.
So when the CC2_CC16 compare value is equal to CC2_T7 then the PWM output goes high and the PWM output goes low when the CC2_T7 overflows (0xFFFF -> 0x48E5). 0x48E5 is your reload value.
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?