garbage var from pulsin,,


Results 1 to 13 of 13

Threaded View

  1. #10
    PICMAN's Avatar
    PICMAN Guest


    Did you find this post helpful? Yes | No

    Default

    indeed i was not clear, when i use purely ascii, i get prouduct i ecpect, for example 149 at zero,, but if i try to convert to DEC it gives me junk, i wish to use logic to say

    if PLS = 143 - 153 then rled =0 : lled = 0
    if pls > then 153 then lled = 1
    if PLS < 143 then rled = 1

    my problem, is the only way i can see to refrence the varible, is in ascii format, so i need to know how to type ascii text, in my pbp program,

    finished prouduct will have NO serout and will be self running, no pc conected, i just conect bs2 to pc to see how i can interact with var PLS,, which i have found i get the numbers i expect with out hassle in ascii format,, so i believe if i can use ascii formatt in my program ,, i can logically creat a flow, like above, but with out dec format,, not 149 , o with 2 circles above, but i am unsure if i can use ascii in program , i know for bianary i use %0000 0000,, i call this refrencing bianary, how do i refrence ascii, and how do i type out ascii characters,

    originally i planed to use code identical to above, but i find isues when i tell debug to read out dec format, so since i get numbers i know are what i need in ascii, i wish to refer to these values in ascii, to prevent garbage results, since ascii gets me what i need, and shows corasponding interaction when i controll sevo via remote , values change acordingly
    in dec format they donot

    or am i over thinking this, if i type code as above will it work, it seems to me the pic should know 149 = o with 2 circles above, (ascii )
    Last edited by PICMAN; - 21st February 2005 at 22:15.

Similar Threads

  1. RF Modules
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 44
    Last Post: - 26th June 2010, 18:42
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 14:35
  3. Puzzling issue with I2CWRITE to 24LC512
    By aberco in forum General
    Replies: 4
    Last Post: - 22nd August 2008, 18:47
  4. 16F877 RAM Question
    By Art in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 6th August 2005, 12:47
  5. 18F6680 and portd problems.
    By jkbh in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 6th June 2005, 11:54

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