Using SHIFTIN


Closed Thread
Results 1 to 1 of 1

Thread: Using SHIFTIN

  1. #1
    Join Date
    Apr 2006
    Posts
    92

    Default Using SHIFTIN

    Hi,

    I'm just learning about shiftin. I'm using the pic18f452. Would it be possible to shiftin 12 bits and assign each bit a separate variable?

    shiftin datapin, clockpin, mode, [var1\1, var2\1, var3\1, ... var12\1]

    I am using a shift register that will send out the state of 12 switches to the pic. I need to read the state of each individual switch. var1 is the variable for the state of the 1st switch, etc. I am putting one bit in each variable.

    Do I have this right?

    Thanks for any help.
    TonyA
    Last edited by TonyA; - 31st May 2006 at 16:48.

Similar Threads

  1. 16f877A and shiftin shiftout
    By ghdsfier8 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd February 2008, 13:47
  2. Shiftin question
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th November 2007, 19:09
  3. SHIFTIN problem
    By champion in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th January 2007, 03:31
  4. SHIFTIN clock pin???
    By champion in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd January 2007, 18:41
  5. PIC18F458 Shiftin / Out
    By pberhin in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th May 2006, 20:36

Members who have read this thread : 2

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