1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

ATMega 8 to microchip

Discussion in 'AVR' started by Ricardoco, Nov 6, 2005.

  1. Ricardoco

    Ricardoco New Member

    Joined:
    Nov 16, 2004
    Messages:
    116
    Likes:
    0
    Location:
    Kent, United Kingdom
    Hi ive been given some source for an atmega 8 and i would like to know if there is an easy way to convert the code for use on the microchip range of products, Any ideas?
     
  2. Joel Rainville

    Joel Rainville New Member

    Joined:
    Jul 17, 2005
    Messages:
    730
    Likes:
    0
    Location:
    Montréal, Québec, Canada
    Just a guess : converting ASM code would be quite a challenge, while C (or even BASIC?) would easily port... using your brain ;) There might be tools to automate the process, but would they be reliable?...
     
  3. Oznog

    Oznog Active Member

    Joined:
    Apr 21, 2004
    Messages:
    2,879
    Likes:
    11
    Location:
    Austin, Tx
    Given that the hardware resources are different, if the code uses hardware resources the whole solution may not be applicable even if it were changed to equivalent instructions. For example if the code needs 2 timers with arbitrary periods, PIC can only write an arbitrary period for TMR2, so you'd have to rethink the solution.
     

Share This Page