PWM GENERATION OF 25nS - 70nS outputs


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: PWM GENERATION OF 25nS - 70nS outputs

    any code worth putting into the 18f67k22 i have on hand hendrick , i am assuming the simple commands wont cut it and the registers need to be setup to make use of it ?
    Code:
     define HPWM4_TIMER 2       ' HPWM4 TO USE TIMER 2 
    
     hpwm 4 ,xx ,xxx   'CPP4  Wduty , freq

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


    Did you find this post helpful? Yes | No

    Default Re: PWM GENERATION OF 25nS - 70nS outputs

    as I stated in post 4 for the range of pulses you specified the pwm resolution is very limited
    0b000 = 0ns
    0b001=15.6ns
    0b010=31.2 ns
    0b011=46.8 ns
    0b100=62.4 ns
    0b101= over range

    and as pedja089 stated a fixed 30ns deadtime means hpwm will not cut it / the period reg will need to be changed with every change in pulse width to maintain the dead time

Similar Threads

  1. Sinusoidal PWM generation Using PIC 18f4431
    By oswalam in forum mel PIC BASIC
    Replies: 3
    Last Post: - 23rd February 2013, 16:49
  2. 4 x PWM outputs
    By Scampy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th February 2012, 07:40
  3. Generation of PWM wave six - PIC18f4431
    By Salatiel_lobato in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th March 2011, 20:37
  4. PWM generation with PIC16F628
    By Marin in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 16th July 2010, 10:50
  5. sine pwm generation using pic16f72
    By kvrajasekar in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th October 2008, 10:02

Members who have read this thread : 0

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