M.Rehan
Full Member level 2
At 100% duty Cycle PIC is not giving always high signal
Why?
How to get rid of this fault?
Can I edit default existing PWM library in MikroC?
PIC Used : 18f4550
Tool: MikroC Pro for PIC
Why?
How to get rid of this fault?
Can I edit default existing PWM library in MikroC?
PIC Used : 18f4550
Tool: MikroC Pro for PIC
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 void main() { TRISC = 0 ; // set PORTC as output PORTC = 0 ; PWM2_Init(1000); PWM2_Set_Duty(200); while(1) { PWM2_Start(); Delay_ms (1000); PWM2_Set_Duty(255); // 100% Duty Cycle Delay_ms (10000); } }
Last edited: