Replacement PIC With AVR

Status
Not open for further replies.

amirm2039

Newbie level 6
Joined
Sep 13, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
89
Hi Everyone,
Which AVR uC can be replaced instead PIC18F252?
Thanks
 

Hi,

In many cases you may develop a circuit to use either a PIC or an AVR.
Both usually will work.

But I don't think you find a pin compatible one, I don't think you find a full functionally compatible one and you won't find a code compatible one.

Klaus
 

You can use XMega parts with big success. PIC controllers divide the clock on 4 to execute instructions (so 20 MHz clock results in 5 MIPS performance) where AVR parts use directly the clock - 20 MHZ results in 20 MIPS. So even smaller AVR controllers like ATMEGA88 which run on 20 MHz can outperform the PIC18F252. AVR timers are more complex than PIC ones, you have plenty of RAM - I think you'll not sorry about moving to AVR.
 
Thank you for taking this into consideration,

In fact, I want to use this for Serial Interface(RS232).
 

Hi,

In fact, I want to use this for Serial Interface(RS232).

If this is your only specification, then almost any microcontroller has built in UART.
But at least you should additionally specify expected baud rate.

Just look at selection guides.

Klaus
 

Thank you,
But, How can I matching the frequency for timers?
 

Hi,

they won´t be code compatible. So you have to read the datasheet.

Klaus
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…