Questions tagged [atmega]

ATmega is a family in the AVR series of Atmel microcontrollers. It is the main microcontroller of the Arduino prototyping platform. Please specify the specific part number in your question.

The ATmegas are 8-bit RISC microcontrollers using a Harvard architecture. They have 4 to 256 kB program memory. Like all Atmel AVR microcontrollers, they are supported by various (open) toolchains. Most s are based on an chip.

They are the bigger brother of the microcontrollers, and have more memory and features.

Further reading:

related tags:

1286 questions
10
votes
4 answers

Using a 16 MHz crystal on a ATMega328p

How would I need to set my fuse bits on a ATMega328p to use a 16MHz crystal? I tried this on my own and killed the last atmega I had. I'd like some advice this time. The crystal I am using is this one I am assuming this is a "Full Swing Crystal…
JonDrnek
  • 263
  • 1
  • 3
  • 7
9
votes
2 answers

Differences between atmega32u2 and atmega32u4?

What are most important differences between ATMega32u2 and ATMega32u4?
akavel
  • 427
  • 1
  • 5
  • 12
7
votes
2 answers

How to get the PWM frequency and duration of each pulse?

I have an ATmega8 and I started working on servo motor HS-645MG. What frequency works with the HS-645MG? How do I get the frequency of PWM and the duration/length of each pulse? Is there a calculation?
Dana Sorani
  • 95
  • 1
  • 1
  • 7
6
votes
4 answers

Can I do assembly programming using the kit I bought or do I have to get another setup?

I started out just want to play with my granddaughter when I bought the kit, but now that I am reading the datasheet of ATmega328, I want to get deeper and I want to try some assembly coding just to play around. I have no idea whether this kit can…
Alan0354
  • 77
  • 5
5
votes
2 answers

ATMega328P - minimal programming circuit?

I am used to using an AVR ISP programmer to update the firmware on my project. My project is open hardware, and I'd like to offer pre-programmed controllers for sale to save others having to buy a programmer (if they're that stingy). To make life…
nsayer
  • 1,573
  • 1
  • 18
  • 35
5
votes
3 answers

How do magnets affect the ATMega328?

I'm building a small circuit with an arduino bootloaded ATMega328 chip. The project will be housed in a small box, and is intended to be stuck to the side of a fridge using a magnet. Everything in my brain tells me that magnets and chips do not mix…
fearoffours
  • 548
  • 2
  • 7
  • 13
3
votes
5 answers

ATMEGA168 Pin Mappings

Where can I find pin mappings for the ATMEGA168?
littlebirdceo
  • 4,697
  • 8
  • 43
  • 61
3
votes
2 answers

Is there any cons with programming a atmega2560 every time the device starts?

I will have a atmega2560 acting as a DMX encoder/decoder connected to a Onion omega2 (a small Linux computer). Is there any cons except longer startup time with programming the atmega every time the device starts up? This would make updating the…
Pownyan
  • 317
  • 2
  • 8
2
votes
4 answers

How are local varibales stored on Atmega

When the ATmega starts there is only the Flash Program. Global Variables are stored at startup into the RAM and have a fix address to be accessible? How is this process called? It must be a really important part! Then the program runs. When a local…
jento
  • 29
  • 2
2
votes
1 answer

Weird bit stretching on ATmega2560 uart

When I transmit serial data on an ATmega2560 I sometimes get bit stretching, corrupting the characters: I send character 0x55 twice at a baud rate of 115200; this is the yellow trace in the image. The red trace signals the start and end of the…
NZD
  • 345
  • 1
  • 9
2
votes
1 answer

ATMEGA32U4-AURCT vs ATMEGA32U4-AUR vs ATMEGA32U4-AU?

What are the differences between the -AURCT vs -AUR versions of Atmega32u4 MCU? I can't find any info on AURCT from the datasheet
Adam Lee
  • 983
  • 1
  • 14
  • 31
2
votes
1 answer

Reset as output... So how to unlock Atmega8?

I by accident set port C as output, and now I can't load new program to cpu, but processor is detected (I using mkAVR Calculator(programming process is "done" but in verification process I get error)). So how I can reverse my mistake ?
Waxy
  • 23
  • 3
2
votes
4 answers

Why can't the atmega328p accept 5 and 3.3v signals at the same time?

The same chip can be run at 5v or 3.3v so it's tolerant to 5v so why when I run it at 3.3v can't I send in a 5v signal on an input pin? Curious on what's in the chip that makes this a bad idea.
Ryan Detzel
  • 807
  • 9
  • 21
2
votes
1 answer

How does this construct drive the RESET pin low?

I've seen this in a bunch of ATMega / Arduino reference designs: The RESET pin is pulled up high with R10, pulled low with a switch (S1), but then tied to the DTR line from a UART breakout via C27 - a small capacitor. This last bit is how the…
kolosy
  • 2,308
  • 6
  • 29
  • 52
1
vote
2 answers

How can we measure sinusoidal signals in atmega8 ?

How is the signal frequency measured in ATmega? In particular, how is the signal frequency (sine) measured in ATmega8?
Dana Sorani
  • 95
  • 1
  • 1
  • 7
1
2 3 4