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
Posted: Wed May 13, 2015 8:05 am
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.
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