Need help on pic to pic flow control (simple problem I think)


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    46

    Default Need help on pic to pic flow control (simple problem I think)

    I have two 18F458s communicating with each other using flow control and for some reason my variables are losing their values. My code is as follows:


    Baud384NoIvn CON 6
    J var Byte

    J = 0
    MainLoop:
    J = J + 1
    Pause 1000
    debug "Sending ", dec J, 13, 10
    SEROUT2 PORTA.1\PORTA.3, Baud384NoIvn, 2000, Nada, [J]
    Nada:
    goto MainLoop

    The output of this code is

    Sending 1
    Sending
    Sending 3
    Sending
    Sending 5


    As you can see, it's skipping a number. I been fooling with this for several hours. If I take out the flow control, it works fine. Any insight would be greatly appreciated.

    Thanks
    Eric

  2. #2
    Join Date
    Oct 2004
    Posts
    46


    Did you find this post helpful? Yes | No

    Default New 2.46 version required to fix the problem

    Well folks, the support staff at Melabs answered my question. Version 2.45 has issues with flow control. Version 2.46 does not. So if anyone is reading this, you've found the solution to the problem.

    Eric

Similar Threads

  1. 5v for PIC problem
    By financecatalyst in forum Schematics
    Replies: 4
    Last Post: - 24th August 2009, 16:04
  2. The best way to control a servo with a PIC
    By The Master in forum Off Topic
    Replies: 41
    Last Post: - 19th October 2008, 02:44
  3. flow control
    By pierre2030 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th February 2006, 04:53
  4. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 14:31
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23: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