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

USBasp: Why can I program ATtiny13A but not Atmega8A?

I am using USBasp V 2.0 LC Technology with slow SCK jumper connected. The firmware is not updated. I don’t know if I need to update the firmware. I have successfully programmed ATtiny13A, though ...
0
votes
1answer
18 views

How to check the source of reset in ATMEGA644p

I am trying to find the source of reset for ATMEGA644p, but I couldn't find the way to do it! MCUCSR gives error in atmel studio as not declared and the datasheet also doesn't have it.
2
votes
1answer
50 views

Has anyone programmed ATmega8A using USBasp?

I have failed to program ATmega8A using USBasp. I am sure that the wiring is ok. I have programmed an ATtiny13A several times with the same USBasp. However, no luck with the ATmega8A. This is the ...
1
vote
1answer
36 views

Understand Atmega168P Datasheet

I am in the process of reading through the above mentioned doc from here. In page-21, second paragraph in section 8.5 I/O Memory, line 6 is given as below: ...
3
votes
1answer
454 views

Understanding this statement in ATmega328P's datasheet

While reading ATmega328P's datasheet, I came across the following statement. The Port X output buffers have symmetrical drive characteristics with both high sink and source capability. What does ...
0
votes
0answers
60 views

One-shot sound button/trigger for Arduino Sound Player

I've succeeded in making a simple Arduino ATMega328 sound player on my breadboard following this guide. . . http://highlowtech.org/?p=1963 http://playground.arduino.cc/Code/PCMAudio But, here's my ...
3
votes
3answers
156 views

Why Atmega328P has no PortA

This is a general question regarding Atmega328P. While I was reading the datasheet of Atmega328P, I see that it has Ports B, C, and D. So, I'm surprised to see that there is no PortA. Is there a ...
0
votes
1answer
57 views

Read DS2401 with ATmega 32 and a 1-Wire protocol

DS2401 is a 64-bit ROM memory that used as a hardware-serial-number. [Datasheet : here] It has only two pin. One of them is ground and one of them is Data/Power pin. So for communicate with this chip ...
4
votes
1answer
75 views

AVR ATMega I/O pin overcurrent protection

I want protect I/O pin against overcurrent to make circuit more robust. Atmel's AVR040: EMC Design Considerations discusses internal overvoltage protection in General I/O Pin Protection paragraph. But ...
0
votes
1answer
120 views

Current draw at digital output pin differences in two equally coded segments -probable cause?

I measured the current output of an Arduino Duemilanove (with an ATmega168) in two cases and found out that the currents differ strongly. The following code creates an output of 72mA at pin 13 ...
1
vote
1answer
54 views

Simulate DS2401 with ATmega32?

I have a DS2401 and an ATmega32. I can read the its contents with my AVR micro-controller. I want to know, Is it possible to simulate the DS2401 with my ATmega32? I mean is it possible to connect ...
0
votes
3answers
405 views

Can I do without I²C pull-up resistors?

I am trying to produce a small circuit, and I am looking to reduce the part count. I recently added an I²C EEPROM which is used once when the system boots up, along with this EEPROM I added two ...
7
votes
2answers
385 views

What to do with unused analog inputs?

I am working on an application using ATmega328p atmel microcontroller. I started with the 28 PDIP version, but now I want to use the 32 TQFP, which I noticed has 2 extra inputs after compiling my ...
1
vote
1answer
42 views

AVR Embedded Webserver + Time

I have the task of implementing an embedded webserver (using ATMega328). Broadly, the system would provide the following functionality Allow user to change system parameters using the web interface ...
2
votes
2answers
73 views

Interrupt Management - Large AVR Projects

This is for the more experienced one's out there. I am currently involved with a large AVR project (using ATMega328) and it's getting confusing with respect to interrupts. The project involves ...
3
votes
2answers
164 views

How to turn on ATmega every 6 hours?

My board which is made with atmega operates on battery, it should turn on every 6 hours and log some data, then go back to deep sleep to save battery consumption. I use atmega32 and not atiny because ...
1
vote
1answer
50 views

AVR bootloader restarts on interrupt

For a quite while, I've been using an avr ATmega324PA controller and Atmel studio to write the programs. we wrote a TCP bootloader. It works fine without any interrupt. Later we did add an external ...
1
vote
2answers
76 views

