Implementing HCS12 to ColdFire

Started by boschow2003 February 7, 2008
Hello,

i was recently working with motorola microprocessor HCS12. Now i
decided to try a stronger microcontroller ColdFire and i dont wan't to
write the whole code all over again. So i am asking you how to
implement the existing code written for HCS12 to ColdFire
microcontroller ?

Thanks and best regards.
Hi,
This could be easy or difficult, depending how you developed the HCS
program.
Anyway, you must re-write the low level functions dealing with
configurations,
peripheral initialization and the interrupts.
When all these are done, you can add the rest of your program.
Take care of timing problems - in HCS12 the program runs in flash and is
debugged
in flash, while on ColdFire, depending on the specific processor, you
can have to develop
and debug the program first in external ram, which is usually slower
than flash (accessing
the external memory costs 5 machine cycles instead of 2 for flash or 1
for internal ram).
Regards,
Ioan.

boschow2003 wrote:
>
> Hello,
>
> i was recently working with motorola microprocessor HCS12. Now i
> decided to try a stronger microcontroller ColdFire and i dont wan't to
> write the whole code all over again. So i am asking you how to
> implement the existing code written for HCS12 to ColdFire
> microcontroller ?
>
> Thanks and best regards.
>
>