Is it allowed to change pin reference within a subroutine?


Results 1 to 19 of 19

Threaded View

  1. #13
    Join Date
    Jun 2016
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Is it allowed to change pin reference within a subroutine?

    you realise of course the ow device takes 750mS or so to complete the conversion
    before the read scratch pad can occur or you can poll the busy state
    No! I didn't realise the convertion was such a slow process!

    Well I need to modify the code to cope with this necessary delay.

    Thank you Richard to have brought to my attention this problem.

    Alberto

    Edited: Dave, the reason for not using a single pin for all 3 devices using match rom comand is simple: I did try but I failed! But now that I am aware of this long delay necessary for the convertion time, I am happy to have choosen the three separate pins, becouse in this way I can split the delay of 750 milliseconds and get all three values in 750. - 800 milliseconds.
    Last edited by Alberto; - 31st January 2017 at 13:40.

Similar Threads

  1. Replies: 8
    Last Post: - 21st March 2015, 17:21
  2. 10F222 Wake on pin change
    By AvionicsMaster1 in forum PBP3
    Replies: 11
    Last Post: - 9th January 2014, 19:14
  3. Reference a port pin from a variable
    By JimAvanti in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th February 2012, 20:18
  4. Interrupt-on-Change-pin!
    By PICante in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th February 2009, 20:22
  5. HELP !!! How change the voltage of a pin ????
    By stormdacta in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 21st August 2007, 20:55

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