Maybe a better starting point for you is to lay out what you DO understand and go from there.but i don't understand how can i do it
Here is the executive summary:i have read datasheet of pic18f4431 but i don't understand how can i do it
cann't help you much there but would suggest you take up a more efficient approach to this. The following four lines get pwm done:i want to activate PWM pins in pic18f4431 in MPLAB please help me!
pwm_init(); //reset the pwm
pwm_setpr(PTPS_4x, 1000); //set period
pwm_setdc0(pwm_getpr()/2); //set duty cycle
pwm_setdc1(pwm_getpr()/3); //set duty cycle
But somebody else might have done a lot of the work for you:Nobody is going to do it for you; this is one road you must travel alone -- Grasshopper
But that work may not apply to his goal of utilizing the pwm functions of this particular PIC -But somebody else might have done a lot of the work for you:
And he needs to be smart enough to recognize the difference. Code examples will lead you in the right direction if you can verify that they come from "working" code. Academic examples don't count.But that work may not apply to his goal of utilizing the pwm functions of this particular PIC -