This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Timer interrupt ISR not stable and and what is highest frequency possibility



hi

I was using timer 3 to generate a high frequency which is almost like 1-10 Mhz and I am using Timer3 ISR for altering the values in a pin and the code is as follows .I can see a pwm like variation in the output signal from the GPIO pin.And the maximum frequency  I was able to generate was only 336Hz

T3CTL=0x1A;

T3CCTL1=0x38;
T3CCTL0=0x68;

//isr

void timer3(void) interrupt 11
{
/
T3IF=0;
led4=~led4;//output pin 

}

Since the signal generated by the timer  is continuously altering it s value and seems like no stable time period available and at the same time highest frequency possible was only about 336 Khz .Please help me in obtaining clear  and  high frequency signal at pin led.