Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Ioannis; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    68
    Views
    3,871

    Re: Compare value ...

    Calm everybody please.

    End of story.

    Seems that our lockdown makes everybody more sensitive!

    Ioannis
  2. Replies
    68
    Views
    3,871

    Re: Compare value ...

    Oh dear... come on now!

    Ioannis
  3. Replies
    68
    Views
    3,871

    Re: Compare value ...

    Yeah Richard. I missed that.

    Also he must check if the port is working.

    Ioannis
  4. Replies
    68
    Views
    3,871

    Re: Compare value ...

    On your last program, you still have in the room temperature a 3 digit value, say 250 and compare it with the Tmax that is 30.

    If temperature is 250 and TMax is 30 what is the result? Portb.6...
  5. Replies
    68
    Views
    3,871

    Re: Compare value ...

    You should make it word. 30*10=300 > than a byte can hold.
    Also better make the multiplication outside the comparison.

    Use the LCD as a monitor to check your values.

    About compilation, I guess...
  6. Replies
    68
    Views
    3,871

    Re: Compare value ...

    Don't you see? You display a decimal number but the number is in fact 245 and not 24.5!

    So, maybe you can use word variables and multiply them by 10 so you can compare 245 to 160 and 300.

    My...
  7. Replies
    68
    Views
    3,871

    Re: Compare value ...

    Try:

    1.
    ADCON0=%10000101
    while !adcon0.2:wend

    2.
    Display your variables on LCD or a serial port to be sure what values they are

    Ioannis
Results 1 to 7 of 7