AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the popular Arduino SBCs.

learn more… | top users | synonyms

0
votes
0answers
23 views

Is there any FTDI based USB to serial converter that can be used as avr (without boot loader) programmer?

I need an usb to serial converter which can act as an actual serial port. This would let me program avr microcontroller without boot loader. I heard Bit bang mode in FTDI might allow this. Does it? ...
1
vote
2answers
56 views

Why usb to serial port converter can’t program avr microcontroller?

With a serial port or parallel port in pc programming avr microcontroller is very easy and cheap. Problem is, no modern computer come with serial or parallel port. So, usb to serial converter should ...
0
votes
0answers
45 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.
0
votes
2answers
74 views

Arithmetic Overflow ATmega328

I have written the following function to calculate the current timestamp (since 00h Jan 1 1900). The output I get is: ...
3
votes
1answer
27 views

Speed and Position Control for high-volt Elektro Motor with AVR

Is there anything that one can purchase to control speed and position of a high voltage electro motor? I am quite a bit of a noob at this but I could think of a circuit using photo-sensors or ...
3
votes
1answer
48 views

AVR - ATmega16 - Timer config

Trying to figure out the timer setup in Atmel Studio 6 for an ATmega16 microcontroller. And I just don't get it. I am trying to create a TickCount similar to GetTickCount() Retrieves the number of ...
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: ...
0
votes
1answer
44 views

Understanding AVR assembler instruction

From here, I have the following example: ...
1
vote
0answers
24 views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
2
votes
1answer
81 views

EEPROM Write Limit [duplicate]

Just curious as to why do non volatile memories like EEPROM in an AVR have a write limit ? Also is this limit per location/adress in the memory or on the memory as a whole ?
0
votes
1answer
40 views

Plug-and-play usb-midi controller. How?

I am wondering how plug-and-play usb-midi controllers are created? To the moment I've created a simple midi controller based on Arduino Uno, but I am not able to use it directly. I have to use ...
0
votes
1answer
59 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
44 views

Clearing Flag Bits By Writing 1

Most of the interface devices have various flag bits (that can also raise interrupts if that functionality is provided) used to check the status of the device/operation. Usually they are cleared by ...
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
1answer
42 views

One-Wire data transfer with a DS2401 via AVR [closed]

I've an ATMEGA32 and a DS2401 (64 bit ROM - Silicon serial number). I want to read its contents. Can anyone help me giving me a clue, sharing a pdf tutorial link for One-Wire communication or a ...
0
votes
1answer
27 views

NRF24L01+ IRQ Issue

I am testing the functionality of NRF24L01+ and for my purposes I have configured it as PTX, No Auto ACK. I am able to communicate with the chip just fine and able to configure all the registers ...
0
votes
0answers
30 views

AVR SPI Issue (No data being received from slave)

I am trying to communicate to NRF24L01+ radio module using SPI on ATMega328. When things did not work out, I started analyzing the SPI signals using my logic analyzer. The SPI it set for 1Mhz, MSB ...
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
76 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 ...
6
votes
1answer
722 views

Are pointers treated differently in AVR compared to say x86?

Microcontroller: ATtiny13 IDE: Atmel Studio I'm trying to write a Hello World application by writing high to port PB4. This works fine: ...
1
vote
1answer
52 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
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 ...
0
votes
1answer
58 views

Ethernet chip with integrated tcp/ip stack [closed]

I would like to ask what Ethernet chips are popular for an embedded webserver project. Features needed ... integrated tcp/ip stack support ntp protocol php support Basically the main purpose of ...
3
votes
3answers
323 views

What is an easy way to program an ATtiny microcontroller in C without an ISP?

I understand the "most raw" method to program an AVR microcontroller is probably with an ISP such as the AVRISP mkII. However, I'm after a method that doesn't involve me having to purchase a $40 tool ...
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
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 ...
0
votes
1answer
23 views

TWI problem on mega2560

