ATMega is a family in the AVR series of Atmel microcontrollers. This is the main microcontroller of the Arduino prototyping platform. Please Specify the specific part number in your question.

learn more… | top users | synonyms (3)

0
votes
0answers
38 views

Populating a list of connected ATMEGAs

I'm building some switchgear. Currently building a GUI to control an unknown number of PCBs based around the infamous ATMEGA328P, via a FT232R to the UART of the MCU. The current way of populating a ...
0
votes
1answer
76 views

How can I fix Atmel Studio 7 install which is stuck on “initializing environment”? [on hold]

Atmel Studio 7 Install Is Stuck I'm attempting to install Atmel Studio 7. I've tried both the online install and the download then install option and the installer becomes stuck (shown in the image)....
0
votes
0answers
43 views

Timer causes UART problem

I have a problem, found on both ATMEGA1284P and ATMEGA2560. I have set a 16-bit timer in CTC (tried both Timer1 and Timer5) to give an interrupt every 1ms so I can increment a 32-bit volatile time ...
-1
votes
0answers
36 views

AVR Studio 7 with WinAVR help required

From last few years i am using WinAVR with VMLab Simulation software, everything was OK with them, as have successfully created different small, medium and large scale projects. I feel difficulty in ...
0
votes
0answers
26 views

Problem when programming Atmel ATmega16U4 using USB

I'm having a problem when I'm programming the ATmega16U4 through USB port. I designed the PCB, but I will assume the hardware connections are good. It is because when I connect the chip to the ...
4
votes
3answers
313 views

ATmega - Why is the prescaler factory defaulted to 8?

Why do ATmega (e.g. 328P or 644P) have CKDIV8 (or CLKPS = 0011) factory programmed along with a default internal 8 MHz ...
1
vote
1answer
52 views

Atmega16 flash memory address space

The atmega16 data sheet says that it has 16KB on-chip flash program memory, but the memory map for flash memory ranges from 0x0000 to 0x1FFF(8192, i.e, 8KB) only, which gives a range of only 8KB flash ...
1
vote
2answers
171 views

How to make a circuit that generates 50mA current at +1.8v within 10ns rise time?

I am using Atmega328 MCU to control a SRAM IC and it is required to power up the IC using a source that can deliver 50mA current at +1.8v within 10ns rise time without any voltage drop. unfortunately ...
0
votes
1answer
38 views

Problem in AC fan speed control(using ZCD and Atmega8A) when running on Inverter

I recently built an AC fan speed control circuit using Atmega8a,Triac,2 nos Optocoupler and ZCD method.I am attaching the necessary circuit regarding the triac firing and ZCD.The Atmega is configured ...
0
votes
1answer
38 views

ATmega328 external crystal capacitor requirements

