Picking a BIT from a BYTE


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    A naive user might... but our forum members aren't naive... they just might occasionally 'forget' to scroll to the bottom of the page and instead of simply Displaying Results FROM THE "Last Month", they would chose to display them FROM THE "Beginning".
    .. ahem

  2. #2
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    But seriously - have any of you "experts" who are patient enough to answer the same q's time and time again ever thought of grouping your answers into a Wiki type dynamic on line manual ?

  3. #3
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    ... and to wrap this up this is the bit of code I was (re)inventing to look for any button press and then transfer out which button.

    Button_read:
    BUTTON_PRESSED = 0 ' set no button pressed to start
    WHILE BUTTON_PRESSED = 0
    BUTTONS = PORTB & BUTTON_MASK 'READ PORTB and pick out the bits I want
    IF BUTTONS <> BUTTON_MASK then BUTTON_PRESSED = 1 'if any selected pin has been pulled to 0 then button pressed
    PAUSE 10
    WEND
    Menu_1 = BUTTONS.3
    Menu_2 = BUTTONS.4
    RETURN

    It works just fine now, thanks for the pointers. I've no idea why the bit extraction did not work the first time, sods law.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AndrewC View Post
    But seriously - have any of you "experts" who are patient enough to answer the same q's time and time again ever thought of grouping your answers into a Wiki type dynamic on line manual ?
    What's the fun in that?
    Everyone gets all their answers from a wiki, and we've got nobody to talk to.

    We are your "Living Wiki". And can answer questions that haven't even been asked yet. Then once answered, it becomes part of our own little PICWIKI (otherwise known as the FORUM). &nbsp; It may not be organized as well ... but it is DYNAMIC.
    <br>
    DT

  5. #5
    Join Date
    May 2008
    Location
    Florida
    Posts
    64


    Did you find this post helpful? Yes | No

    Wink

    Now if someone could just fix that darn search .....

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    <!-- Search Google --><left><FORM method=GET action=http://www.google.com/custom><TABLE bgcolor=#FFFFFF cellspacing=0 border=0><tr valign=top><td><A HREF=http://www.google.com/search><IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A></td><td><INPUT TYPE=text name=q size=31 maxlength=255 value=""><INPUT type=submit name=sa VALUE="Google Search"><INPUT type=hidden name=cof VALUE="S:http://www.picbasic.co.uk/forum;AH:left;LH:37;L:http://www.crownhill.co.uk/logo.gif;LW:174;AWFID:f08c2ab0d3333e22;"><input type=hidden name=domains value="picbasic.co.uk"><br><input type=radio name=sitesearch value=""> Search WWW <input type=radio name=sitesearch value="picbasic.co.uk" checked> Search picbasic.co.uk </td></tr></TABLE></FORM></left><!-- Search Google --><script type="text/javascript">var adminuser = document.getElementById("inlinemodform");if (adminuser == null) {document.write(" ");} else {document.write("<br><br><b>This form won't work for Admin Users.<br>The inlinemod form interferes with the search form</b>");}</script>
    Last edited by Darrel Taylor; - 3rd August 2008 at 20:08.
    DT

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. LCD freeze
    By harryweb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th October 2009, 08:01
  3. byte compression
    By Norbert in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th June 2007, 18:04
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. 16F877 RAM Question
    By Art in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 6th August 2005, 11:47

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