serial communication problem


Results 1 to 14 of 14

Threaded View

  1. #11
    Join Date
    May 2008
    Location
    Italy
    Posts
    825

    Default

    Try this way:

    Code:
    ADCIN 6, lmtemp
    vout =(lmtemp*100)/205
    temp = Vout-50
    Or if you need decimals

    Code:
    ADCIN 6, lmtemp
    vout =(lmtemp*49)-5000
    Integer_Byte = Vout/100
    Decimal_Byte = Vout//100
    Hserout ["Temp = ",Dec Integer_Byte,".",Dec2 Decimal_Byte," °C",13,10]
    Make Vout a word variable ; Interger_Byte and Decimal_Byte byte variables

    Al.
    Last edited by aratti; - 9th March 2010 at 17:29.
    All progress began with an idea

Similar Threads

  1. Replies: 18
    Last Post: - 4th July 2017, 14:26
  2. Replies: 5
    Last Post: - 20th March 2006, 01:34
  3. Serial Communication Problem
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 23rd February 2006, 02:11
  4. Problem in Serial Communication
    By uuq1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th June 2005, 07:17
  5. Replies: 8
    Last Post: - 11th November 2004, 20:08

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