Is the value of XTAL load capacitors for ATmega328p @ 16MHz critical?

I'm going to try to assemble an MCU-based circuit using an ATmega328P-PU (Arduino UNO stripped down to essential parts as in this tutorial). I've skimmed over a lot of posts on EE.SE about load ...
1
vote
1answer
59 views

AVR USART Garbage Data

I have been having issues with my AVR USART. Using a PL2303 USB adapter with the following connections to the AVR What I am seeing is Garbage data (mostly of 0xFF or 0xF7 or 0xE7) even when the ...
1
vote
0answers
44 views

Why am I getting verification errors with avrude?

I am constantly getting verification errors with avrdude and atmega168. I googled a lot, but everyone is getting them at first byte, whereas I am getting them at random bytes: ...
0
votes
0answers
5 views

Cannot upload program to Arduino Duemilanove w/ Atmega328 [migrated]

This is the error I receive while trying to upload to the Arduino. I have installed FTDI drivers for mac. (http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_18.dmg) The board is ...
0
votes
0answers
46 views

AVR SPI Loopback test

I would like to do a loopback test on my ATMega328 to ensure that the code I am writing (while learning SPI) is working fine. To do this I would place a jumper between the MOSI and MISO pins. What ...
1
vote
3answers
56 views

Can I switch between two analog references to read signals with different ranges with the ATmega328P?

I want to read two voltages of different ranges with an ATmega328P ADC with the highest resolution possible: The 1st signal varies from 0 to 1V. It's the output of an LM35DZ Temperature Sensor. I ...
2
votes
2answers
162 views

ATmega328P running on CR2032 has issues with timing/sleep code as voltage depreciates over time

I have an ATmega328P running at 16 Mhz on CR2032 with a few sensors and radio for about a week now. It started out at 3+ Volts and is currently measuring at 2.96 Volts. At present, I am not using ...
0
votes
0answers
63 views

How can I tell that USBasp is working?

I have the USBasp programer and I'm trying to burn bootloader on Atmega328 so that it can be used as a replacement chip in Arduino board (replacement chips with the bootloader installed are quite ...
3
votes
2answers
126 views

Watchdog timer issue - AVR ATmega324PA

I was using ATmega32A before and now I am migrating to ATmega324PA just to enhance power management. Now I am testing the new controller in every aspect. This is a simple code to check the watchdog ...
2
votes
2answers
110 views

Do I have to use external clock for ATmega ISP programming after changing fuse bits?

After programming an ATmega microcontroller via ISP (SPI) interface and changing the clock-related fuse bits, I'd like to reprogram it again. Will I have to connect it to an external clock now to do ...
0
votes
3answers
117 views

Multiple voltages off a single source

I'm building a controller for project that has hobby servos. These typically need ~5V to run. The controller will be an ATmega 2560, running at 3.3V / 8MHz. Looking at the reference design for the ...
1
vote
1answer
122 views

Wifi on ATmega328P-AU

This is in continuation to my earlier post here: Wifi on Nano v3.0 ATmega328P-20AU Board What if I got a USB hub and connected a wifi USB dongle. Will that provide wifi functionality?
0
votes
0answers
28 views

Having trouble programming an ATMEGA in AtmelStudio 6

I'm new to AtmelStudio 6, up until now I have been using AtmelStudio 4 with no problems. When attempting to program the device, I get an error ...
1
vote
1answer
55 views

AVR USART Not Receiving

I have connected my AVR USART to file stream so as to make it easy to send formatted strings on ATmega8 From the AVR, I can send(TX) just fine. However, I am not receiving anything. Can't put my hand ...
0
votes
3answers
63 views

Olimex/ATMega328 Reading from UART and sending to USB

I'm getting frustrated with my electronic knowledge, because I want to do this simple thing: Olimex 328/ATMega328 reads data from UART (Olimex MOD-PULSE or whatever) and forwards it to the USB Port ...
8
votes
2answers
279 views

AVR flash memory corruption

This question is related to AVR deprogramming itself. Project info: We have a battery powered product using an ATMEGA644P. The application permanently runs in sleep mode and only wakes up once a ...
0
votes
1answer
50 views

How to program ATmega2560 chip

This is ATmega2560 http://www.atmel.com/devices/atmega2560.aspx How can you program this? Using Arduino as ISP? USBasp? Also, since this chip in a QFN (I think this is what it's called), then how do ...
0
votes
2answers
87 views

