+ Post New Thread
Results 1 to 17 of 17
  1. #1
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    High Frequency using 8051

    Hi all.
    I need to generate high frequency output maxing 60 Khz using 8051 microcontroller.
    attached circuit diagram.
    Software is not a problem, i would be using timer to generate high frequency.
    but as per the circuit diagram, is the components selection perfect..?. will the mosfet work at frequency of 60 Khz. or can anyone recommend me some other mosfets where i can get a better performance.

    - - - Updated - - -

    I need to generate a square wave and drive a inductive load at 12V at high frequency.

  2. #2
    Super Moderator
    Points: 257,472, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,928
    Helped
    13663 / 13663
    Points
    257,472
    Level
    100

    Re: High Frequency using 8051

    What is the load current? IRF540 isn't suited for 5V gate control, you better use a logic level FET.

    For 60 kHz switching, you need a push-pull gate driver.



  3. #3
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    Re: High Frequency using 8051

    Quote Originally Posted by FvM View Post
    What is the load current? IRF540 isn't suited for 5V gate control, you better use a logic level FET.

    For 60 kHz switching, you need a push-pull gate driver.
    Load Current is approx 2 Amps at 12V



  4. #4
    Super Moderator
    Points: 257,472, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,928
    Helped
    13663 / 13663
    Points
    257,472
    Level
    100

    Re: High Frequency using 8051

    There are many logic level FETs suitable for 12V 2A. I forgot an important point: The inductive load will destroy the FET if you don't connect a free-wheeling diode.



    •   AltAdvertisement

        
       

  5. #5
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    Re: High Frequency using 8051

    Quote Originally Posted by FvM View Post
    There are many logic level FETs suitable for 12V 2A. I forgot an important point: The inductive load will destroy the FET if you don't connect a free-wheeling diode.
    I have added a free wheeling diode to inductive load, and also changed the mosfet
    but still while stimulating in proteus, i am not getting pure square wave at the output, but the same at controller pin i am getting proper square wave (image attached)



    •   AltAdvertisement

        
       

  6. #6
    Super Moderator
    Points: 257,472, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,928
    Helped
    13663 / 13663
    Points
    257,472
    Level
    100

    Re: High Frequency using 8051

    The gate driver is connected wrongly. It's a complementary emitter follower, should have NPN on top and PNP on the bottom. Both emitters tied to the gate. No base resistors required, instead an optional low ohmic gate resistor.

    I have added a free wheeling diode to inductive load
    Not yet in the schematic.



  7. #7
    Advanced Member level 5
    Points: 39,152, Level: 48

    Join Date
    Mar 2008
    Location
    USA
    Posts
    6,329
    Helped
    1843 / 1843
    Points
    39,152
    Level
    48

    Re: High Frequency using 8051

    You might just like a large MOSFET gate driver without
    the discrete FETs, depending on the (not-stated) load
    current, rise/fall times and tolerance of the part to
    inductive over / undershoots. You can get 10A peak
    spec parts that ought to be good for an amp or so DC
    and TTL-compatible control inputs, >12V supply rating.
    Look for automotive grade parts and you may find the
    clamp diodes especially robust and built in.



    •   AltAdvertisement

        
       

  8. #8
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    Re: High Frequency using 8051

    Quote Originally Posted by FvM View Post
    The gate driver is connected wrongly. It's a complementary emitter follower, should have NPN on top and PNP on the bottom. Both emitters tied to the gate. No base resistors required, instead an optional low ohmic gate resistor.

    Not yet in the schematic.
    Still the things are not working. the result is the same.
    (Image Attached).
    Not added the diode in circuit diagram because the diode does not have a model to play, so i receive the stimulation error.


    1 members found this post helpful.

  9. #9
    Advanced Member level 2
    Points: 2,862, Level: 12
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    564
    Helped
    49 / 49
    Points
    2,862
    Level
    12

    Re: High Frequency using 8051

    In scope, channels should be set to DC measurement. In your setup, all channels are set to measure AC.



  10. #10
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    Re: High Frequency using 8051

    Quote Originally Posted by baileychic View Post
    In scope, channels should be set to DC measurement. In your setup, all channels are set to measure AC.
    Changing the channel to DC makes no difference



  11. #11
    Advanced Member level 2
    Points: 4,979, Level: 16
    Achievements:
    7 years registered
    ZASto's Avatar
    Join Date
    Jan 2008
    Location
    Messy Corner, 44°47'31.56"N, 20°28'9.16"E
    Posts
    590
    Helped
    117 / 117
    Points
    4,979
    Level
    16

    Re: High Frequency using 8051

    So, what kind of waveform are you expecting to have on inductive load? Perfect square?
    Make no mistake between my personality and my attitude.
    My personality is who I am.
    My attitude depends on who you are.



  12. #12
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    Re: High Frequency using 8051

    Quote Originally Posted by ZASto View Post
    So, what kind of waveform are you expecting to have on inductive load? Perfect square?
    Yes, my requirement is perfect square at the output at 60Khz.
    Is it possible...??



  13. #13
    Super Moderator
    Points: 257,472, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,928
    Helped
    13663 / 13663
    Points
    257,472
    Level
    100

    Re: High Frequency using 8051

    Yes, my requirement is perfect square at the output at 60Khz.
    Is it possible...?
    Yes, more or less.



    •   AltAdvertisement

        
       

  14. #14
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Mar 2015
    Posts
    450
    Helped
    3 / 3
    Points
    2,828
    Level
    12

    Re: High Frequency using 8051

    Quote Originally Posted by FvM View Post
    Yes, more or less.
    Thanks,
    But how can i do it. is my circuit diagram perfect, or need to do some changes, because while stimulating in proteus its not giving proper output.
    do i need to test it in actual hardware using oscilloscope



  15. #15
    Super Moderator
    Points: 75,655, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,338
    Helped
    3491 / 3491
    Points
    75,655
    Level
    67

    Re: High Frequency using 8051

    Hi,

    Vague descriptions:
    "Perfect" --> there is no perfect. You need to live with non perfect waveform. How much tolerance in which regard can you accept? Timing, amplitude, ringing, over- or undershot, rise- fall time, duty cycle, jitter...

    "its not giving proper output" --> in which regard?

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  16. #16
    Super Moderator
    Points: 257,472, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,928
    Helped
    13663 / 13663
    Points
    257,472
    Level
    100

    Re: High Frequency using 8051

    I skip the "perfect" square wave discussion. To get a square wave at all, you need a free-wheeling diode.



  17. #17
    Advanced Member level 4
    Points: 6,219, Level: 18
    kripacharya's Avatar
    Join Date
    Dec 2012
    Location
    New Delhi
    Posts
    1,198
    Helped
    180 / 180
    Points
    6,219
    Level
    18

    Re: High Frequency using 8051

    Quote Originally Posted by gauravkothari23 View Post
    Thanks,
    But how can i do it. is my circuit diagram perfect, or need to do some changes, because while stimulating in proteus its not giving proper output.
    do i need to test it in actual hardware using oscilloscope
    'Perfect' square output you will only get with resistive load. With inductor it will be different.



--[[ ]]--