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

    ok thanks richard

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


    Did you find this post helpful? Yes | No

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

    Hmmm, actually, in PWM mode the CCP module is run from TMR2 which is concatenated with the two bits from the internal clock divider (which is where the "extra" bits of resolution comes from) so each "dutycycle bit" represents one TOsc - not four. From the 18F25K22 datasheet;
    PulseWidth = CCPRxL : CCPxCON<5:4> * TOsc * TMRxPrescaler value
    So with a 64MHz oscillator it should be possible to generate 15.625ns pulses using the CCP module.

    /Henrik.

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