PWM GENERATION OF 25nS - 70nS outputs


Results 1 to 25 of 25

Threaded View

  1. #18
    Join Date
    May 2013
    Location
    australia
    Posts
    2,655


    Did you find this post helpful? Yes | No

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

    pulsewidth var byte ; 0 -5 max is 5

    ccp1con=12; pwm mode active high

    pr2= pulsewidth+2
    ccpr1l=pulsewidth.2
    ccp1con= 12+ ((pulsewidth&3)<<4) ;low bits and set the pwm


    if you change the pulsewidth you must change pr2 and ccpr1l also
    don't expect the output to propagate far without severe deformation
    note that 74series gates have propagation delays of 90ns and 20ns rise/fall times ,74f is better at 8 and 3 . ecl would be better still


    ps needless to say the tris bit for the output must be cleared

    you will need a good cro to measure this 200mhz+ to get a good look
    Last edited by richard; - 18th October 2014 at 01:14. Reason: ps

Similar Threads

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