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.

AVR and ATmega both in the Atmel

Status
Not open for further replies.

PA3040

Advanced Member level 3
Joined
Aug 1, 2011
Messages
883
Helped
43
Reputation
88
Reaction score
43
Trophy points
1,308
Activity points
6,936
Dear All,

Please guide me what is the different between AVR and ATmega both in the Atmel Domain
what is the most fames Atmel MCU number in the above, like 16f877a in microchips. it has lot of web tutorials
Thanks in advance
 

AT Mega is sub family of AVR microcontroller.

The Most frequently used micros are AT Mega8, ATmega16, AT Mega32, AT Mega128, AT Tiny2313, etc.
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear nandhu015
Thanks for reply
Can you please explain what is the different between this two ( AVR and ATmega)

Mega8 and Mega16 ....ect
what is the 8.16,32 represented
Thanks in advance
 

AVR is a general term which refers to the Atmel RISC Architecture employed in many of Atmel's 8-bit and 32-bit microcontrollers, these include the XMega, Mega, Tiny and AVR32 UC3.

The following details the differences between each series:

Atmel AVR 8- and 32-bit Microcontrollers Devices

It should also be mentioned Atmel manufactures several microcontrollers which are NOT classified as AVRs, including several ARMs and 8051 variants.


Atmel has always denied AVR is an acronym or has any hidden meaning, they claim it was chosen at random.

However many theorize AVR is an acronym which represents Atmel Virtual RISC, others suggest the term represent the first names of the microcontroller designers, Alf Egil Bogen and Vegard Wollan, or otherwise known as the Alf Vegard RISC.

Who really knows? Only the people at Atmel and they are sticking to their story.


The number which follows the ATMEGA or Mega is the model number, in the earlier versions this did represent the amount of FLASH storage in KB.

For example an ATMEGA8 has 8KB of FLASH, however so does the newer ATMEGA88.

The ATMEGA32 has 32KB of FLASH, however so does the newer ATMEGA328, ATMEGA3250, etc.

BigDog
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Atmel is company/manufacturer, and ATMega is one serie product. Also there is XMega. uC are separated in groups by 8-bit 16-bit 24-bit and 32-bit. You can see parametric table at Atmel site and Microchip.
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear Bigdog
Thank you very much for detailed reply
I have anther little think to verify with this post
In Arduino, are they design only hardware and open source IDE, base on Atmel MCU's or are they manufactured their own micro controllers?
Thank in advance
 

Dear Alex
Thank for reply

Can you recommend for me, what MCU I should start from Atmel. better it's features compatible with PIC 16f877a (40pin)
what is the merger different in block diagram and architecture pic16f877a with you recommended MCU in Atmel
Thanks
your reply is highly appreciated
 

One of the commonly used AVRs is ATMEGA8
Code:
Features
• High-performance, Low-power Atmel®AVR® 8-bit Microcontroller
• Advanced RISC Architecture
– 130 Powerful Instructions – Most Single-clock Cycle Execution
– 32 x 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16MIPS Throughput at 16MHz
– On-chip 2-cycle Multiplier

High Endurance Non-volatile Memory segments
– 8KBytes of In-System Self-programmable Flash program memory
– 512Bytes EEPROM
– 1KByte Internal SRAM
– Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
– Data retention: 20 years at 85°C/100 years at 25°C(1)
– Optional Boot Code Section with Independent Lock Bits
• In-System Programming by On-chip Boot Program
• True Read-While-Write Operation
– Programming Lock for Software Security

Peripheral Features
– Two 8-bit Timer/Counters with Separate Prescaler, one Compare Mode
– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture Mode
– Real Time Counter with Separate Oscillator
– Three PWM Channels
– 6-channel ADC in PDIP package
• Six Channels 10-bit Accuracy
– Byte-oriented Two-wire Serial Interface
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator


I can't tell you much about the PIC differences since I have never used PIC.

There are many tutorials in the AVRfreaks tutorial section
View Forum - AVR Tutorials :: AVR Freaks

