PWM, H-Bridge and NCO - PIC16F18446


+ Reply to Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    Henrik, for a while forget the PWM.

    Just think of an H-Bridge that drives a load in two modes:

    1. Unipolar voltage on the load with a rate of 0-50 Hz

    2. Bipolar voltage on the load with a rate of 0-50 Hz

    The mode 2 obviously doubles the power consumed by the load.

    Because of the low frequency, I ended to the NCO as Richard proposed. But have not found a way to drive this to an H-Bridge yet.

    The second problem is that at very low frequencies (0 to say 20 Hz) the power loss on the bridge transistors is high enough to destroy them because of violation of the SOA. I have to either put in parallel more devices or use a PWM signal to lower the losses and give time to the transistors to cool.

    So, the NCO signal needs to be modulated with PWM.

    Easy and complicated at the same time...

    Ioannis

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    Sorry, mode 2 still isn't clear to me.... "2. Bipolar voltage on the load with a rate of 0-50 Hz"
    Do you mean...

    A) That polarity of the voltage across to the load is switched at 0-50Hz (and power is regulated by the dutycycle of the 1kHz PWM signal) or
    B) That polarity of the voltage across to the load is switched at 1kHz (the PWM frequency) and the 1kHz carrier is turned on/off at a rate of 0-50Hz or
    C) None of the above meaning I still don't get it :-)

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,721


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    Do not know if or how NCO can be steered PWM/CWG module.


    Richard, also nice idea about CLC module. I suppose the low freq signal is external of the PIC. Or may be the NCO signal too.
    you need to have a good look at the data sheet
    valid cwg input's :-
    the nco
    a clc output
    any of the ccp /pwm modules
    the dsm output

    valid clc input's:-
    the nco
    any of the ccp /pwm modules
    the dsm output

    there are many possible methods of modulating a LF osc source with a HF pwm signal with the clc or dsm modules
    any of which can be turned into a full bridge signal source with the cwg module , try a few
    Warning I'm not a teacher

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    Hope this draw clarifies a bit the problem.

    Ioannis

    Name:  bridge.JPG
Views: 46631
Size:  555.4 KB

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,721


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    so where does the 1khz fit in ?


    i expected more like this
    Name:  Untitled.jpg
Views: 46829
Size:  289.5 KB
    Warning I'm not a teacher

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    You are right, I just didn't want to clutter the draw.

    Ioannis

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: PWM, H-Bridge and NCO - PIC16F18446

    looking at your diagrams, seems like you could ..... set up the PWM module for 1KHZ as normal, for the 20HZ part, set up a timer interrupt for the low freq maybe with a couple of roll overs for lower freq.... then on tmr int, only need to switch the Q's and add a little dead time on each switchover.

Similar Threads

  1. Enhanced PWM Full-Bridge Mode
    By Zapman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th September 2022, 20:08
  2. Replies: 4
    Last Post: - 7th June 2011, 06:02
  3. Need guidance with DC motor controller - PWM & H-Bridge
    By rfetech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th November 2010, 04:33
  4. PWM with PIC16F88 controlling h-bridge
    By deimantas in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 20th May 2010, 23:03
  5. Half-bridge PWM with a 16F684 ?
    By Byte_Butcher in forum General
    Replies: 7
    Last Post: - 17th January 2010, 23:18

Members who have read this thread : 12

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts