18f252-i/sp


Closed Thread
Results 1 to 5 of 5

Thread: 18f252-i/sp

  1. #1
    Join Date
    Sep 2005
    Posts
    28

    Default 18f252-i/sp

    I am using PIC Basic Pro (verson 2.47) and Micro Code Studio Plus to program two PIC18F252-I/SPs. Part of the program is to communicate between the two PICs, with Serin2 and Serout2 on PIC pins C4 and C5 as Tx and RX for two Laird AC4790 wireless radios.

    Most of the time the communication works well, but sometimes it does not work at all with some PIC chips. I have recently had 4 out of 10 chips that I programmed not work on the serial communication, but the other input and outputs seem to work fine. I have used this program for several years with good results, but recently have had more problems. Any suggestions?

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: 18f252-i/sp

    Code Please? We have NO idea what the problem is, as your post is rather vague..
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: 18f252-i/sp

    Baudrate out of spec for the radio? How are you generating the clock for the PICs?

    /Henrik.

  4. #4
    Join Date
    Sep 2005
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: 18f252-i/sp

    Thanks for the reply. I am using a 9600 baud rate, and the clock is set as "HS" with a 20 mHz resonator. The code has worked for a couple of years, but sometimes it will not work with some PIC chips. The code for this project is very long, and I am working on getting the representative code posted.

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,517


    Did you find this post helpful? Yes | No

    Default Re: 18f252-i/sp

    Aha, 20mHz - there's your proplem...just kidding - you mean 20MHz ;-)

    Did you use the same PCB, same resonator and everthing else and ONLY swapped the PIC when 4 out of 10 didn't work? Or was it actually 4 out of 10 boards that didn't work?
    Datasheet for the specific resonator you're using? Short of that, measure the actual bit-time generated to verify at which frequency the PIC is ACTUALLY running.

    /Henrik.

Similar Threads

  1. 18f252
    By Meriachee in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th July 2009, 03:32
  2. 18F252 config
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th July 2008, 21:19
  3. 18F252 needs a jumpstart
    By BOB012806 in forum General
    Replies: 2
    Last Post: - 5th December 2007, 16:21
  4. MC Studio and 18F252
    By trust issues in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th October 2004, 15:49
  5. Need help with migration 16F876 -> 18F252
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th February 2004, 17:22

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts