Need help - 16f876 - strange results


Closed Thread
Results 1 to 3 of 3

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Need help - 16f876 - strange results

    Ok only thing I see

    Obstacle is a subprogram and you are getting there from a then goto so return does not do what you are asking.
    try IF inInches <= 9 THEN gosub Obstacle
    Last edited by Archangel; - 4th October 2013 at 04:18.
    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.

  2. #2
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Need help - 16f876 - strange results

    I am not so experienced as others here, but would offer what help and encouragement that I may. It is my experience that coding never fails, some outside factor is introducing change. Odd behavior is often a power issue. Is your power well suppled? Does the pwm continue during the problem? I did not see configuration; could it be watchdog, a poor ground or other exteral condition?

Similar Threads

  1. Strange results with PBP3 and instant interrupts
    By R.G.Keen in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th December 2011, 14:57
  2. RC - connection using RCTime produces strange results
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th February 2007, 16:16
  3. Strange Results in Math
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 31st August 2005, 07:09
  4. Help! - Very strange results with ShiftIn/ShiftOut
    By khufumen in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd February 2005, 22:21
  5. First test program, but strange results
    By bartman in forum General
    Replies: 12
    Last Post: - 19th November 2004, 03:14

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