1. I have MCU operating at +5V, and need to drive a mosfet with Vgs = 10V-12V.
2. Freq to drive is 20Khz around ie 50us on and 50us off.
3. I was looking for low cost solution and MCU dircetly cannot give that much vgs to mosfet so I used opamp LM358 in between. as in ckt below.
Issue is I am getting triangular output?
There may be some freq limitation, but opamp datasheet says it has 1Mhz unity gain?
What I am doing wrong in it.
4. Attached is ckt output in simulation , same is seen in actual hardware.
2. Freq to drive is 20Khz around ie 50us on and 50us off.
3. I was looking for low cost solution and MCU dircetly cannot give that much vgs to mosfet so I used opamp LM358 in between. as in ckt below.
Issue is I am getting triangular output?
There may be some freq limitation, but opamp datasheet says it has 1Mhz unity gain?
What I am doing wrong in it.
4. Attached is ckt output in simulation , same is seen in actual hardware.