16F877 upgrade to 18F4620


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96

    Red face 16F877 upgrade to 18F4620

    I am finally jumping up to the 18F big boy toys....
    I just ordered my first 18F4620 to replace a 16f877A I am using in an LCD board with lots of I/O's, 4x20 LCD, TX/RX and such. I have never used this chipset before. Can anyone tell me what to expect for possible programing problems, compatibility issues, and also how to use the internal oscillator of can I use my XT???

    I am looking forward to the 4X Kword upgrade which is why I chose this chipset.

    I would really appreciate any help.
    Padawan-78

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by earltyso View Post
    I am finally jumping up to the 18F big boy toys....
    I just ordered my first 18F4620 to replace a 16f877A I am using in an LCD board with lots of I/O's, 4x20 LCD, TX/RX and such. I have never used this chipset before. Can anyone tell me what to expect for possible programing problems, compatibility issues, and also how to use the internal oscillator of can I use my XT???

    I am looking forward to the 4X Kword upgrade which is why I chose this chipset.

    I would really appreciate any help.
    Should be a piece of cake to do... In my mp3 player project, I went from a 16F877 to a 18F452 to a 18F4620 without changing any hardware, just rewrote the firmware a bit when changing chips.
    Just pay attention to the datasheets. Register names vary between PIC families.
    If you've got something going, and it isn't going, chances are you haven't read the datasheet far enough.

  3. #3
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Default thanks

    thanks for the help,
    Have you used the internal oscillator on this chipset? up to 40Mhz according to the datasheet.
    Padawan-78

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    more likely up to 32Mhz. Internal osc can go up to 8 MHZ, then you multiply it X4 (PLL)...

    40MHz is when you're using an external 10MHz crystal + PLL enabled.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by earltyso View Post
    thanks for the help,
    Have you used the internal oscillator on this chipset? up to 40Mhz according to the datasheet.
    The datasheets says it'll run UP TO 40Mhz internally, by using the 4xPLL, meaning the most you can put in externally is 10Mhz.
    I've had ONE run at 25Mhz on an external clock (by mistake before I read the datasheet closely), but that's not the norm and most likely won't work for others, not to mention it ran a bit flakey, locked up often, that sort of thing.

    EDIT: Ya, what Mr.E said...I really should read first...

  6. #6
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Smile thanks again

    Thanks again for the help!
    Padawan-78

  7. #7
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Are we reading the same datasheet?

    I downloaded the pdf file from microchip's webpage and read it.

    It said:

    Two External Clock modes, up to 40 MHz

    These 2 modes are:

    9. EC External Clock with FOSC/4 Output
    10. ECIO External Clock with I/O on RA6

    So it is not possible to use the PLL in these modes but the PIC will run at 40 Mhz if it has a 40 Mhz oscillator connected. I run several 4620 on 40 Mhz, both as 10 Mhz +4*PLL and as pure 40 Mhz circuits.

    Also can this be found under absolute maximium ratings:

    All devices 15 35 mA -40°C
    VDD = 4.2V
    FOSC = 40 MHZ
    (PRI_RUN,
    EC oscillator) <--------- look here!!!
    16 35 mA +25°C
    16 35 mA +85°C
    All devices 21 40 mA -40°C
    21 40 mA +25°C VDD = 5.0V
    21 40 mA +85°C


    So there should be no problem at att to run a 18F4620 with EC or ECIO configuration bits from an external 40 MHz oscillator if Vdd > 4.2V and if it is an industrial rated PIC (figure 26-1) the LF and extended rated PIC has a different behaviour.

    /me

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Jumper View Post
    I downloaded the pdf file from microchip's webpage and read it.
    It said:
    Two External Clock modes, up to 40 MHz
    These 2 modes are:
    9. EC External Clock with FOSC/4 Output
    10. ECIO External Clock with I/O on RA6
    /me
    I'll be.... guess I should have read further into it.
    Oh well. Run 10Mhz external gives the option of a sort of clock throttling anyways, switching between the various oscillators, both internal and external. I use it a lot to save battery juice.

Similar Threads

  1. 16f877 to 18f4620 need help
    By vicce67 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th January 2010, 08:20
  2. 16f877 and ps/2 keyboard error???
    By boraciner in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th July 2009, 08:14
  3. 18F4620 and SHT11 problems
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th June 2009, 10:26
  4. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  5. 4 Quadrant dc drive with 16F877
    By mns45 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 23rd February 2006, 13:05

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