Another way to left shift a 32 bit data?


Results 1 to 22 of 22

Threaded View

  1. #2


    Did you find this post helpful? Yes | No

    Default Re: Another way to left shift a 32 bit data?

    Not sure if I've understood your problem but how about a fixed array of 32bit numbers, each a constant with 1 bit shifted left. Use n to index into the array.

    So the array would be initialised as 1,2,4,8,16,32,64 etc etc

    Code would look like Answer=Array[n]

    I guess you could do it as a table in code memory if you can find a way to index it.

    George
    Last edited by towlerg; - 21st November 2015 at 23:33.

Similar Threads

  1. how to "shift" a data into led matrix display ?
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 9th January 2015, 17:09
  2. Bit Shift difference between PIC16 and PIC18 ???
    By bambi123 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th February 2012, 02:04
  3. Shift Right, Left
    By tazntex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2010, 16:28
  4. Replies: 2
    Last Post: - 7th March 2008, 03:16
  5. LCDOUT 4-bit data on 8-bit setting
    By breesy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th June 2006, 19:39

Members who have read this thread : 1

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