changing code from 16F to 18F microprocessor


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Agreed 100%.
    Started out a project a long time ago on a 16F877A. Ran out of memory, plugged in an 18F452, changed a couple of define's, a few register settings, ran great. Ran out of memory again, plugged in an 18F4620, changed a few more register settings...Same program, ran like a champ (then ran out of code space again, built up an 80pin TQFP-> 40 pin DIP adapter for an 18F8722, plugged it in, changed 1 or 2 register settings, doubled the code space, ran great again).
    ... then run out of memory again and plugged a ... x86 core 2 with 2gb of memory!

    Ioannis

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    ... then run out of memory again and plugged a ... x86 core 2 with 2gb of memory!
    Ioannis
    I could run the 18F8722 in external mode and 2GB of flash....and skip the Core2 altogether

    But that's what I get when I kept adding crap on top of crap on top of crap
    I went thru the code awhile back and tried a fair amount of optimizing. Turns out I could've stuck with the '452 if I'd have just been a bit more diligent in the code writing in the first place.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    But that's what I get when I kept adding crap on top of crap on top of crap
    I think thats called spaggeti programming! You are lazy to optimize it once then it grows linearly, or better exponentially, full of crap! I 've been there too!

    Ioannis

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. 16F to 18F transition pains
    By lurker in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2008, 01:35
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Changing Swordfish code to PBP
    By Ron Marcus in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th April 2008, 01:28

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