problem with ir code.using pulsin


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    30


    Did you find this post helpful? Yes | No

    Default Re: problem with ir code.using pulsin

    archangel sir i checked.there is no problem with the declarations.in this compiler one can declare the variables both ways.may be something wrong with the logic....


    IF P_VAL>=600 THEN PACKET.11=1 ENDIF

    maybe something wrong in this line.maybe my calculations are abit off???

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,623


    Did you find this post helpful? Yes | No

    Default Re: problem with ir code.using pulsin

    Hi,
    You really should visit the forum for the compiler you are using. I know it's confusing but there are several different BASIC-compilers for PICs and they are all slightly different from each other in syntax etc so you'll get much better help on a forum where everybody else is using the same compiler as you are - which isn't the case here. There's a link to the PROTON forum in second post in the thread.

    With that said the line...
    Code:
    for SONY_LP=0 TO SONY_LP=11
    ...looks a bit odd to me. I'd try FOR SONY_LP = 0 to 11 instead. But then again your syntax may be perfectly valid for the PROTON compiler you're using, I don't know since I'm not using it.

    /Henrik.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: problem with ir code.using pulsin

    Quote Originally Posted by engineer7 View Post
    archangel sir i checked.there is no problem with the declarations.in this compiler one can declare the variables both ways.may be something wrong with the logic....


    IF P_VAL>=600 THEN PACKET.11=1 ENDIF

    maybe something wrong in this line.maybe my calculations are abit off???
    I never really thought there was, I am pretty sure you are using Proton, THIS IS NOT THE PROTON FORUM. I did not want to just blow you off if you are using M E Labs P Basic.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Mar 2011
    Posts
    30


    Did you find this post helpful? Yes | No

    Smile Re: problem with ir code.using pulsin

    ok thanks everyone.4 pointing me in the right direction!

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts