Problems with 16F684


Closed Thread
Results 1 to 27 of 27

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Same weird behavior using JUST code for thermometer ...
    Code:
    Main :
     OWOut DQ1, 1, [$CC, $44] 
     OWOut DQ1, 1, [$CC, $BE]
     OWIn DQ1, 2, [temperature1.byte0, temperature1.byte1]  
        
    If Temperature1.15 then       
      Temperature1= ~Temperature1 +1
      Twist1 = 1
    Endif
     
    Dummy1 = 625 * Temperature1
    TempC1 = DIV32 10 
    TempC1 = (Temperature1 & $7FF) >> 4
    Float1 = ((Temperature1.Lowbyte & $0F ) * 25 )>>2
    Temperature1 = TempC1*100 + Float1
    
    If Twist1 then
      V1= 10000 - Temperature1                 
      Twist1 = 0
     else
      V1= 10000 + Temperature1
    EndIf
    
    If V1 >= 10000 then                           
      Temperature1=V1-10000                   
     else                                   
      Temperature1=10000-V1                    
    EndIf
    '===================================================================================================================
    GoSub SelectSign
    if (temperature1/100) =>10 then
    LcdOut $FE, $80, "I:", Sign1, DEC (Temperature1 / 100), ".", DEC Temperature1 dig 1, 223 
    else
    LcdOut $FE, $80, "I:", Sign1, $14, DEC (Temperature1 / 100), ".", DEC Temperature1 dig 1, 223 
    endif
    
    Goto Main                                                                    
    '==========================================================================================================================
    SelectSign:
    If v1 = 10000 then                      
      Sign1=" "                          
     else 
      If v1 < 10000 then                     
       Sign1="-"                             
      else
       Sign1="+"                          
      EndIf
    EndIf
    Return

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Sorry for pollute this great forum ... I think it's a PROTEUS error ; with the code posted by Mr.Darrel I have the same messages .Name:  code_Mr_Darell.jpg
Views: 2691
Size:  583.4 KB

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Bad news, for me ... The hardware DON'T WORK ! Just some stranges characters appears on display, not stable-fast changing ...cannot post pictures... I try even code of Mr.Darrel (posted above). I think it's a "incompatibility" between THIS PIC and "LCD_AnyPin" ?!?
    What else I cand do (outside of using "clasic" configuration of LCD-PIC pins) ?

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Please, can someone to compile this file for me ? Maybe it's something wrong with my PBP or WinXp or...I dont know....
    Thanks in advance !
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with 16F684

    Quote Originally Posted by fratello View Post
    Please, can someone to compile this file for me ? Maybe it's something wrong with my PBP or WinXp or...I dont know....
    Thanks in advance !
    I would be willing to compile your code with my PBP v. 2.6 compiler, and I tried to do so. But it won't compile without the include file "LCD_AnyPin.pbp" . If you can post the code to this include file I will give it a go for you.
    Regards, jellis00

  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 for help ! Mr.Darrel code can be found there : http://www.picbasic.co.uk/forum/cont...CD-on-any-pins

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

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