CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

AVR to pic conversion

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sahu77



Joined: 08 Sep 2011
Posts: 202

View user's profile Send private message

AVR to pic conversion
PostPosted: Tue Sep 13, 2011 10:50 am     Reply with quote

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
temtronic



Joined: 01 Jul 2010
Posts: 9240
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Sep 13, 2011 12:44 pm     Reply with quote

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 !!!
mbradley



Joined: 11 Jul 2009
Posts: 118
Location: California, USA

View user's profile Send private message Visit poster's website

PostPosted: Tue Sep 13, 2011 10:01 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group