i have completed a fairly large sketch on my arduino mega 2650, im using around 16 digital I/O's and 4 analogue I/O's my sketch is around 50kb.
im planning to move it all to a PIC microcontroller eliminating the need for the Arduino.
ive never used PIC microcontrollers and i was wondering if i would have to make alot of changes to my sketch to make it compatible with the PIC?
This is pretty much a dead end idea. The application would have to be ported and/or developed with a tool chain that supports the PIC chip you wished to use. Plus you would have to create all the arduino supplied functions and libraries that your present sketch uses. Lots of work.
retrolefty:
This is pretty much a dead end idea. The application would have to be ported and/or developed with a tool chain that supports the PIC chip you wished to use. Plus you would have to create all the arduino supplied functions and libraries that your present sketch uses. Lots of work.
would the ATMEGA1284 be a viable alternative for the 2650? im looking for a dip
I don't know of any open source (free) compilers for PICs, but there are compilers that might get you you enough parallels in their libraries that you won't have to recreate them. That of course depends on what functions you are presently using. I'm a user of the MikroElektronica C compiler for PICs. You can download their compiler and test drive it, maybe see if you think you can accomplish what you want without too much pain. The compiler is complete and fully functional, but is limited to 2K program sizes without a license. You should be able to see what functions are available to interchange or replace the Arduino ones. The compiler is not cheap, it's about $250, but it is well done IMO and well supported. There are certainly others out there, this is the one I know of and would recommend.
retrolefty:
This is pretty much a dead end idea. The application would have to be ported and/or developed with a tool chain that supports the PIC chip you wished to use. Plus you would have to create all the arduino supplied functions and libraries that your present sketch uses. Lots of work.
would the ATMEGA1284 be a viable alternative for the 2650? im looking for a dip
Yes a 1284 would work fine. You would of course have to install the necessary 1284 hardware folder/files to the arduino IDE to support the 1284 but that is something that someone here could help you with I'm sure.
The WIZC PIC compiler by Forest Developments in England is free unless you need advanced features, and the Pro version is only 50 GBP. It has an excellent on-screen simulator where you can add virtual hardware for testing - no real hardware necessary. The PIC is a totally different chip from the Atmega and you would need to start again as someone else said. I have recently (a few weeks) gone from PIC to Atmega because of the structure and facilities offered by Arduino. The Atmega looks like a chip with greater possibilities but I don't know enough yet to judge which is best - it depends on your requirements, as always.