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


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    MaurI's Avatar
    MaurI Guest


    Did you find this post helpful? Yes | No

    Default

    i var byte
    x var byte

    TRISB=0

    i=0
    begin
    For i=0 to 7

    Lookup i,[1,2,4,8,16,32,64,128],x
    PORTB=x
    Pause 200
    next i
    i=0
    goto begin

    end


    Well in this little sample there is For next so check it out!

    And don't use those High and Low if it is possible better use =0, =1 - it will save your code space
    Last edited by MaurI; - 2nd September 2005 at 11:55.

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