Is this possible?


Results 1 to 21 of 21

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    I was thinking that at the beginning of the sequence you could put the length and the period just before the data. The entire sequence would have to be the same speed, but it saves a bunch of EEPROM.

    Code:
    ZigZag
                    DATA    12, 100       ; length, speed
                    DATA    Word %0000
                    DATA    Word %0001
                    DATA    Word %0010
                    DATA    Word %0100
                    DATA    Word %1000
                    DATA    Word %0000
                    DATA    Word %1000
                    DATA    Word %0100
                    DATA    Word %0010
                    DATA    Word %0001
                    DATA    Word %0000
                    DATA    Word %0000
    Then you do 12 loops with a PAUSE 100 in each loop.
    May be more limiting than what you have though.

    P.S. You can store the sequences in Flash memory instead of EEPROM, and you'll have a lot more room. (not much more with a 16F687 though)
    Last edited by Darrel Taylor; - 27th January 2010 at 04:19. Reason: P.S.
    DT

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