12F683 2 x PWM Outputs


Closed Thread
Results 1 to 30 of 30

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 12F683 2 x PWM Outputs

    I think I had it pointing to PBPW at the time.
    Proteus saves the compiler path in the .dsn file.

    Go to ... Source > Add/Remove Source code files..
    Change the "Code Generation Tool" drop-down box so it points to your installation. (PBPMPLAB)
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: 12F683 2 x PWM Outputs

    Nope same error

    Can you post exactly whats in your source code boxes?

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 12F683 2 x PWM Outputs

    Here's the way that one was setup. But you should change it to use COF instead of HEX and add the -K# command line option.
    And make sure your compiler setup is working with a new design.

    Name:  Source.JPG
Views: 9686
Size:  65.3 KB
    Last edited by Darrel Taylor; - 18th February 2011 at 15:45.
    DT

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: 12F683 2 x PWM Outputs

    Thanks working now.

  5. #5


    Did you find this post helpful? Yes | No

    Default 16f88

    I've upgraded to a 16F88 chip now.

    Just a thought, is it possible for SSPWM to use TMR0 instead of TMR1 on the 16F88 bearing in mind my 2khz
    PWM requirement with variable 10-90% duty in 1% steps?

    I'm not complaining SSPWM works well but freeing up TMR1 would let me use it for my
    speedo routine.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: 12F683 2 x PWM Outputs

    Well, you could certainly write a program that uses TMR0 to generate frequencies.
    But SSPWM will not do it.

    It needs a 16-bit timer to meet the published Frequency/Dutycycle range.
    DT

Similar Threads

  1. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  2. 2 PWM in 16F690 problems
    By ciendavila in forum mel PIC BASIC
    Replies: 9
    Last Post: - 27th April 2008, 09:03
  3. 12f683 comparator and pwm
    By Automan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd May 2007, 18:05
  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 : 2

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