Hello Everyone this forum has been instrumental in my design work on FPGA/8051 and now PIC.
But Im stuck in a strange situation where iam required to read the status of External Interrupt and on every rising pulse I have to create a PWM of 50hz using Timer 0 to fire a thyristor.
Let me explain the circuit a little bit
Im reading the output from a zero crossing detector on PIN_B0 which is a square wave of 50HZ.
According to this signal I want to trigger my thryistor for Half wave configuration.
Im generating PWM using interrupt on timer1 and increasing the PWM using keys.
More over,if iam varying the "pwm_tm" value the whole PWM frequency is varying.