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

-2
votes
3answers
101 views

12 Hour delay for atmega16a

I am trying to turn on a LED for 5sec every 12 hours. I tried: ...
-2
votes
1answer
30 views

AT90SCR100 IC Chip: How can I clear (erase) the Lock Bits if LB2 is programmed?

I have a question about [Atmel] AT90SCR100 IC Chip. How can I clear (erase) the Lock Bits if LB2 is programmed ? Best Regards, Seikou Ishimaru.
0
votes
1answer
37 views

DAC interfacing with Atmega128

Hope you are doing well and solving all your problems!!! I am new to hardware programming, facing some difficulties to work with DAC interfacing with Atmega128 board. After searching on internet, ...
0
votes
1answer
43 views

ADC neglects input voltage (ATMega32)

In the following AVR code, why do I always see the same voltage for all pins of port A? I am using ATMega32. BTW, when I am grounding some pins of port A I do not see any change in the output. It ...
-3
votes
1answer
35 views

AVR Not Resetting Properly

I am facing an issue where my AVR is not resetting properly upon power up.This is the first time I am facing such issue. I have a Nokia LCD connected to AVR and upon startup (and after some delay and ...
0
votes
1answer
17 views

can't read&store in global variable in function OR can, but get error reading ds18b20 sensor

I'm using Atmega8 with CVAVR 2.05.0 and trying to slightly modify the way ds18b20 library works. I want to store temperatures from sensors in global array and start conversion for all sensors at one ...
0
votes
0answers
36 views

How to communicate with RLM100 UHF RFID module?

I have an RLM100 UHF RFID module. I searched a lot, but I didn't found anything useful that explain how I can use this module. I mean the only thing that I understand so far it that this module use ...
1
vote
1answer
47 views

Memory Leak in queue linked list, avr c

I am building a small command interpreter to be run on a microcontroller. To queue each command and its accompanying arguments, I am using a queue implemented as a singly linked list. All of the queue ...
0
votes
1answer
56 views

Atmega Microcontroller interrupt delay function on button press

I am using Atmega32A and I have 2 LEDs. Here's step by step what I want to do When the MCU is powered, I have one LED lit (PC0) When click on a button (PD6) the second LED at (PC1) is lit and the ...
0
votes
2answers
45 views

GPRS HTTP 400 Bad request

I am facing some problem with GPRS Project. I am sending request to server through GPRS and receiving responce from the server. I have used AVR ATmega32 micro controller and SIM900 GSM/GPRS Module ...
0
votes
0answers
56 views

How to reset AVR microcontroller?

I recently assembled my first custom PCB with an ATMega328 and ran into some problems. Is there an easy way to reset the chip to default settings including fuse bits so that I may start fresh? Any ...
0
votes
2answers
81 views

Determine input frequency of square wave w/ ICR in Atmega328p

I'm trying to obtain the input frequency of a square wave using the input capture register of an Atmega328p. So far, it works sporadically -- which is to say, when I input a 75 kHz square wave, the ...
0
votes
1answer
61 views

SIM908 GPS STATUS “Location Unknown” Error

I'm using a SIM908 module on a custom board and am having trouble getting the GPS location from it. Everything else works on the module. I can send SMS, make calls and send and receive data from a ...
0
votes
1answer
44 views

If I Don't Wire USBASP to ATmega 328-PU Will I Burn Out My Chip

This is a simple, noob question. I'm trying to connect a USBASP with an ATmega 328-PU. If I incorrectly connect them, such as put ground into vcc or miso into mosi, will I kill my chip?
1
vote
2answers
70 views

Wrong frequency with Timer1 on Atmega328p in CTC Mode

I want to make a LED blink at a frequency of 0.5 Hz. So, I use an Atmega328p, clocked at 16 MHz, and the Timer1 in CTC mode, which triggers an interrupt every milisecond. Yet, my program, in Atmel ...
1
vote
1answer
57 views

RESET(bar) Pin of ATmega16

The datasheet says that an External Reset is generated by a low level on the RESET pin. And after reset all my conditions and values will be set to initial values. I have connected the Reset(bar) pin ...
1
vote
0answers
50 views

How to call the odd and even bits from SDRAM and transfer via master to multiple slave through SPI Bus?

I want to use the multiple slaves on same SPI bus in Port C. i stored my Data to SDRAM of Atxmega 128a1. let me consider my SDRAM stores A1A2A3A4A5...etc data bits. my data size is 2956192 bits. such ...
0
votes
0answers
20 views

Why avr-as doesn't work?

I've got the following program, in AVR assembly: .DEF WR = R16 .ORG 0 SER WR OUT 0x24, WR When I call ...
1
vote
1answer
27 views

Why do we need to use `avr-objcopy` after `avr-as`?

New to assembly, I'm surprised to see that we need to use avr-objcopy after invoking avr-as, in order to obtain an Intel Hex ...
0
votes
3answers
148 views

AVR/Arduino: Output 2 pwm waveforms with 90 degree phase shift

So far, I was able to get two outputs at the correct resolution (35kHz-75kHz at a resolution no worse than 0.7 kHz) using the code below. I'm wondering, now, how I can get a phase shift between the ...
0
votes
1answer
48 views

Low-Pass filter on AVcc pin for ATtiny

The datasheet for the ATtiny861a states that "If the ADC is used AVCC should be connected to VCC through a low-pass filter". The datasheet doesn't specify what values I should use or what style of ...
0
votes
0answers
67 views

AVR device not responding

I am using Raspberry pi to program ATMEGA32A and when I have finally set up evrything it gave a response "AVR device initialized and ready to accept instructions". But when I burned a program it ...
3
votes
1answer
57 views

ATmega ADC input channel analog vs digital power

The data sheet of the ATmega48A/PA/88A/PA/168A/PA/328/P states that ADC input channel 5 and 4 use digital power, while ADC input channels 3-0 use analog power. Does this mean that ADC 5 and 4 use Vcc ...
0
votes
3answers
80 views

ATMEL AVR ATmega168P 8 mhz

Hello I will use this circuit to put lights in a model car: Now the question is if you can see is required one ATMEL AVR ATmega168P with CPU clock frequency to 8 mhz and I can´t find in any place ...
0
votes
1answer
49 views

Switching 12V/6A with an AVR - MOSFET or relay or both?

I want to control the 12V heating of an oxygen sensor with an ATmega328P. It draws about 6A when switched on when it is cold and about 1.5A at the operating temperature of 350°C. It is powered with a ...
0
votes
1answer
102 views

MISO/MOSI vs DI/DO

Is there a difference between the MISO/MOSI pins and the DI/DO pins? Is it true that MISO/MOSI is for SPI communication where DI/DO is for USI communication? What is the difference exactly?
0
votes
0answers
47 views

Measuring Capacitance using AVR

I am trying to make a capacitance meter with AVR Atmega16. I use of analog comparator inside micro. Means when negative pin(AIN1) of comparator reach to postive pin(AIN0) micro going to interrupt ...
3
votes
1answer
37 views

AVR bit manipulation compilation in GCC: can not get SEI instead of read-modify-write

I'm trying to set bit 2 in TIMSK register and using the following C code: TIMSK |= (1<<2); Compiler makes the following code: ...
0
votes
1answer
15 views

ATtiny861 pin change interrupt on PA.2: error in datasheet?

I faced with some confusion in subject datasheet: In one section PA.2 should be masking by PCIE1 bit as PA.2 is PCINT2 input and it should be within PCINT[7:0] and PCINT[15:12] range: On the other ...
1
vote
1answer
142 views

ATMega32 USBasp not programming

I use no Arduino just trying to program a simple ATMega32 using USBASP. Getting this message: ...
2
votes
2answers
63 views

#define EEMEM __attribute__((section('.eeprom')))

After long time investigation, I could not find proper information about "#define EEMEM attribute((section('.eeprom')))" macro on eeprom.h header file. I want to declare variable exactly at address ...
4
votes
2answers
172 views

AVR Bootloader Protection?

Is it possible for an out-of-control (e.g. due to stack corruption) user application to inadvertently invoke the bootloader sector code in an AVR (e.g. ATmega1284p)? Said differently, is it possible ...
0
votes
1answer
41 views

Can HC-06 be used as a Bluetooth server to which multiple devices can connect?

Title sums it up. I want to use my AVR to be a bluetooth server for multiple Android devices. Is it possible? If iy is not what other method can be used to achieve this?
0
votes
1answer
55 views

SPI Communication during Programming

I am using the ATtiny861a and have made it so that the SPI connects to a Radio and an external memory source VIA two different chip select pins but sharing the same MISO/MOSI/CLK line. Correct me if ...
0
votes
2answers
121 views

Is it possible to program ESP8266 from another microcontroller?

I am using PL2303 USB to TTL adapter to program ESP8266, but I do not want to unplug it from system and plug it into PL2303 all the time. That's why I want to program it in system, with my AVR (the ...
0
votes
0answers
38 views

controlling USB game device from AVR

I have this missile launcher. I successfully wrote Python script to handle it from my linux. My next step is to operate it from AVR (Atmega328). Is it possible to control USB device from AVR? It is ...
1
vote
1answer
189 views

Software Serial alternative with AVR (Two Serial/UART ports in atmega328p)

Arduino pins can be used as UART using the library SoftwareSerial.h Is there any alternative ...
2
votes
1answer
68 views

How to program a microcontroller over another microcontroller?

I am currently working on a project that requires two separate microcontroller to work together, but since I am still working on the project I generally need to update their programs. I couldn't find ...
1
vote
1answer
257 views
0
votes
1answer
56 views

CS/SS pin configuration

I am using an ATtiny861a and I want to enable it to use SPI. In doing this I need to assign not one, but two CS/SS pins in order to communicate with a radio and an external memory. Does the CS/SS pin ...
0
votes
1answer
50 views

CC2520/ATtiny861A pin configuration

I am looking to hook up a radio with an ATtiny861A microcontroller. The radio that I will be using is the CC2520 from Texas Instruments. The RESETn pin(on the CC2520) will allow me to put my circuit ...
3
votes
1answer
50 views

What is holding the SS pin high in SPI master mode on AVRs?

A typical AVR datasheet contains the following example of an SPI Master mode configuration (here from page 164 of the ATmega128/L datasheet): ...
0
votes
1answer
68 views

SPI communication with multiple slaves

I am working on a project that is using an ATtiny861A and this only has one SPI. If I want to hook up a radio and an external memory to the same SPI, will there be an issue sending data from the ...
0
votes
1answer
57 views

AVR global variable modified by interrupt not persistant

Using an ATmega328p, I'm running into a problem when I make an interrupt (INT0 or INT1) active, the code will execute just fine (MusicOnLed and FadeOnLed functions will execute), however as soon as I ...
2
votes
1answer
54 views

Why the led is blinking instead of keeping on atmega8

I wrote a very simple sample code into my atmega8 via avrstudio here it is: ...
0
votes
1answer
27 views

WS2811 RGB LED Strip Timing Issue

I recently purchased addressable RGB LED strips based on the WS2811 chip. These strips have a single data + clock line that uses NRZ style encoding to distinguish between a 1 and 0. The datasheet for ...
0
votes
2answers
61 views

Alternatives to Arduino for controlling LED's and Audio files? [closed]

Simple Alternatives to Arduino Has anyone used these different boards? If so, what did you use them for and why? Which are appropriate for controlling LED's and playing audio files? I'm looking ...
3
votes
2answers
206 views

Is it possible to set a breakpoint in AVR Studio in files other than the one where the main() function is?

If I have a project with more than one translation unit, AVR Studio only allows me to set breakpoints in the main c file. It doesn't matter if I include the other files directly by ...
2
votes
2answers
89 views

How to determine the end of data received by USART?

I am receiving some strings from UART in AVR. Strings are chaotic, not deterministic. It also includes new line \n and carriage return \r characters that's why I couldn't find a solution including ...
0
votes
1answer
66 views

Atmega2560 Usart Interrupt problem

When I send any data from serial port, RX pins are flashing but ISR is not running. Here is my code. ...