Accessing Portion of Input Port


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Frozen001 View Post
    I know I can do it that way I was just looking to do it with out the and satements... so I can say something like:
    Code:
    IF PortA135 = $6h then
    endif
    IF ( PortA AND %00101001 ) = $29 (in this case all bits must be logic high) THEN whatever

    Or are you talking about pulling out PortA. bits 1, 3, and 5 (or whatever) and putting them in temp. bits 0,1,2 ???
    Last edited by skimask; - 24th October 2008 at 15:51.

Similar Threads

  1. Input and Output on same Port
    By Frozen001 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th November 2008, 18:46
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  4. Can defines be changed with port input?
    By Archangel in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th November 2006, 22:50
  5. Duplicating port input to port output
    By lwindridge in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th April 2004, 21:43

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