Hi Guys
I am romuald , and i am a beginner when it comes to microcontroller programing (c language ) .
i have downloaded some testing codes from cytron DIY projects [ namely DC brush motor ]. and i was able to go through almost everything except , the pulse frequency setting . How we set it , and how we can change it on our will .
here follows the codes.
//PWM frequecy set as 4.88KHz
PR2 = 0xFF; //PWM Period Setting
T2CON = 0b00000101; //Timer2 On, prescale 4
i am using a pic16f877a , with an oxillator of 20Mhz
thanx in advance .