Problems with 16F684


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Sorry, fratello....I thought I could help you but I found out your code is setup for use only with the PM assembler which I can't use with my 64 bit machine. I can only use the MPASM assembler. Maybe someone else can help you test compile this.

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Never mind...Thanks anyway for help !
    Regards !

  3. #3
    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'

  4. #4
    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  

  5. #5
    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     

  6. #6
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Congratulation, Fratello!
    Good work.

  7. #7
    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 " !!!
    *****************************************

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