Compare value ... - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 69 of 69

Hybrid View

  1. #1
    Join Date
    Apr 2020
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    Quote Originally Posted by louislouis View Post
    Yes. And now it runs OK?
    No, I have always used fuses since the first moment I started creating the project.
    I'm going crazy for this, I also changed PBP to version 2.47. I don't know what to think anymore.


    it is evident that I have a problem, but I cannot attribute to what.


    1) PBP compiler, tested with 2 versions 2.60 and 2.47
    2) IDE MicroCode, I wouldn't say.
    3) Microcontroller (the chip) cannot be, because if I pilot the door with the command PORTB.6 = 1 and PORTB.6 = 0 the relay attacks and disconnects regularly.
    4) the BYTE or WORD variables, but I also tried to change the reference value by declaring them both as WORD.
    5) The firmware is the same
    6) The programmer?

    I don't know what to think anymore

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    What kind of programmer do you use? What is your programming process?
    First you compile in MCSP and then take the compiled HEX file and program to PIC with your picprogrammer? Or? How you program the PIC?

  3. #3
    Join Date
    Apr 2020
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    Quote Originally Posted by louislouis View Post
    What kind of programmer do you use? What is your programming process?
    First you compile in MCSP and then take the compiled HEX file and program to PIC with your picprogrammer? Or? How you program the PIC?
    It was a long time since I worked there, I pulled out old tools because I stopped at work for the "Corona Virus" and I wanted to have some fun.
    Some time ago I used a self-built ProPic2, which went on parallel port.
    Now that I no longer have the parallel port, I bought a K150 on the internet. This mounts on USB.


    1) I write the code in MicroCode
    2) the MicroCode settings are these

    Name:  Untitled.jpg
Views: 5971
Size:  73.6 KB


    3) I take the .Hex file
    4) I load the firmware for download on this program:

    Name:  Untitled1.jpg
Views: 6035
Size:  141.0 KB

    5) I mount the chip on the K150
    6) I program
    7) At the end I reassemble my chip in the BreadBoard

    and go ON

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    Here is the compiled HEX file. Take it in to your programmer and program your PIC. It must run.
    Attached Files Attached Files

  5. #5
    Join Date
    Apr 2020
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    Quote Originally Posted by louislouis View Post
    Here is the compiled HEX file. Take it in to your programmer and program your PIC. It must run.
    Excellent, I tried. But it behaves the same way !!

    I noticed that by entering your firmware the fuses are set automatically as I manually set them.
    And that's OK.

    But the behavior seems identical to that compiled by me. After an initial click, the relay goes ON even when the temperature is lower than 30 ° and when it exceeds 30 ° nothing happens.

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    This compiled HEX test your PORTA.6 (pin 15) on your PIC if is it wired right.
    It switch ON and OFF the relay five times, on LCD write: Rele ON if activate the pin
    and Rele OFF when deactivate the pin.
    If this perform As I wrote then the rele is wired OK and works. Then the fault must be elsewhere.
    Then we go troubleshoot further more.
    Attached Files Attached Files

  7. #7
    Join Date
    Apr 2020
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    [QUOTE = louislouis; 145045] Questo HEX compilato verifica il tuo PORTA.6 (pin 15) sul PIC se č cablato correttamente.
    Accedere e spendere il relč cinque volte, sul display LCD scrive: Rele ON se si attiva il pin
    e Rele OFF quando si disattiva il pin.
    Se questo funziona Come ho scritto, il rele č cablato OK e funziona. Quindi la colpa deve essere altrove.
    Quindi andremo a risolvere i problemi. [/ QUOTE]


    Ti confermo.
    Il relč attiva e disattiva 5 volte l'


    ultimo passaggio, spegne il relč, pulisce lo schermo e non appena lo schermo mostra le temperature, il relč viene attivato.


    A quel punto non succede piů nulla, anche quando la temperatura ambiente supera i 30 °

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    OK, please program this HEX and tell what number shown on display. Then warm up the sensor with fingers or soldering iron. The numbers should be arround 600 for 30degC and 700 for 35degC and so on.
    This test the ADC reading on your PIC.
    Attached Files Attached Files

  9. #9
    Join Date
    Apr 2020
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: Compare value ...

    [QUOTE = louislouis; 145048] OK, si prega di registrare questo esadecimale e dire quale numero mostrato sul display. Quindi riscaldare il sensore con le dita o il saldatore. I numeri devono essere intorno a 600 per 30 ° C e 700 per 35 ° C e cosě via.
    Questo test la lettura ADC sul PIC. [/ QUOTE]


    Prima di installare questo firmware il display mostrava 25,5 ° C.
    Con questo firmware sul display della legge 665.
    Tenendo il sensore tra le dita puoi vedere il valore salire 670, 674, 677.679 ... ecc.

Similar Threads

  1. How to compare two temperatures
    By SKOLS1 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2012, 10:07
  2. how to hserin compare with known value?
    By aa222k in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd November 2010, 19:48
  3. Is there a faster way to compare?
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th February 2010, 20:48
  4. how to compare data
    By Mus.me in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 1st November 2009, 23:30
  5. Compare Data
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 14th February 2008, 21:40

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