Y A Serial problem


Results 1 to 20 of 20

Threaded View

  1. #5
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Jeff,

    Jeff>>I've changed the pause time between sends as well as the value and order that the numbers (currently 4 and 2) are sent in. Still the same thing on the PIC end. The second value is always doubled.<<

    One thing that I see, that if you are not careful, is your for and next loop.

    Lets say times=1

    For i=1 to times
    blink
    next i

    Some compilers will *ALWAYS* go through the for and next Loop, no matter what. And others will not.
    If Times=0 it may STILL go through the Loop. Since I did not look at your program in detail, I am only pointing out something I have seen many a programmer get frustrated over. Thus a one or zero will always produce at least one blink.

    Better yet Jeff, can you scope this, and truly varify that you are receiving a 4?

    Dwayne
    Last edited by Dwayne; - 30th November 2004 at 15:22.
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. serial program and sensor problem
    By win_832001 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th April 2006, 04:16
  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. Replies: 8
    Last Post: - 11th November 2004, 20:08
  5. 16F877, DS18S20 and Serial Comm Problem
    By YellowTang in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2004, 10:36

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