18F4550 - Does strange things on D ports


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by NL2TTL View Post
    I have some more problems with the microprocessor.
    I only use the 18F4550 because of the memory 32KB memory and 2048 SRAM.

    I don't use any USB functions and only control a LCD and a few inputs and outputs for RS232 data.

    It looks like my include file is wrong or does some stramge settings.
    Can somebody please tell me how to configure the INCLUDE file so I disable all the USB functions and set the OSC to 20 MHz?
    Being I do not see the configs in your code I will assume you are changing the *.inc file.
    I may be wrong but I think you think the configs can be changed in MPLAB...Nope.

    Please post the inc.

    This is also helpful.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Dave
    Always wear safety glasses while programming.

  2. #2


    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.

  3. #3
    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