I have been working with this avr code to generate pwm signal with frequency 200 khz and now I need timer 1 in another function (ADC triggering) thats why I decided to switch to timer 3. and use it to get the pwm.
Thats why I wrote and it simple doesnot work . I am in the lab and I measuring the frequency with an oscilloscope and there is only pwm when the timer is 1 not 3
any help ??
TCCR1A=(1<<COM1A1) | (0<<COM1A0) | (1<<COM1B1) | (1<<COM1B0) | (0<<COM1C1) | (0<<COM1C0) | (0<<WGM11) | (0<<WGM10); TCCR1B=(0<<ICNC1) | (0<<ICES1) | (1<<WGM13) | (0<<WGM12) | (0<<CS12) | (0<<CS11) | (1<<CS10); TCNT1H=0x00; TCNT1L=0x00; ICR1H=0x00; ICR1L=0x28; OCR1AH=0x00; OCR1AL=0x12;