Sign in

username:

password:



Not a member?

Search avrclub



Search tips

Subscribe to avrclub



avrclub by Keywords

AT90S2313 | AT90S8515 | ATMega | ATmega128 | ECL | FETS | IAR | Keyboard | LCD | STK50 | TMOS | UART

Ads

Discussion Groups

Discussion Groups | AVRclub | [AVR club] PIC to AVR

Atmel AVR Microcontroller discussion group.

[AVR club] PIC to AVR - Javier Chavez - Jul 10 8:08:15 2007

Hello All,

Sorry if this question has been asked before,
Is ther any program which can translate PIC ASM to AVR ASM?

Hopping you can help and thaks in advance,

Javier Chavez.



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )


Re: [AVR club] PIC to AVR - Zack Widup - Jul 10 8:18:49 2007


Not that I know of (not anything simple anyway). The basic architectures
are too different.

I have converted some assembler code I wrote for various PIC's to AVR ASM.
It was a long, tedious process.

Zack

On Tue, 10 Jul 2007, Javier Chavez wrote:

> Hello All,
>
> Sorry if this question has been asked before,
> Is ther any program which can translate PIC ASM to AVR ASM?
>
> Hopping you can help and thaks in advance,
>
> Javier Chavez.



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

[AVR club] Re: PIC to AVR - Ayla - Jul 12 9:28:31 2007

--- In a...@yahoogroups.com, "Javier Chavez"
wrote:
>
> Hello All,
>
> Sorry if this question has been asked before,
> Is ther any program which can translate PIC ASM to AVR ASM?
>
> Hopping you can help and thaks in advance,
>
> Javier Chavez.
>
Hi
I was looking for such a program or at least a table containing
equvalent codes of avr & pic ,but I couldn't find .so I began to do
this myself but soon I find out that it isn't right & my program
wasn't reliable . I recomand you to learn AVR & know the goals of
your pic program then write a new avr program
good luck


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] Re: PIC to AVR - Zack Widup - Jul 12 9:34:14 2007


Been there done that (or tried anyway).

As I mentioned before, the devices in general have architectures which are
too different to do it automatically. Doing it by hand usually takes some
time but if you really understand the features of the two devices you're
using and the assembly languages for both, it can be done.

Zack

On Thu, 12 Jul 2007, Ayla wrote:

> --- In a...@yahoogroups.com, "Javier Chavez"
> wrote:
>>
>> Hello All,
>>
>> Sorry if this question has been asked before,
>> Is ther any program which can translate PIC ASM to AVR ASM?
>>
>> Hopping you can help and thaks in advance,
>>
>> Javier Chavez.
>>
> Hi
> I was looking for such a program or at least a table containing
> equvalent codes of avr & pic ,but I couldn't find .so I began to do
> this myself but soon I find out that it isn't right & my program
> wasn't reliable . I recomand you to learn AVR & know the goals of
> your pic program then write a new avr program
> good luck



(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )

Re: [AVR club] Re: PIC to AVR - Javier Chavez - Jul 13 1:45:01 2007

Zack,

Thank you very much and Yes, that's what I'm doing right now. I mean trying
to undertand some features of PIC, like.

addwf 18,0
addwf 18,1

In these instructions the destination goes to w first and in the second to
register 18. (I hope so)

I asked this question because I found some PIC code which was made to decode
DTMF tones. This code was made for C662 PIC by David Hedley.

So I was trying to understand the Goertzel Algorithm by reading the PIC code
(hard way).
Now I found a new problem:

What would be the external signal conditioning so that an AVR can handle
DTMF codes? (maybe using the ADC).

or

Is it something that was already made by someone else? I mean using our AVR

Javier

2007/7/12, Zack Widup :
> Been there done that (or tried anyway).
>
> As I mentioned before, the devices in general have architectures which are
>
> too different to do it automatically. Doing it by hand usually takes some
> time but if you really understand the features of the two devices you're
> using and the assembly languages for both, it can be done.
>
> Zack
>
> On Thu, 12 Jul 2007, Ayla wrote:
>
> > --- In a...@yahoogroups.com , "Javier
> Chavez"
> > wrote:
> >>
> >> Hello All,
> >>
> >> Sorry if this question has been asked before,
> >> Is ther any program which can translate PIC ASM to AVR ASM?
> >>
> >> Hopping you can help and thaks in advance,
> >>
> >> Javier Chavez.
> >>
> >
> >
> > Hi
> > I was looking for such a program or at least a table containing
> > equvalent codes of avr & pic ,but I couldn't find .so I began to do
> > this myself but soon I find out that it isn't right & my program
> > wasn't reliable . I recomand you to learn AVR & know the goals of
> > your pic program then write a new avr program
> > good luck
> >
>

[Non-text portions of this message have been removed]


(You need to be a member of avrclub -- send a blank email to avrclub-subscribe@yahoogroups.com )