PWM, H-Bridge and NCO - PIC16F18446


+ Reply to Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    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 :-)

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,686


    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

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    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: 33434
Size:  555.4 KB

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,686


    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: 33529
Size:  289.5 KB
    Warning I'm not a teacher

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    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

  6. #6


    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.

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

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

    Alain:
    The PWM is controlled by a Pot. I could also make a variable power supply and control directly the voltage on a SMPS circuit instead of PWM. More complicated.

    Amgen:
    It is easier on the unipolar mode. But gets difficult on bipolar drive having software to control both PWM, low freq signal and the control of the 4 MosFets transitors. Including deadtime.
    Better, most if not all of this be done on hardware using NCO, CWG, CLC etc.

    I believe that it is possible to do this as Richard is confident too. I just need more reading to understand how all these modules will work together.

    Ioannis

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 : 16

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