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)

-1
votes
2answers
59 views

Can anyone identify the following signal?

Im currently working on trying to reverse engineer a USB puzzle board I was given. (its a ATMega168 based device with a standard FTDI USB to UART chip) and all the information you are given is you may ...
1
vote
1answer
25 views

AVR ATmega: can I trigger external interrupt by setting corresponding INTF flag bit?

I'm writing a C program for ATmega64A which has a INT0 ISR. This ISR should be executed in case of INT0 falling edge OR if the TIMER3 goes overflow. To avoid doubling the code I'd like to trigger ...
1
vote
1answer
41 views

atmega32u4 configure counter in CTC mode

as pointed out in thread: atmega32u4 use Timer as souce for a counter I tried to use the generated clock of timer 4 as input for a counter1 and counter1 should fire the compare match event after 42 ...
-1
votes
1answer
88 views

Converted breadboard to PCB will not work despite being exactly the same

Hi guys I had a breadboard design set up using an ATMEGA328P-PU and ESP8266-01 and a PIR sensor. I replicated this circuit exactly and it will not work. First of all I started a new PCB circuit and ...
-1
votes
0answers
19 views

Atmega8, 16 burn without programmer? [closed]

Is it possible that I can burn my code on atmega8, 16 development board not having programmer in any possible way. Please help
0
votes
1answer
19 views

atmega32u4 generate clock using timer4

I have a atmega32u4 with 8Mhz and try to generate a clock signal with 1,2 or 4 MHz using timer 4 and output it on PD6 (!OC4D) For timer 1 and on PB5 (OC1A) I used CTC mode: ...
0
votes
0answers
18 views

Atmega16A Fuse bits correction

I programmed my Atmega16A fuse bits with HIGH byte = 11000001(C1) and LOW byte = 11101111(EF). But my micro-controller don't working now. What is the problem with this, please anyone can give me some ...
0
votes
0answers
6 views

target doesn't answer-1 ( atmega8) via usbasp

I connected newly bought atmega 8 to pc via usbasp and sinaprog hex downloader. I flash programmed it for several times without changing any fuses. But was too slow ( like blinking led) . so i shifted ...
0
votes
0answers
45 views

Moving ATMEGA to 3.3V [migrated]

I currently have a barebone arduino built from just an Atmega 328P and a 16Mhz external crystal. I planning to move this system down to 3-3.6V but I have read that on low voltage I have to use 8Mhz ...
1
vote
2answers
42 views

TWI/I2C Protocol with HMC5883L Magnetometer with ATMEGA256RFR2 XPLAINED PRO (megaavr)

Im trying to read Data Output Registers of X,Y,Z So far I've been able to: ...
0
votes
1answer
34 views

How to properly set HIGH/LOW PORTC3 on ATmega32A?

This simple program for ATmega32A is expected to work in this way: Set PORTC 0,1,2,3 as Output pins Set PORTC 4, 5, 6, 7 as Input pins with pull ups Turn on/off output pins 0, 1, 3: 3a. If input pin ...
1
vote
1answer
39 views

Designing a Bluetooth Keypad/Gamepad with MCU/SOC. (32 GPIO, 14/chord)

I have a Blackberry Keypad, and a custom Gamepad. I am trying to make them into bluetooth HID(s). They will be part of a single physical unit/board. I need help to get those inputs into a bluetooth ...
0
votes
2answers
45 views

Atmega128 ISP programming, unable to read device ID

I am trying to program a Atmega128. ISP programming First I used AVR dragon, I can read the target voltage, but when I go to read the device signature, warning comes Unable to enter programming ...
1
vote
2answers
45 views

ATMega32u4 output power to input without external resistor?

I am new to electronics and have a SparkFun Pro Micro clone with an ATMEGA microcontroller. I wanted to know if I could set one pin to be an output that sends power to another pin that I have set as ...
0
votes
0answers
41 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
346 views

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

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
49 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
40 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
33 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
328 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
54 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
172 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
43 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
45 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
56 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
49 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
vote
1answer
47 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
60 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
82 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
85 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
43 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
71 views

Relay control using Ardiuno Mega [closed]

How many relays can I drive using Ardiuno MEGA board without overloading the microcontroller?
1
vote
2answers
92 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
40 views
0
votes
1answer
98 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
64 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
92 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
134 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
27 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
116 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
43 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
119 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
65 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
47 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
74 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
57 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 ...