[sdiy] help...no make8() function in Arduino...converting PIC to AVR

Olivier Gillet ol.gillet at gmail.com
Wed Apr 11 20:31:10 CEST 2012


> this means since I am working with an 16mhz AVR, everything will run at half speed!!

Not true. AVR and PIC are two entirely different architectures. Don't
jump to any conclusion before:
1/ knowing how much CPU cycle each instruction takes.
2/ looking at the generated code.

Some PICs do not have a hardware multiplier so a multiplication takes
a few dozen cycles. On an AVR, an 8-bit x 8-bit multiplication takes 2
cycles. Instruction set apart, PICs and AVR use a very different
philosophy when it comes to handling registers and memory access.
Depending on what your code does and how smart the compiler is, one
can be much more compact than the other.



More information about the Synth-diy mailing list