Using Variables with PAUSE/PWM Commands


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Using Variables with PAUSE/PWM Commands

    FLASH_ON VAR BYTE
    FLASH_OFF VAR BYTE
    Your values are larger than a BYTE.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Using Variables with PAUSE/PWM Commands

    Yeah, they need to be WORD-size variables to fit values larger than 255....
    But if you're not going to change the value at runtime there's no real need to have them as variables, you might as well make them constants:
    Code:
    FLASH_ON CON 1500
    FLASH_OFF CON 500
    Saves on both RAM and flash memory.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Using Variables with PAUSE/PWM Commands

    Thanks all! I'll use constants for now but eventually it will read from a pot input.

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