CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC24 remappable pins and more

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
soonc



Joined: 03 Dec 2013
Posts: 215

View user's profile Send private message

PIC24 remappable pins and more
PostPosted: Wed May 13, 2015 7:05 am     Reply with quote

I'm looking for a PIC chip that has at least 3 hardware UARTs.
PIC24FJ192GA106 has 4 so that will do the job.

Migrating 8 bit code (PIC18F67K22) to work on PIC24.
The 67K22 has ~128K code space do I need to double that size when moving to the PIC24 ?

Any tips and tricks about using remappable pins ?

Thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Wed May 13, 2015 8:05 am     Reply with quote

Forget code sizes in bytes. _Always_ (repeat always), look at the number of instruction words. The code for basic things are the same size (In instructions - single instruction word for doing the same type of job). However some things shrink relatively (hardware div, automatic block repeats, and larger maths types). Some things though are bulkier (much larger interrupt table to initialise etc..).
Also try to keep data structures word aligned if possible.

The key with the re-mappable pins, is to always sequence as:
1) Map pins.
2) Setup peripheral _using peripheral name not pin numbers_.

Done like this, it seems to work reliably for just about everything.
soonc



Joined: 03 Dec 2013
Posts: 215

View user's profile Send private message

Thanks
PostPosted: Wed May 13, 2015 8:25 am     Reply with quote

Thanks for the advice.
Much appreciated.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group