Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top