Problem with PWM using 16F688


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    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

  2. #2


    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

  3. #3


    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 !

    .

  4. #4


    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, 08:09
  2. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 07:03
  3. PWM Problem
    By cihhan in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th June 2008, 19:43
  4. PWM problem CCP2 port
    By NL2TTL in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 20th September 2006, 00:34
  5. Problem with 16F688 and Hserout
    By DWV in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 19th March 2005, 06: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