self diagnostic problem 16F819


Closed Thread
Results 1 to 6 of 6
  1. #1
    wilfrieds's Avatar
    wilfrieds Guest

    Post self diagnostic problem 16F819

    Hello there

    I'm working on a "yellow metal" LCD display dashboard, it took me a very very long time so far ( years ) and is finally ready for a test ride.

    In order to improve on the hardware diagnostic ( broken wire warning etc ...)
    I still remain with a problem that has me shaking my head.

    When the microcontroller is started without a connection to the tempval = adin 1
    see tempcalc: then it does not display the results from adin 2 and adin3
    namely the battery voltage and the oil pressure warning light.

    I would like to improve the program so it can diagnose and display all hardware problems
    as much as possible

    tempcalc:
    tempval = Adin 1 ' Read portA.1 to tempval
    If tempval > 1000 then goto tf ' faulty connection
    If tempval > 415 then goto cold
    if tempval > 320 then goto calc1
    If tempval > 241 then goto calc2
    If tempval > 157 then goto calc3
    If tempval > 112 then goto calc4
    If tempval < 113 then goto tf ' faulty wiring or sender - short to ground.

    the program and hardware connections:

    www.skidloaders.co.za/pic/LCDDv21.bas

    a picture when all goes well

    www.skidloaders.co.za/pic/LCDdash1.JPG

    a picture when wire of temperature gauge is not connected

    www.skidloaders.co.za/pic/LCDdash2.JPG


    It's getting late so - to all - goodnight
    Wilfried

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Try something like
    Code:
    If tempval = 0 then go someplace else
    Or do an IF THEN ELSE at the end of the tempval block.

    It looks like the program is stuck waiting on "tempval".
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    after all the calc routines theres goto tempdisp but for the tf routine you have goto loop. never gets to temp display.

  4. #4
    wilfrieds's Avatar
    wilfrieds Guest


    Did you find this post helpful? Yes | No

    Smile

    Thanks guys

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


    Did you find this post helpful? Yes | No

    Talking Lol !!!

    Hi,


    Vade Retro ... Satanas !!!

    " written in proton+ 2 by Wilfried Smekens "

    What does proton+ 2 really mean ???

    Alain
    Attached Images Attached Images    
    Last edited by Acetronics2; - 8th October 2007 at 12:50.
    ************************************************** ***********************
    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
    wilfrieds's Avatar
    wilfrieds Guest


    Did you find this post helpful? Yes | No

    Cool protron+ 2

    Bonjour Alain

    Proton Plus version 2

    Similar Pic Basic pro language as microcode. ??

    I actually bought microcode in the belief that is was the newer version of Proton.
    I still have not used it but will probably will once the 18F series become more used.

    Kind regards
    Very wet South Africa. ( we needed the rain real badly )
    Wilfried

Similar Threads

  1. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  2. Pulsin 16F819 problem
    By rekcahlaer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th April 2007, 13:52
  3. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  4. PIC 16F819 Turn-On Problem
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 13th September 2005, 22:12
  5. Rb1 Problem On A 16f819..
    By Calco in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2004, 15:09

Members who have read this thread : 1

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