Questions tagged [avr]
AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the first generations of the popular Arduino SBCs.
1,910
questions
0
votes
0
answers
52
views
AT90USB1286 as a potential storage device for a few kilobytes of data
I have a few trays of AT90USB1286 microcontrollers leftover from a previous project that I would like to make use of.
Is it possible to make this chip act as a block device when connected to a PC? I ...
0
votes
0
answers
109
views
Can't read RGBC data from TCS34725 RGB Sensor using AVR and Atmega16
For my project, I need to read the RGBC data from a TCS34725 RGB Sensor using the Atmega16 and AVR. It should be able to classify between the colors Red, Green, Blue and Clear light. Therefore I made ...
1
vote
1
answer
1k
views
AVRDUDE verification error
I've been working with AVR microcontrollers (specifically with ATmega328p's) for a bit and I got an ATmega32u4 that I wanted to program it to be used as a USB peripheral. However there is one problem: ...
0
votes
1
answer
209
views
AVR Port pins: read and write
As the ports are connected to pull-up resistors; the port pin values should be at level 1 when not connected to the outside world.I wrote the below code to set the lower half of PORTA as input and the ...
0
votes
1
answer
51
views
Powering AT90USB162 microcontroller from USB
I have a new AT90USB162 (docs). I would like to use my USB 2.0 socket and USB cable as a power supply for the microcontroller. I have two questions:
How to adjust the current flow? In the ...
0
votes
0
answers
59
views
Changing External Crystal of ATMEGA2560
In new project I'm working on I changed 8MHz external crystal of ATMEGA2560 to 16MHz Now UART and I2C are not working. What all changes needs to be done to make this work?
0
votes
1
answer
113
views
How does the ATMega32 know that the incoming SPI data signals are the program to be burnt?
From my understanding, in order to burn a C program to the ATMega32's flash memory, the program is first compiled and converted into a hex file which is then uploaded using a computer program such as ...
0
votes
0
answers
98
views
AVR adc multichannel isn't reading properly
this is a code I made to get reading of 3 ADC channels , I am using the ADC interrupt auto trigger , the first channel works well but after that the readings are weird , I am using potentiometer , so ...
0
votes
2
answers
362
views
Atmel Studio: Compiler error when adding external SRAM
I have board wired up to use ATMega1281's Eternal Memory Interface with a BSI, BS62LV4006STIP55, 512Kx8 SDRAM connected. I am trying to do something similar to this (ATMega128), except my memory is ...
0
votes
0
answers
112
views
Why is my code working in proteus but not when burned into chip?
I am using atmel chip and I have a problem with the code, I guess. Trying to make automatic light system. I am working with two IR sensors that should detect a person entering and leaving the room. I ...
3
votes
0
answers
69
views
Minimum circuitry for robust operation of the "new" ATtinys (1614) with Optiboot
I have spent hours now trying to catch up on the replacements for the old ATtiny's, there does not seem to be a robust (meaning, with protections that we could find in an UNO or Mega for example) ...
2
votes
2
answers
561
views
How to do a factory-reset on an AVR micro-controller?
I'm programming an ATmega32 chip, and have set some bits as 1 in some DDRs and PORTs. In case I forget what bits I had set to 1, is there a way to set all the register bits to a value(1 or 0) that was ...
1
vote
1
answer
145
views
Why does AVRDUDE require part ID as an input parameter when it detects the device signature by itself?
When I type the following in terminal
avrdude -p m32 -c usbasp
I get the following as output
...
0
votes
1
answer
101
views
AVR programming, push button not working
I was trying to study AVR programming using an Arduino. I just wanted to blink some LEDs. At first I succeeded then I tried using a push button for it. It didn't work out. I tried using a switch ...
0
votes
1
answer
104
views
Audio processing from Arduino
The project is to design a device with multiple audio inputs and multiple audio outputs. The device should be capable to map input and output audio channels. Output almost same as the input. At what ...