Help with code


Results 1 to 8 of 8

Thread: Help with code

Threaded View

  1. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Ok

    so ...

    reading PORTD ...

    Code:
    		
    B=PortB : C=PortC.5
    
    D = PORTD & %11111100 ' read PORTD and mask port D.0 and D.1
    
    IF B=0 and C=0 and D=0 then
    		toggle BUZ: pause 20
    	endif
    should fit ... no indexing necessary !

    ( BTW ... not sure it was working so fine ... lol )

    Alain
    Last edited by Acetronics2; - 11th April 2010 at 11:27.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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