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

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,263
Helped
4,741
Reputation
9,503
Reaction score
5,126
Trophy points
1,393
Activity points
154,109
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
 

luben111

Advanced Member level 1
Advanced Member level 1
Joined
Mar 2, 2002
Messages
489
Helped
111
Reputation
223
Reaction score
107
Trophy points
1,323
Location
UK
Activity points
3,921
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.
 

amirm2039

Newbie level 6
Newbie level 6
Joined
Sep 13, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
89
Thank you for taking this into consideration,

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

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,263
Helped
4,741
Reputation
9,503
Reaction score
5,126
Trophy points
1,393
Activity points
154,109
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
 

amirm2039

Newbie level 6
Newbie level 6
Joined
Sep 13, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
89
Thank you,
But, How can I matching the frequency for timers?
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,263
Helped
4,741
Reputation
9,503
Reaction score
5,126
Trophy points
1,393
Activity points
154,109
Hi,

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

Klaus
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top