Need some advice.


Results 1 to 24 of 24

Threaded View

  1. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    No problem ... just poll the DS data line to see if conversion has ended.

    Code:
    '*****************************************************************************
    ' Start temperature conversion
    '*****************************************************************************
    
    mainloop: OWOut DQ, 1, [$CC, $44 ]
    
    '*****************************************************************************
    ' Check for still busy converting ( ~ 4500 fois ... )
    '*****************************************************************************
    
    waitloop: 
    
    		INPUT DQ
    		If NOT DQ Then waitloop
    	
    '*****************************************************************************
    ' Read the temperature
    '*****************************************************************************
    	
    	OWOut DQ, 1, [$CC, $BE ]		
    	
        OWIn DQ, 0, [temperature.LOWBYTE, temperature.HIGHBYTE, Skip 4, count_remain, count_per_c]
    Here, you won't have a Waitloop, but, say, goto your regulating loop ...

    AND remember heating has "a little" ( LOL !!! ) inertia, and some AC periods more or less won't disturb the system ...
    the temp data will be updated each ~ .75 s ... that's all !!!

    using a MOC 3041 to drive your SCR could miraculously simplify your program ...
    just an idea ...

    Alain
    Last edited by Acetronics2; - 27th April 2008 at 13:30.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Advice on Wiegand Buffer
    By brutc001 in forum Schematics
    Replies: 0
    Last Post: - 19th December 2009, 00:31
  2. Need "PIC16F84A" Controler schematic Advice...
    By Kyo_89 in forum Schematics
    Replies: 1
    Last Post: - 27th May 2009, 23:03
  3. Your OTP advice?
    By truvahorse in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th June 2008, 16:37
  4. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 16:28
  5. Advice needed on 'neat' Project!
    By vacpress in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th February 2007, 06:21

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