The TWI on mega2560 seem to be malfunctioning. the below code, believed to be correct as per data sheet, gives a proper start sequence, a proper address and a correct ACK. But when writing and sending ...
-4
votes
3answers
64 views

What is bug in C code for AVR? [closed]

When we write C code the compiler can diagnose certain errors. What is the difference between these errors and bugs? How can we recognize bugs? Can operating frequency effect bugs? In the world ...
0
votes
0answers
51 views

Keypad doesn't work correctly in the proteus

I have written a calculator in the Bascom avr and simulated it in the proteus but, some numbers of the keypad doesn't work, correctly. just 1 , 4 and 7 works nice. 2 and 3 shows 1, 5 and 6 shows 4, 8 ...
0
votes
0answers
40 views

GPS Not Working

I'm working with Venus 638 GPS and trying to get my current location. All the documents of it (datasheet, scheme, etc) can be obtained here. To deal with it, I'm using codevision avr and monitoring ...
0
votes
1answer
52 views

Small size transformer - Design or Pre-made

I am wondering how to acquire or design a small transformer. In my circuit, I need to add a transformer mainly to power my AVR and a bluetooth module. I would like it to be as small as possible as I ...
1
vote
0answers
48 views

USBasp supporting PDI

My avr micro-controller uses PDI interface for in-system programming. I have USBasp programmer which programs serially through SPI interface. How can I program my micro-controller through USBasp? I ...
2
votes
1answer
43 views

avr-gcc timer overflow interrupt handler in inline assembly

My current project involves producing 200KHz PWM waveforms using timer 1 in fast PWM mode. I would like to increment a 16-bit counter every time the timer overflows (every 5μS) ...
0
votes
2answers
56 views

Multiple USART Devices - ATMega 328

I have 2 devices connected to my ATMega328 USART pins. One is PL2303 USB to TTL converter and the other is Bluetooth <-> USART adaptor. I was advised that I should not have 2 devices connected at ...
3
votes
2answers
128 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 ...
0
votes
0answers
29 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
2answers
84 views

This automated light system is slowing down randomly

A PIR sensor sends input to the AVR (ATmega 32A), when input is received and the ADC (LDR) is below a critical value, PB0 is to go high to switch on a relay. A timer counts seconds so that the relay ...
1
vote
1answer
56 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
1answer
38 views

Sense existing vehicle TPS with AVR ADC

I have an issue sensing the throttle position sensor voltage if the sensor is already being used by the vehicle's own ECM. Namely, the vehicle ECM stops responding to the throttle input after a period ...
8
votes
2answers
281 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
51 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 ...
1
vote
1answer
23 views

AVR TWI Status Codes Complete List

Can anyone provide a link for complete list of status codes for AVR TWI? I am working with DS1307 using TWI, during which at some point I receive a status code of 0x40. However there is no mention ...
3
votes
1answer
62 views

AVR USART Random Behaviour

I seem to be getting random character in my USART output with an ATMEGA8 uart.c ...
2
votes
1answer
211 views

Arduino Uno to ATtiny44A I2C communication

I tried to make I2C communication from Arduino Uno to ATtiny44A. Uno as Master and Transmitter code: ...
1
vote
1answer
65 views

TCP bootloader memory issue

I am trying to write a simple, stand-alone TCP bootloader for an AVR micro-controller. Right now, I have got a collection of APN that weigh almost 14KB memory. The application code will establish a ...
0
votes
1answer
116 views

Why signal deteriorate in half-duplex UART communication in long wire (6 meter)?

I am doing project on half-duplex UART communication between two AVR microcontrollers. I am using n-mosfet based push pull circuit in both transmitter and receiver side. 3.3 V signals transmission is ...
1
vote
0answers
83 views

Mystery while driving a NeoPixel Ring (WS2812) with a GEMMA (ATtiny85)

I am working with an Adafruit GEMMA and NeoPixel Ring 16 LEDs (ATtiny85 and 16 WS2812 leds) and trying to get a program to light the LEDs according to my "pattern" structure below, representing R, G, ...