I generated PWM 5 MHz using arduino nano, and I should pass it through band pass filter using op amp in order to have signal similar to sine vawe.
Can someone explain to me which design of filter should I use because the frequency is high, and which cut off freq should be chosen?
I have tried to simulate in proteus some of them, but it was not successful.
Neira96:
I generated PWM 5 MHz using arduino nano, and I should pass it through band pass filter using op amp in order to have signal similar to sine vawe.
I generated PWM 5 MHz using arduino nano, and I should pass it through band pass filter using op amp in order to have signal similar to sine vawe.
Can someone explain to me which design of filter should I use because the frequency is high, and which cut off freq should be chosen?
I have tried to simulate in proteus some of them, but it was not successful.
Thanks a lot.
A bandpass filter for 5MHz would normally be done using an LC filter circuit, not an opamp (a video opamp could handle the frequency I suppose, but it seems an odd thing to do, most standard opamps struggle above 50 to 100kHz signal content as there is hardly any gain left at those frequencies, LC circuits are passive and simpler).
The comments don't make any sense, but setting the CS00 bit to 1 clocks the timer at 16 MHz, so you can only get an integer submultiple of that frequency (8, 4, 2, 1 MHz etc.). With OCR0A=1, I think it will output 8 MHz.
8, 5.333, 4, 3.2, 2.667, 2.286, 2MHz etc, are the actual frequencies from a 16MHz clock.
The clocks per cycle = OCR0A+1, so 1 for 8MHz, 2 for 5.333MHz, and don't forget to set
the duty cycle to close to 50%. For 5.333MHz the best you can do is 33% or 67% duty cycle
though...