migrating to pic18f452 from 16f877a


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    According to the Datasheet (always READ the Datasheet) Table 22-4 External Clock Timing Requirements, on Page 268 of DS39564A the maximum xtal speed in HS mode is 25MHz.

    If you need to run at 40MHz, either (a) fit a 10MHz xtal and run 4xPLL (datasheet section 2.5), or (b) input 40MHz from a external oscillator with the PIC in EC or ECIO mode (Datasheet section 2.4).

  2. #2
    Join Date
    Dec 2006
    Posts
    21


    Did you find this post helpful? Yes | No

    Default many thanks ..

    Dear melanie .... i will try your suggestion ... i saw this table and i wondered why 40 mhz is not included ... you explained it ... the datasheet says at the very begining that max freq. is 40 mhz (not max external oscillator frequency) ... i will try and let you know the result ... however , many thanks for your kind concern.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tamersoss View Post
    Dear melanie .... i will try your suggestion ... i saw this table and i wondered why 40 mhz is not included ... you explained it ... the datasheet says at the very begining that max freq. is 40 mhz (not max external oscillator frequency) ... i will try and let you know the result ... however , many thanks for your kind concern.
    It's probably not the PIC's fault that it won't run at 40Mhz, it's probably the circuit board's fault. The PIC will run all day at 40Mhz (55Mhz for one of mine that I pushed up a bit) even with an external 40Mhz. The key is a well designed 40Mhz external oscillator. There's a dozen reasons why a 40Mhz crystal won't run if it's not built right, especially if you're using one of those plastic solderless breadboards. Besides that, the external 10Mhz will keep down EMI over the whole circuit board.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Are you saying that you've actually had a 40MHz xtal or resonator directly work with one of these (18Fxx2) PICs (which would contradict the maximum Datasheet figures)?

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    Are you saying that you've actually had a 40MHz xtal or resonator directly work with one of these (18Fxx2) PICs (which would contradict the maximum Datasheet figures)?
    Yep, 40Mhz Xtal w/ 33pf cap's right next to OSC1&2 with a bit of a ground plane around the whole thing. Wasn't too reliable though. I'd touch practically anywhere the board and the PIC would lock up. That's when I read the rest of the datasheet (DS39564C) and found what you were saying about the 25Mhz earlier and fixed the whole thing.

    As far as the 55Mhz goes, that was a 13.824Mhz oscillator, and using the 4xPLL, but that was also running the chip on 6.5v.

    And this was the same chip that did 40Mhz with the external crystal. My guess is that this particular 18F452 chip was 'perfect', if not better, from the factory...a once in a lifetime good deal for me...not the norm obviously...

  6. #6
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default I recommend x4 PLL mode

    Hi,

    Almost all of my 18F452 designs are based on x4 PLL mode. That is I use a 10MHz crystal and get a 40MHz Fosc. They have never let me down.
    Regards

    Sougata

Similar Threads

  1. 16F877 vs. 16F877A
    By DavyJones in forum General
    Replies: 12
    Last Post: - 11th April 2009, 18:22
  2. help my bluetooth and PIC 16F877A?
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th March 2008, 06:52
  3. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54
  4. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 18:52
  5. 1st 16F877A program in PICBasic
    By Borisw37 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th January 2005, 04:46

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