pulse width modulation


Results 1 to 9 of 9

Threaded View

  1. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If you're using the internal oscillator, you must add this line at the top of your code

    OSCCON = $70 'use 8MHZ

    OR

    OSCCON = $60 ' use internal 4MHZ

    in case you don't set this register, you'll run @32khz... at this speed. i'm not sure PWM will work as you want

    also be sure your RA.3 is correctly tie to vcc if you didn't set the MCLR OFF fuse.
    Last edited by mister_e; - 15th February 2005 at 22:17.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  2. measure pulse width 0-150Hz
    By kewetman in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th November 2007, 21:38
  3. Pulse width modulation
    By manxman in forum General
    Replies: 2
    Last Post: - 2nd March 2006, 12:06
  4. PIC12f675 timer1 pulse width
    By ck1223 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th February 2006, 04:05
  5. Pulse Width Measurement
    By atomski in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 29th January 2005, 00:53

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