18F part recomendation


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Posts
    7

    Default 18F part recomendation

    Quite a while ago I used the 18F452 and had all sorts of weird problems, problems that I were unable to explain. My code was stable until I implemented small changes that caused unrelated routines to stop functioning correctly and too give very strange results. It was exceeding frustrating and time wasting, eventually I gave up and went back to the trusted old 16F877 and had no problems. I was using Timer1 as real time interrupt source and that part was written in assembler. I had no problems with it before.

    Now the project is evolving and a lot more functionality is required. I am faced with the issue of migrating to the 18F part again, or changing brands of micro.

    Has the 18 series been ‘fixed’?

    I would like to know your recommended / favourite and reliable 18F part?
    I am using timer1 with an interrupt service routine (in assembler)

    I require a 40 pin DIP, 16 – 32K of program space, and ADC’s.

    Paul.

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


    Did you find this post helpful? Yes | No

    Default

    Just ensure you have the latest versions of PICBasic and MPLAB.

    16F877's progression is really the 18F452, 18F4520 etc. whilst I don't use those parts, I can confirm their smaller brothers the 18F242, 18F2420, 18F252 etc are stable, and I use those where I run out of steam with the 16F876.

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


    Did you find this post helpful? Yes | No

    Thumbs up I can bet on the 18F452

    Hi there,

    I have used the 18F452 for many many applications and it has never let me down. I tend to use it in the HSPLL mode with a 10MHz crystal for full 40MHz speed. Sometimes while using interrupts it is worth noting that this chip has a high priority interrupt vector and pbp uses the low priority. So setting the configuration for interrupts is important. Also if you are using an LCD a few lines of code in the beginning of the program can indicate problems of STACK OVERFLOW (Weird Reboots).

    IF STKPTR.7 = 1 THEN ' CHECK FOR STACK POINTER OVERFLOW
    LCDOUT "STACK OVERFLOW" ' SHOW IT
    STKPTR.7 = 0 ' CLEAR STACK POINTER OVERFLOW BIT
    PAUSE 5000 ' LET ME READ THE LCD
    ENDIF

    IF STKPTR.6 = 1 THEN ' CHECK FOR STACK POINTER UNDERFLOW
    LCDOUT "STACK UNDERFLOW" ' SHOW IT
    STKPTR.6 = 0 ' CLEAR STACK POINTER UNDERFLOW BIT
    PAUSE 5000 ' LET ME READ THE LCD
    ENDIF

    Regards

    Sougata

Similar Threads

  1. 16F to 18F transition pains
    By lurker in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2008, 01:35
  2. Super easy 18F print strings to UART
    By Bruce in forum Code Examples
    Replies: 0
    Last Post: - 26th August 2007, 23:19
  3. Upgrading 16F to 18F
    By Ron Marcus in forum General
    Replies: 1
    Last Post: - 29th March 2006, 09:44
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42

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