Why use an 18F chip


Closed Thread
Results 1 to 4 of 4
  1. #1
    AndyP's Avatar
    AndyP Guest

    Default Why use an 18F chip

    Can anyone let me know what the advantages or disadvantages are of using the 18F series chips over the 16F series?

    I mainly use 16F628s, 12F675s, 16F87Xs etc..

    In terms of PBP programming, is there any difference?

    Thanks

    Andy Peaple.

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


    Did you find this post helpful? Yes | No

    Default

    Uggghhh... where do we start on this one.... try twice (or more) the Program Memory, ability to run from internal oscillators (which 16F87X series does not have), and ability to run up to 40MHz just for starters.

    Doing away with an external oscillator has heaps of advantages... not having to buy an xtal or resonator is just one of them. 20 cents does not seem like much until you multiply it up by a 10,000 production run and the time saving in not soldering that part in. Having just one or two extra I/O lines for example is actually a major bonus. There's a big jump from a 28-pin PIC (eg 16F876) which only has 22 I/O's to the next size up (16F877)... that 40-pin DIP package is a waste of valuable real-estate in many cases.

    1.5kb of on-chip RAM makes the 16F877's 368 bytes a little small. This means you can now read and write decent sector sizes in real-time to Floppy and Hard disks.

    With more versatile programmable code protection, you can use an external EEPROM to load program overlays into your codespace... this means you can have a complex program taking up most of your Progam Code, then overlay a completely new program for little used options such as Set-Up menus or field update programming. Using techniques like this, suddenly you have a PIC with 250kb or more of Program codespace...

    In many cases there's extra hardware in the box too...

    With regard to programming, it depends what you want to do. You need to download and install MPLab's MPASM assembler, since you can't use PBP's PM Assembler. Setting the Configuration Fuses becomes a little more complex (as there's heaps of them). Other than that, life is good.

    On the flip side, there is one major dissadvantage... you have to be a bit more professional with your board layouts and overall circuit design as these devices are more susceptible to noise. As with all things... the more complex you make it, the greater the chance that some oddity will crop up to spoil your day.

  3. #3
    AndyP's Avatar
    AndyP Guest


    Did you find this post helpful? Yes | No

    Default Board layouts

    Are they still suitable for veroboard use would you say? I don't make PCBs at home, I just use veroboard and breadboard for testing on. Am I likely to experience problems with these, or will a 0.1uF bypass cap take care of noise issues?

    1.5K of ram sounds impressive. I was actually browsing the net recently for I2C or SPI addressable RAM modules (not EEPROMs) for storing large amounts of text that would eventually be displayed by an LCD, however if I can fit all of that into the PIC, -problem solved!.. I was only looking for about 512bytes as well! The 18F series may be my answer to this one..

    Thanks

    Andy Peaple.

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Andy,

    more memory (Code and RAM) was one of the major reasons for migrating from 16F876 to 18F252.

    I have been running the 18F252 or 18F452 on VeroBoard (kind of)
    in some projects and not experienced any problems so far eventhough the 18Fs are ment to be more "critical" than the 16Fs.
    (Well, those Boards are not being used in a noisy environment)

    For an example see:

    http://www.picbasic.co.uk/forum/show...=&threadid=639

    regards.

Similar Threads

  1. 18f series chip locked up
    By glkosec in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th August 2009, 07:27
  2. PBP is driving me crazy trying to make an 18F chip blink
    By George in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th June 2008, 06:08
  3. changing code from 16F to 18F microprocessor
    By SCC_699 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 14th May 2008, 13:27
  4. TV Display Chip
    By zadok in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 17th April 2008, 22:17
  5. chip selection aid
    By PICMAN in forum General
    Replies: 4
    Last Post: - 21st February 2005, 18:33

Members who have read this thread : 1

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