Start from the basics
View topic - [TUT] [HARD] AVR Programming Methods :: AVR Freaks
View topic - [TUT] [C] Bit manipulation (AKA "Programming 101") :: AVR Freaks
View topic - [TUT] [C] Basic I/O Operations in AVR C :: AVR Freaks
View topic - [TUT] [C] Newbie's Guide to AVR Timers :: AVR Freaks
View topic - [TUT] Newbie's Guide to AVR Interrupts :: AVR Freaks

Alex
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Dear all
Thank you very much for reply. it is really helpful
First I need to prepare my own Programmer to program ATMega8 or 32
In PIC it is easy to program using ICSP
but in Atmel I have seen, it used serial programming method using MAX232 IC
Can I have good schismatic diagram to design a programmer myself

Thanks in Advance
 

The most distinct difference between AVR core microcontrollers (like atmega8, atmega32 etc) and pic16f877 (actually - all the pic16f family) is processing power. AVR reach 20 MIPS (millions instructions per second) at 20MHz clock, whereas PIC16Fs only reach 5MIPS at 20MHz due to 4clocks/instruction architecture.

This is a major drawback if you want to do any calculation intensive or time critical application. In such case you simply need to use something from higher families like PIC18s (which generally **** in my opinion) or PIC24 and dsPIC. I generally think that AVR is better in terms of 8-bit microcontrollers because of processing power, and MUCH lower number of silicon bugs. On the other hand AVRs are very easily brickable when messing with oscillator options whereas all PIC micros are brick-proof (at least not with oscillator settings)
 
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Yes, I agree to poorchava, also I will add that Microchip is not that "Micro-cheap" uC of that company have heavyer price, what certainly not good for home user or low budget projects.
 

I started programming with PIC microcontroller. After, I learn the AVR architeture, and I think is much better than PIC. With an Atmega32 you have 2K of ram memory, 32k flash, large instruction set, hardware multiplier, and can run at 16MIPS. The PIC16F877 have 384 bytes of ram, 8K words (14 bit word), 35 instructions, no hardware multiplier and still more expensive than Atmega32.

The only thing that PIC is better than AVR is the burning process. The AVR ISP can be disable, and you will need an HVPP programmer to "unlock" the microcontroller. The PIC use the High voltage serial programming, and you will not need parellel interface.
 

I consider the video totally useless, he is clearly biased towards PIC, he should name it why to prefer PIC.
"PIC is best because microchip makes more profit that armel" , yea right, that makes total sense from the engineer side of view when he selects a microcontroler for a project.
 

I'm not cheering for noone nor for AVR nor for PIC, this is like when we was a little kids, what car is the best. I just look more aspects of things, there is no ideal solution, but If there are more appropriate things then use that uC.

Sometimes low operating voltage and low power consuption can be rulling factor why to choose one or other, or integrated modules (usb, RFID, RF,.....)


I repeat I dont cheering for noone,.... see this video just like to fill time gap in free time :

On the left, a pic32 driving an LCD using the SSD1289 lCD controller chip. On the right, an AVR driving the same display with pretty much the same C source code.

https://www.youtube.com/watch?v=jNYmFCug22g



https://www.electricstuff.co.uk/picvsavr.html
 
Last edited:

Dear All
Thank you so much for reply
Dear Alex, can I use USBasp for debugging
I would like to design my own USB programmer for AVR,likewise I did it for PIC USB programmer using PIC18f2550 (DIP)
Can you please have a such schismatic diagram for AVR
anyway I started to design a serial programmer to get start for AVR
Dear all can I have any solution
Thanks in advance
 

Serial programmer for AVR :

73811d1336401842-avr_programmer_schematic.jpg


for ATmega16 and ATMega32 :

avr_programmer_serial.png



USBasp:

https://www.fischl.de/usbasp/

usbasp_kit.jpg
 

Attachments

  • avr_programmer_schematic.jpg
    avr_programmer_schematic.jpg
    14.9 KB · Views: 336
Last edited:
  • Like
Reactions: PA3040

    PA3040

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top