Questions tagged [avr]

AVR is the family of microcontrollers used in Arduino boards.

259 questions
15
votes
6 answers

What's the difference/relationship between Arduino and AVR?

I'd always thought Arduino was a microcontroller platform but the actual microcontroller is an AVR chip made by Atmel, or something like that made by someone else, based on a RISC ISA, and Arduino is usually used to refer to the whole circuit board…
user3383182
4
votes
1 answer

How does the microcontroller know which clock to use?

I had seen some tutorials on how to assemble an Arduino on a breadboard. They all just place the external crystal oscillator according to the circuit and then, just burn the bootloader and it starts working. According to my little knowledge the fuse…
Aneesh Sharma
3
votes
2 answers

AVR - How to know that there is collision between stack and heap or the memory has filled?

I am using the dynamic memory in AVR microcontroller, so How to know that there is collision between stack and heap or if the memory has been filled?
Ahmad Naoum
  • 145
  • 1
  • 5
2
votes
4 answers

How are Arduino's OSH if Atmel AVR is proprietary?

I keep reading how Arduinos are "open source", but my understanding of OSH is that all its components must be open source. Arduino uses an Atmel AVR CPU - but Googling this shows the Atmel is proprietary!? So I ask: how can Arduino be truly OSH if…
smeeb
  • 509
  • 2
  • 10
  • 21
2
votes
1 answer

Cannot enter programming mode on Arduino Uno

I have an Arduino Uno that I've been programming with an AVR Dragon through Atmel Studio 7. I did two things in close proximity, and I'm not entire sure which action is the culprit. I tried using the DebugWIRE interface (for the first time) instead…
Khaines0625
  • 125
  • 5
2
votes
2 answers

Burning arduino generate hex file to blank atmel chip

Is it possible to burn the hex file to a blank chip, generated by Arduino to burn using USBASP to that particular chip without using Arduino board ? Will the program work ? My main goal is to use Atmega328P for low power. Should I select Arduino…
Maxmavin
  • 21
  • 2
2
votes
2 answers

Optimizing an Arduino code

I am working on project and using Arduino Pro Mini (Atmega328p running on 2xAA) to measure the time to charge a capacitor (when the volt level is high). This is the code I used while testing: int counter = 0; // Charge the…
1
vote
1 answer

Assign an interrupt to any pin of the atmega328 microcontroller

I need to record the appearance of a signal from the sensor on the PD0 pin. This is the first time in my life that I want to use an interrupt for this. With your help, I configured the sketch for my pin PD0 #include volatile int…
Антон
  • 265
  • 3
  • 10
1
vote
1 answer

OpenOCD with FT2232H on Arduino Mega (ATmega2560)

I want to do on-chip-debugging on an Arduino Mega. According to its datasheet, the ATmega2560 chip supports JTAG. (IEEE 1149.1 compliant) Can I use a generic FT2232H interface to do on-chip-debugging on this? How would a OpenOCD config file look…
mrmax1
1
vote
2 answers

Is it possible to use Arduino UNO programmer for other AVR microcontrollers?

I got an Arduino UNO which I started using with microc for avr to add more customizations. I'm wondering if it is possible to use the Arduino UNO programmer to program other AVR microcontrollers (I know that it is possible using ATmega 328p and…
ChiPlusPlus
  • 153
  • 1
  • 1
  • 9
1
vote
2 answers

Can't burn bootloader through Arduino Nano clone ISP to atmega328p

I'm trying to use a Nano v3 as ISP to program an atmega328p on a board with ISP headers: I followed the instructions under https://www.arduino.cc/en/Tutorial/ArduinoISP which I think have been recently updated. I'm simply connecting ISP headers…
Viktor Hedefalk
  • 137
  • 1
  • 2
  • 6
1
vote
0 answers

Arduino Timer 0 in fast PWM mode and micros()

I have the same problem as described on this topic I needed to set my prescale factor for Timer0 to 1 so I can get a 62.5Khz PWM out of pin 4 My issue is that now the delays() function on my sketches doesn't work correctly. As mentioned also in the…
Lefteris
  • 111
  • 3
1
vote
3 answers

More speed from ATMEGA328 Internal Clock

I have a board that is designed and produced. It was designed to use an Atmega328 with the internal clock. There is no space on the board to place an external clock. After completing these and testing them I have found that 8Mhz is too slow to…
1
vote
0 answers

Programming ATUC256L4U using only Arduino ISP

I heard that you can program any AVR Microcontroller by just using Arduino ISP Can I program ATUC256L4U by just hooking it up to Arduino ISP and Caps, Crystals and etc. Or do I need to do some more work like you know the fuses and all ?
Sagnik Pradhan
  • 520
  • 1
  • 7
  • 17
1
vote
4 answers

Reset and Remove Arduino ATmega328P?

So I have 2 Arduinos, and im wanting to remove the chip from one and reset it to like it came from the factory and then breadboard it and attempt to program it using an AVR programmer (Or maybe an Arduino AS a programmer). Why? Mainly because I want…
msmith1114
  • 113
  • 1
  • 5
1
2