Jump to content

replacing a PIC18F452 by a PIC18F4685


canrull

Recommended Posts

Hello, guys.

I have a finished C application running on a Core + Bankstick + Unmuxed AIN + DIN module.

See http://www.midibox.org/forum/index.php?topic=9495.0.

I run out of memory, so I cannot keep on expanding the application.

So I am thinking of replacing my PIC18F452 by a PIC18F4685 to get more application memory space.

Will my C application work just by recompiling it?

Thanks in advance,

Canrull.

Link to comment
Share on other sites

4620 would probably be a better solution unless you want CAN.

You don't even need to recompile to change PIC, but if you want to use the additional RAM you will need to edit the linker script (project.lkr)

I have written lots about that topic before, so now that you have the right search term, I'll leave you to it. Hint: Check the wiki. :)

Link to comment
Share on other sites

I already searched the wiki, but I didn't find an unequivocal statement saying it would work... maybe I am a little bit clumsy.

In fact, I saw the thing about the 4620 bug, that will bring me problems with MIDI, because MIDI IN/OUT can happen at the same time, and I am not (and I will not be) using MBHP_IIC_MIDI:

http://www.midibox.org/dokuwiki/doku.php?id=mios_pic18f4620

So I was wondering if using PIC18F4685 was the solution.

Regards,

Canrull

Link to comment
Share on other sites

I already searched the wiki, but I didn't find an unequivocal statement saying it would work... maybe I am a little bit clumsy.

That'd be because noone has done it before - if you write the document then the next guy won't have the same problem ;)

In fact, I saw the thing about the 4620 bug, that will bring me problems with MIDI, because MIDI IN/OUT can happen at the same time, and I am not (and I will not be) using MBHP_IIC_MIDI:

In that case 4685 would be suitable. Note that it does not have as much RAM as a 4620, and that some sections of RAM are not accessible by indirect addressing.

Link to comment
Share on other sites

  • 7 years later...

Hi,

old thread but same request.

Is there any linker script for PIC18F4685?

Where to find sdcc's pic18f4685.h header or can I still compile within pic18f452.h, if I need only more space for coding instead the new abilities of that Chip?

And as an Hardware Option: Can I configure and use LCD connections like before I had used for the PIC18F452 in (8 bit Mode), because i don't want use CAN Support. Do I have to configure it anywhere?

Greetings,

rio

Edited by Rio
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...