Uber noob needs clarity!


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    This will work;
    Code:
    X VAR BYTE
    
    main:
      for X = 0 to 7
          if PortB.0[X] = 1 then xxxxx
      next X
      goto main
    PortB.0 <-- zero after PortB indicates you're dealing with a bit.

    PortB.0[X] <-- [X] = the bit index pointer.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Apr 2007
    Posts
    24


    Did you find this post helpful? Yes | No

    Default bruce is the man!

    "PortB.0 <-- zero after PortB indicates you're dealing with a bit.

    PortB.0[X] <-- [X] = the bit index pointer."


    Thanks bruce that is a brilliant little tidbit of information (for a noob like me)that I probly glazed over in the manual 20 times and it never stuck..

    Thanks! I knew it could be done like that...Just not smart enought to figure out how! hahha

    thanks again!
    Bill12780
    Last edited by bill12780; - 23rd July 2007 at 21:43.

Similar Threads

  1. NOOB in need of help
    By studysession in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th January 2009, 23:01
  2. Replies: 2
    Last Post: - 7th March 2008, 02:16
  3. Help a noob out?
    By yasiryassin in forum mel PIC BASIC
    Replies: 2
    Last Post: - 15th January 2008, 06:37
  4. Crystals & Caps - Super noob question??
    By kevj in forum General
    Replies: 4
    Last Post: - 24th September 2007, 17:11

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