Ttelmah
Joined: 11 Mar 2010 Posts: 19381
|
|
Posted: Tue Feb 25, 2014 1:42 am |
|
|
Depends how good you are as a programmer....
90% of standard C, will work exactly the same, once you configure certain things (particularly variable sizes), and can be translated almost line for line. However there are significant hardware differences with the peripherals, which will require some re-design.
So it depends how experienced you are with both chips, what peripherals you use, and what the code is actually trying to do. Also depends 'which' Arduino. The original AVR, or later chips. Trying to do some of the maths that can be done on an Arduino Due, with a PIC, will show problems with speed. Code for an Arduino Uno though, is talking a very similar performance, to many PIC's. |
|