Problem with PWM using 16F688


Closed Thread
Results 1 to 10 of 10
  1. #1

    Unhappy Problem with PWM using 16F688

    When using the PWM statement for the 16F688, the compiler does not compile and produces several non descript errors. Just using the single example from the manual: PWM PORTC.0,127,100 standing alone, does not compile, yet it compiles under the 16F676. I am totally lost, as the two processors are quite similar, yet the compiler only recognizes the 16F676. Have not tried any others. Any thoughts from anyone?

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


    Did you find this post helpful? Yes | No

    Default

    It compile just fine here, which version of PBP do you have?
    Steve

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

  3. #3


    Did you find this post helpful? Yes | No

    Exclamation

    Thanks Steve. Compiler version 2.47, Microcode Studio version 2.3.0.0. Even reloading didn't help.

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


    Did you find this post helpful? Yes | No

    Default

    what errors do you get?
    Steve

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

  5. #5


    Did you find this post helpful? Yes | No

    Default

    nm. mis read that.
    Last edited by nomad; - 24th November 2007 at 20:49. Reason: oops

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


    Did you find this post helpful? Yes | No

    Default

    ok !!!!!
    Steve

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

  7. #7


    Did you find this post helpful? Yes | No

    Exclamation

    Steve

    Have dug further. The PWM statement will compile by itself. Adding a varible definition does not:

    superman var byte
    pwm porta.0, 127, 100

    Seems that defining any variable causes these errors:

    NEW ERROR_LA~2.ASM 47: [226]numeric constant or symbol name expected
    NEW ERROR_LA~2.ASM 47: [201] ')' expected
    NEW ERROR_LA~2.ASM 47: [212] extra tokens on end of line

    Jim

  8. #8


    Did you find this post helpful? Yes | No

    Smile

    Cancel any further help on this. Found that there is something just strange with the file name that I have been using. I go to another file name or create a new file, and everything works fine. There may be a bug in the compiler or in my system, but I have found how to work around it. Thanks for your help.

    Jim

  9. #9


    Did you find this post helpful? Yes | No

    Default

    I have the same problem...

    I cannot use file names bigger than 8 characters. It's dos related !

    .

  10. #10


    Did you find this post helpful? Yes | No

    Exclamation

    Thank you ruijc. I am glad it's not just me on this one. Seems there are other issues with the compiler that I am finding as well regarding this. I have not concluded anything yet however. Will post as I find them.

Similar Threads

  1. Low freq PWM problem
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th February 2010, 07:09
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  3. PWM Problem
    By cihhan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th June 2008, 18:43
  4. PWM problem CCP2 port
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 19th September 2006, 23:34
  5. Problem with 16F688 and Hserout
    By DWV in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th March 2005, 05:37

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