Problems with 16F684


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Hi fratello!
    I tried to compile but I got :
    Error UNTEST~.ASM 440: [235] opcode expected insted of 'error'

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Strange ...
    I have no errors on compiling...just not work !
    Attached Images Attached Images  

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    With code from post #1, I build this thermo-voltmeter for using in car.
    Note : for "I(nside)" I dont have anymore DS18B20 sensor...
    Attached Images Attached Images     

  4. #4
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Congratulation, Fratello!
    Good work.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Hi, Fratello

    I just think ISIS doesn't appreciate you do not wait for DS1820 temp conversion complete to continue running your code ...
    not a real problem ( Mikroelektronika lets it as-is in its onewire drivers ... booooo )

    in easy words, ....Change

    Code:
    Main :
     OWOut DQ1, 1, [$CC, $44] 
     OWOut DQ1, 1, [$CC, $BE]
     OWIn DQ1, 2, [temperature1.byte0, temperature1.byte1]
    for
    Code:
    '*****************************************************************************
    ' Start temperature conversion
    '*****************************************************************************
    main:
     OWOut DQ1, 1, [$CC, $44 ]
    '*****************************************************************************
    ' Check for still busy converting 
    '*****************************************************************************
    waitloop: 
    
     OWIn DQ1, 4, [Busy]        ' Check for still busy converting
     
     Pause 95         ' Slow Down to actual Conv. time
     
     If NOT Busy Then waitloop
      
    '*****************************************************************************
    ' Read the temperature
    '*****************************************************************************
     OWOut DQ1, 1, [$CC, $BE ]
     OWIn DQ1, 2, [temperature1.byte0, temperature1.byte1]
      
    
    .
    .
    .
    you will display the very last correct measurement and not get " 85°C" or junk at power up ...

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Thank You so much for help !
    I give up to use "LCD_AnyPin" ... since don't work (see post above, #14) ! I use "classic" hardware, with good results ! And I made one good PCB too...
    Best regards !
    Attached Images Attached Images  
    Last edited by fratello; - 1st December 2011 at 17:52.

  7. #7
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    You made that PCB in Proteus?

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