Wifi on Nano v3.0 ATmega328P-20AU Board

I am seeking a nano version of raspberry pi. For my application, I just need 2 two usb ports, 1 for a wifi module and the second to power the board via a 5v usb. I dont need the hdmi inputs in the pi. ...
2
votes
1answer
91 views

Number must be positive and less than 64

Im working with an ATMEGA328P, making a bit of USART code. I used asm linked with C, with no less than 7 building errors. All those were same "Number must be positive and less than 64". Yes, I have ...
4
votes
3answers
257 views

LED persistence of vision (POV) project

I recently saw an article with a LED cube 8x8x8. I saw that it relies on an optical phenomenon called persistence of vision (POV). So I wanted to create a simple circuit with 4 lines each one with ...
0
votes
0answers
44 views

Unable to program ATmega128 - 16AU using USBasp

I am trying to program an ATmega128 microcontroller (bought from Robokits). I have connected the 10 pin ISP header from the USBasp programmer to the 6 pins (MOSI, MISO, SCK, RESET, VCC, GROUND) of the ...
0
votes
0answers
28 views

Can't upload program to ATmega16A

I am trying to program my ATmega16A using a STK500V2 programmer. Avrdude throws the following error when I try to program it: avrdude -c stk500v2 -p atmega16 -P NEX-USB-ISP -U ...
0
votes
1answer
126 views

Controlling a brushless DC motor with an Arduino--*without ESC*

I want to build an ESC using an ATmega328 (used in Arduino Uno). This is the Brushless DC Motor I've chosen and this is the MOSFET I've chosen to gate the power supply. It will be used to drive a ...
0
votes
1answer
62 views

communicating to shift register with ATmega32 without using given SPI pins

I'm trying to use an ATmega32 to communicate to a MAX7219 chip for multiplexing with an led matrix. However, I do have multiple different devices that I want to communicate with. I am trying to ...
0
votes
0answers
49 views

Can't upload program to ATmega16

I have the same exact problem as in this question, except that I have an ATmega16 microcontroller. But the answer on that question doesn't solve my problem. ie: The command: ...
1
vote
3answers
122 views

Changing bootloader fuses - Arduino based ATmega32U4

I'd like to develop an Arduino board with the ATmega32U4 MCU but in a low power mode. I've been searching and I know I have to change the fuses to prevent the brown-out-reset (BOR) when the battery is ...
0
votes
1answer
57 views

AVR ATmega breakpoints and BREAK instruction

I use AVR Studio 4, JTAGIce MkII-CN, gcc for debugging. It works generally OK but sometimes happens after some unspecific interruption (reset, power cycle, etc.) that AVR Studio breakpoint remains ...
1
vote
1answer
74 views

Something I don't understand with electricity and my circuit

My title is strange, but my circuit is acting weird and I hope someone can explain me this strange behavior. I have made a simple circuit with an ATmega which send output to the TX pin, and my USB to ...
1
vote
3answers
63 views

Problem with ADC of Atmega16A in differential mode

I am having some problem while using ADC interface of Atmega16A. I want to calculate RMS voltage of the power supply coming to my house(usually 250V, 50Hz) and display it on LCD. I am using the ...
2
votes
1answer
31 views

Separating a PORT into in/out and getting random nums?

Using ATMega1284 I want to generate a random number from 0-7 (maybe more range). This is the main concern. As long as it "feels" random its fine. And it could resolve the rest of my issues... anyways ...
1
vote
3answers
284 views

Convert 3.3v to 14v?

I want to use a 4D Systems OLED display with an ATmega32u4 based PCB. I'm still working on designing the PCB and have hit a problem. In the data sheet it says that one of the power supply pins for the ...
3
votes
3answers
303 views

Boost DC voltage converter for wireless temperature sensor (1.5V to 5V)

I'm trying to design a wireless temperature sensor powered by one (or maybe two) rechargeable NiMH AA cell(s). The sensor should read and transmit the temperature every couple of seconds and remain in ...
1
vote
1answer
54 views

If I'm using an RTC and ATMega328p (arduino UNO chip), do I need two crystals?

If I'm using an RTC that requires an external crystal, do I need a second external crystal for my ATMega328p? Or can the two share? What is standard practice for this kind of thing? I'm making a ...