Please explain PORTB.0[i]


Closed Thread
Results 1 to 3 of 3
  1. #1
    blainecf's Avatar
    blainecf Guest

    Cool Please explain PORTB.0[i]

    In the PBP Pro manual, under REPEAT..UNTIL there is some sample code:

    -------------

    i = 0
    REPEAT
    PORTB.0[i] = 0
    i = i + 1
    UNTIL i > 7

    -------------

    Could someone explain the concept of [i] in this context? I understand PORTB; I understand the low bit of PORTB referred to as PORTB.0; but then I get confused.

    Thanks for your patience!

  2. #2
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile Where to look

    Take a look at these great forum posts from Melanie and Bruce.

    Melanie
    Bits, Bytes Words and Arrays
    http://www.picbasic.co.uk/forum/showthread.php?t=544

    Bruce
    Indexing Port Pins
    http://www.picbasic.co.uk/forum/showthread.php?p=19943

    Hope this is what you wanted.

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  3. #3
    blainecf's Avatar
    blainecf Guest


    Did you find this post helpful? Yes | No

    Talking Thanks!

    I've printed both of them out, and I'll read over them during the weekend. This also may answer another question I posted.

    As always, thanks to this community for the help!

    bcf

Similar Threads

  1. Please explain me WHY!
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th September 2009, 07:52
  2. i need more explain
    By lo0oly in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th April 2009, 13:55
  3. 16F676 Please explain this problem...
    By Jayhovah in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th May 2008, 21:30
  4. Replies: 8
    Last Post: - 14th April 2008, 06:58
  5. Please explain about this program
    By wafagenius in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th October 2006, 01:25

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