with 40 MHZ osc serin2 not work


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2006
    Posts
    60

    Default with 40 MHZ osc serin2 not work

    Hello

    My board with PIC 18F452 and lcd display without MAX232 device work fine with 16 MHZ cristal, but if I change the cristal to 40 MHZ the board work but not the serial communications with Serin2 comand don't work.
    In the code I change to the Define OSC 40 instruction

    Have anyone idea what I make wrong?

    Thank You

    Regards

    Pedro

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Maximum Crystal Frequency is 25 MHz - see datasheet
    (this may be part of your problem)
    Last edited by paul borgmeier; - 1st August 2006 at 17:53.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Jul 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Hello Paul

    Thanks, I will try tomorrow

    Thank You

    Regards

    Pedro

  4. #4
    Join Date
    Aug 2006
    Posts
    65


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier
    Maximum Crystal Frequency is 25 MHz - see datasheet
    (this may be part of your problem)


    Also, it's unlikely the oscillator was clocking at 40 MHz. Once you get past about 25 MHz, most crystals are designed for overtone operation. In order to get the oscillator to operate in the crystal's overtone mode, a special circuit is usually required.

    Joe

Similar Threads

  1. Getting SERIN2 to work?
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 22nd July 2009, 20:10
  2. Resonator Suppliers for 40 MHz?
    By mcphill in forum General
    Replies: 5
    Last Post: - 23rd January 2009, 02:05
  3. 6 MHz Osc and PauseUSL errors
    By vk2tds in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2007, 05:04
  4. Replies: 5
    Last Post: - 11th February 2007, 23:55
  5. HSEROUT not working @ 40 MHz
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 14th September 2005, 17:44

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