18F4550 - Does strange things on D ports


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thank you very much for the feedback from all of you.

    The Byte[74] I changed to [80] already but the biggest problem was the following:

    In the main routine I call the SUBROUTINE Check_RS232

    Code:
    GOSUB Check_RS232
    In the subroutine when the 10ms counter ends and there is no data I don't do a Return but a hard goto Main. So I get unfinished GOSUBS

    Code:
    SERIN RS232_In,N9600,10,Main,DigiData[0]
    After changing the code to check for serial data in the main routine and don't use the GOSUB the problem was solved.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Dang, I should have seen that.

    Thanks for the update.
    <br>
    DT

Similar Threads

  1. Replies: 4
    Last Post: - 17th April 2009, 09:56
  2. Replies: 1
    Last Post: - 29th September 2007, 19:05
  3. 18F4550 to 18F2550
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th September 2007, 00:13
  4. USB Programmer for 18F4550 PICs
    By Kamikaze47 in forum USB
    Replies: 8
    Last Post: - 21st August 2007, 17:29
  5. How many serial ports can 1 PIC handle?
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd March 2005, 05:34

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