How can I use for next like PORTB.MYVARIABLE ???


Results 1 to 11 of 11

Threaded View

  1. #7
    Join Date
    Jul 2005
    Posts
    65


    Did you find this post helpful? Yes | No

    Lightbulb

    tou can make it that way:

    Code:


    TRISB = 0
    INTCON = 0

    X VAR BYTE

    FOR X = 0 TO 7
    PORTB.0[X] = 1
    PAUSE 500
    PORTB.0[X] = 0
    PAUSE 500
    NEXT X

    END
    Last edited by crematory; - 2nd September 2005 at 17:35.

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