Read state of specific bit (i.ex. of a PORT)


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: Read state of specific bit (i.ex. of a PORT)

    if key active high

    WHILE PORTB >15 : WEND

    or

    WHILE (PORTB&$f0) : WEND


    or if active low

    WHILE (PORTB < 240) : WEND
    Last edited by richard; - 31st October 2020 at 12:45.
    Warning I'm not a teacher

Similar Threads

  1. Replies: 11
    Last Post: - 13th January 2013, 10:25
  2. How can I read a port's status
    By lecoind in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd October 2009, 10:54
  3. PIN state VS Variable read
    By cburtis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th December 2007, 11:54
  4. Replies: 2
    Last Post: - 27th March 2007, 12:48
  5. How to read data 4 bit
    By chai98a in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th December 2006, 05:07

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