I am reading this guide and it states that, in order to use an external 16 MHz crystal for an ATmega328, I need two 22 pF capacitors. I found this bundle of two 20 pF capacitors and the crystal (sold ...
-3
votes
3answers
53 views

switching a 12v/2.5W pump with a atmega (relay)

I've got a "Seliger 280" water pump here with the following data: 12V, 2,5W the supplied power supply can do 12V/1,2A. But is also used to drive a 10W light bulb by default. pump current: \$ P =...
-3
votes
2answers
79 views

ATMega on high voltage application [closed]

Yesterday I had an argue with an electrical engineer. I am a beginner software engineer. He say that a logical circuit( processors, microcontrollers) should never be trusted in risky applications. ...
0
votes
1answer
42 views

Atmega32 PWM on all four PWM pins

I am trying to control LEDs brightness using PWM on the Atmega32. I have one LED connected to each of the 4 PWM pins (OC0, OC1A, OC1B, and OC2). Using the code below, all of the LEDs are functioning ...
-1
votes
0answers
21 views

Detect shorts in wire bundle with ATmega8515

I'm using AVR ATmega8515. My IDE is Eclipse. It's similiar to Remember the iteration when a condition was met but I want to test multiple ports in negative logic at once. I'm trying to make short ...
1
vote
1answer
46 views

Atmega168 and ENC28j60 - Unable to communicate

I would like to make a web server from an AVR uC. I use Atmega168 with the ENC28J60 ethernet module. I have connected the module with my Atmega using SPI. I have a problem, because the communication ...
0
votes
1answer
54 views

How to interface Si8902 with ATmega128rfa1?

The ATtmega128rfa1 works as master and Si8902 works as slave that is okay. But when a request is given Si8902 takes 8us to reply back with the ADC data. How can master wait for 8 us. How to ...
0
votes
1answer
78 views

Atmega328p: why button input is read as 0 when pressed?

I'd like to turn on the board's LED (PB5) when I press its button (PB7). ...
-1
votes
1answer
83 views

AVR ATmega32 UART Not Reciving

I'm trying simple UART transaction functions for ATmega32. I can send the bytes but not receiving anything. I am using polled UART receive. ...
0
votes
0answers
34 views

Reading text from a USB drive connected to an ATMega1284

I am embarking on a project to create a very crude "crypto module" to learn some basics about how a hardware encryption module might be implemented. I understand right off the bat that on the whole ...
0
votes
1answer
39 views

ATMega328: How to select alternate function on a pin

This might be an easy question, but I couldn't find an answer to it in the Alternate Port Functions section of the ATMega328 datasheet (page 80) Take pin PB3 as an example. As well as having a use as ...
-4
votes
1answer
66 views

Relay control using Ardiuno Mega [closed]

How many relays can I drive using Ardiuno MEGA board without overloading the microcontroller?
1
vote
2answers
79 views

resonator or Crystal Oscillator for atmega2560

I've received the PCB that I have designed. This PCB has an atmega2560 on it. I have designed it to use a Crystal Oscillator such as this figure shows : Is this designed supposed to work on an ...
0
votes
0answers
37 views
0
votes
1answer
86 views

programming atmega2560 by ISP on self-made PCB

For one of my project, I need an atmega2560. So I made a PCB with the atmega2560 and ISP headers. But I can't communicate with the atmega2560 There is also an external 16000Mhz oscillator. Here is ...
0
votes
2answers
63 views

atmega328p GPIO with 3.3V regulator reads 2.5V at pin when High

I am driving the enable on a boost regulator and the boost is not turning on. When I checked the voltage on the enable, it was 2.5V. The boost worked on an identical set of boards I tried before this (...
-1
votes
2answers
67 views

Controlling brushless gimbal motor (BGM2804)

I'm using a standard board for control this type of motor (SimpleBGC), this board uses an atmeg328p e some brushless drivers. I'm writing a simple code for turn left/right with some velocity, but i'm ...
1
vote
3answers
128 views

Component with multiple VCC and GND pins. Should I connect all of them? [duplicate]

I want to make a really small arduino using the Atmega 328p and I noticed that it has 3 GND pins and 2 VCC pins. I measured the pins and it seems that all GNDs are connected and all VCCs are ...
0
votes
1answer
26 views

ATmega32A _delay_ms after IO calls

I am loading the following code into ATmega32A PU 1535 to flash the LED on pin 40, PORTA 0: ...
1
vote
2answers
64 views

Bricked atmega32 with fuse bits

I accidentally selected the wrong clock in atmel studio (8-12MHz RC Oscillator instead of 8MHz crystal) and I'm trying to figure out how I can un-brick it now. I have an arduino on hand and a friend ...
1
vote
1answer
113 views

UART in NON INTERRUPT or INTERRUPT mode while using VUSB

I'm working UART data transfer from one ATmega8 to other while the receiver runs VUSB acting as HID Mouse to the PC. UART though init with 9600 , later is set to max speed - > UBRR = 0; Problems : ...
0
votes
0answers
38 views

Bike speedometer - a few questions about schematics

I'm a computer programmer, playing with electronics is my hobby so it's not like I'm very good at it. Some time ago I planned to make a speedometer for a bike but it eventually grew into an on-board ...
0
votes
4answers
112 views

AVR UART synchronization problem

I'm learning embedded programming (I'm not an Electrical Engineer). Sorry if this is not the right place or I'm asking this question incorrectly, but I had a very tough time trying to figure out a ...
0
votes
0answers
35 views

Facing Problem with ATMega 32A main circuit

Hello I am working with Micro controller ATMega 32A to show some value in 7 segment common anode display. The code is ok (checked with Simulation ). But in hardware implementation it's not working ...
1
vote
2answers
63 views

avr-gcc float macro error

When I try to compile some code with macro definition at the following definition # define _SPEED_FACTOR0 0.9 //or any float value I get the error floating ...
0
votes
2answers
41 views

clock frequency confusion

I am using an atmega16 micro controller with a 12MHz external crystal oscillator. But I came to know that the internal clock frequency is 1MHz I need to calculate UBRR value for serial communication. ...
1
vote
1answer
69 views

ATmega48PA: can not run PWM on OC0A and OC2A pins

I have some troubles trying to run Fast PWM on OC0A and OC2A pins. The code is the following: ...
0
votes
1answer
56 views

Atmega8 cbi/sbi Timing Issue

I seem to be having a weird issue regarding cbi/sbi instructions on Atmega8-16AU. I have it connected to an external 16Mhz crystal. I am able to verify that it is running at 16Mhz by using ...
0
votes
1answer
48 views

USART between Atmega16 and Beaglebone black

I'm working on a project which involves me to send data from AVR atmega16 microcontroller to a beaglebone black. I had written a code for the atmega USART but when connected, the beaglebone black ...
1
vote
3answers
67 views

Updating Multiple Ports on 8bit AVR in Single Cycle

On the 8bit Atmel AVR MCUS (specifically mega and xmega series), is it possible to simultaneously modify multiple ports in a single instruction cycle? For example, I have a 512kB RAM chip which ...
0
votes
2answers
71 views

Getting multiple inputs in Atmega32

I have to take 10 Push Buttons's inputs in my circuit with microcontroller being Atmega32. How can I take multiple push button input using 1 I/O Pin in the microcontroller. I came across CD4017 IC but ...
-1
votes
1answer
96 views

ATMega8 get too hot when connect AVCC pin to VCC!

My ATMega8 gets too hot when I connect the AVCC pin to VCC, either I use a filter or not (I do use ADC). Why?? Anyone got the same proplem? I use a 7905 regulator to create 5V for the MCU, and it also ...
4
votes
1answer
163 views

Push-pull switch mode power supply using an attiny84

simulate this circuit – Schematic created using CircuitLab I'm trying to build a "push-pull" switch mode power supply. I'm not entirely sure if that is the right term, but it consists of ...
0
votes
2answers
89 views

Detecting interrupt on Atmega8 from zero crossing detector circuit

I have a zero crossing detector circuit, whose output I am providing to my Atmega8 as an interrupt, but unfortunately its not working. If I use DC supply 5V (logic 1) as an interrupt, it works. Where ...
0
votes
1answer
90 views

How to connect multiple AT28C256/AT93C256/AT24C256/24LC512 EEPROMS to have more space

I want to have more memory say 1 Mega Byte, But I don't know how to connect multiple EEPROMS either in series or parallel I would like to use either AT28.... or AT93.... or AT24.... series Also ...
1
vote
0answers
31 views

How to increase the boot timeout to send commands to flash hex in a AVR Atmega2560 controller?

I am working with the Peter Fleury boot loader STK500v2. My idea to implement is boot loading via a bluetooth module at UART1. Now I have modified the existing code to make boot loading possible via a ...
3
votes
1answer
80 views

AVR external interrupt triggering by the falling edge: for how long should I keep signal low to guarantee triggering?

The question header appeared to bee too long. I'm sorry for that. So I have a schematic generating a short LOW on INT0 pin of ATmega48PA. From the simulation I figured out that the LOW level will be ...
0
votes
1answer
188 views

What is needed to store readable/writable data to flash/eeprom [closed]

I am wanting to add some readable/writeable memory to my ATmega8/attiny project where I can store data, recall the stored data, then overwrite the stored data. The stored data must be able to be ...
0
votes
3answers
147 views

Increase voltage from 5 to 12V to deactivate a display

I'm developing a timer based on this project: Digital Stop Watch with ATmega8 by Avinash Gupta (I cant put the link, because my reputation is too low) Original schematic: At first, I made the same ...
-5
votes
1answer
59 views

How to connect Micro Controller to an AC device? [closed]

Recently, I'm working on a project but there's an obstacle. My question is: How can I control an AC device for example Valve with AtMega8. The valve works with 220 AC voltage. what kinda components ...
3
votes
2answers
93 views

Atmega8 - Max output frequency seems to be devide by 4

I'm a little bit confuse, and hope that someone here can point me out what I'm missing... I'm using an Atmega8-16PU, Flashed the fuse with : ...