WHILE WEND and SHIFTIN


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: WHILE WEND and SHIFTIN

    check this out
    http://www.picbasic.co.uk/forum/showthread.php?t=4093

    still, an home made shiftin is well under 20 lines of code.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136


    Did you find this post helpful? Yes | No

    Default Re: WHILE WEND and SHIFTIN

    Mister_e
    Thanks for that, I didn't know it was possible.
    Another solution to prevent the code hanging has just occured to me.
    Replace the WHILEs with fixed delays that are equal to the longest conversion time of the SHT15 sensor. I think this will be OK but it seems a crude solution compared with an interrupt?

    Regards Bill Legge

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: WHILE WEND and SHIFTIN

    well if you build your own shiftin routine... you could check the state at each clock pulse... neat too.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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