tq again,
got your point now.
let say i use prescaler 1 for maximum resolution, my PR2+1 should be 1000.
So , let say i want to put 50% duty cycle in my lookup, my duty2 value should be:
based on the below eqn:
CCPR3L:CCP3CON<5:4>=(PR2+1)*4*Duty%
my duty2 should be 1000*4*0.5=2000
right?
correct me if im wrong.
photoelectric
Bookmarks