Trying to inch my way to the finish line w/ a 16F1829.........


Closed Thread
Results 1 to 40 of 68

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Trying to inch my way to the finish line w/ a 16F1829.........

    About the WORD limitation, how about DOUBLE WORD?

    Use 2 WORD variables, use them in embedded loops.

    Code:
    ... (to increment in a loop, has to be rewritten if PULSE COUNT determined in a calculation)
    
    IF WORD2 < 65535 THEN
      WORD2 = WORD2 + 1
    ELSE
      WORD1 = WORD1 + 1
      WORD2 = 0
    ENDIF
    
    ... (to perform pulses)
    
    FOR COUNT1 = 0 TO WORD1
      FOR COUNT2 = 0 TO 65535
        PULSE
      NEXT COUNT2
    NEXT COUNT1
    
    FOR COUNT2 = 0 TO WORD2
      PULSE
    NEXT COUNT2
    I know it's more tedious, but it should work in my reality.

    Robert


    Edit: or you can use a 18F with PBPL. D'OH!

    Max. 2,147,483,647.
    Last edited by Demon; - 3rd June 2014 at 16:20.

Similar Threads

  1. Replies: 2
    Last Post: - 31st May 2013, 18:19
  2. line truncate...again
    By queenidog in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th March 2012, 21:58
  3. Most Users Ever On-Line
    By skimask in forum Off Topic
    Replies: 1
    Last Post: - 26th April 2007, 19:06
  4. 2 Line Chars on a 2 Line LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th November 2003, 00:44

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