2 PWM in 16F690 problems


Results 1 to 10 of 10

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    This PIC have only 1 CCP channel, which mean you can't use HPWM for more tha 1 channel. If you need another channel, there's serveral way to do it: Change your PIC for one having 2 CCP module, or keep the existing one but create a Timer interrupt based PWM, or do the same in a tight loop... but you will be limited to do anything else, or Darrel Taylor's Multi_SPWM routine ( http://www.pbpgroup.com/modules/wfse...p?articleid=12 ).

    Depending your DC moto spec.. the Timer based or else low frequency PWM may work... or not. HPWM will produce higher frequency and run in background.
    Last edited by mister_e; - 8th April 2008 at 03:53.
    Steve

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

Similar Threads

  1. 12F683 2 x PWM Outputs
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 23rd July 2021, 20:20
  2. 16f877 generate pwm according 2 analog input
    By madxice in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th July 2009, 14:47
  3. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Variable PWM on 2 Channels using software.
    By Tissy in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd September 2006, 01:34

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