View previous topic :: View next topic |
Author |
Message |
sahu77
Joined: 08 Sep 2011 Posts: 202
|
AVR to pic conversion |
Posted: Tue Sep 13, 2011 10:50 am |
|
|
Anybody help me about AVR to pic conversion, link are as....
[url]http://extremeelectronics.co.in/avr-projects/avr-project-–-atmega8-based-multi-channel-ir-remote/[/url] _________________ sahu |
|
![](templates/subSilver/images/spacer.gif) |
temtronic
Joined: 01 Jul 2010 Posts: 9174 Location: Greensville,Ontario
|
|
Posted: Tue Sep 13, 2011 12:44 pm |
|
|
You've got at least two ways of approaching it.
One. Compile the AVR code, prove that it works, then reverse engineer the machine code (hex file). Not that hard, providing you know PIC assembler and have a couple of spare hours....
Two. Printout the AVR sources and then create the CCS C equivalent code. Again not that hard, probably easier than #1.
Three. Write an AVR C to CCS C 'cross-compiler'. More complicated than either 1 or 2 but if you have more than 2 or 3 AVR projects, a suitable option.
All options are based on the original AVR sources being CORRECT !!! |
|
![](templates/subSilver/images/spacer.gif) |
mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
|
Posted: Tue Sep 13, 2011 10:01 pm |
|
|
Something I have done in the past is to write a source translated, basicaly reads c source meant for one compiler, and spits out c source meant for another compiler.
Today what I do allot of is macros, I create macros that mimic the older c style/commands to help in porting
Just my 2 cents _________________ Michael Bradley
www.mculabs.com
Open Drivers and Projects |
|
![](templates/subSilver/images/spacer.gif) |
|