Skip to main content

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.

66 votes
3 answers
109k views

What is a boot loader, and how would I develop one?

I've met many projects in which an AVR microcontroller uses with a bootloader (such as the Arduino), but I don't understand the concept very well. How can I make a bootloader (for any microcontroller)...
mina_g's user avatar
  • 1,375
51 votes
18 answers
38k views

Complete alternatives to the Arduino IDE? [closed]

I'm not that big of a fan of the official Arduino IDE (in terms of visuals), so I've started looking for nicer alternatives. However, most of the projects I've found are in alpha/beta and are ...
nopcorn's user avatar
  • 890
46 votes
10 answers
52k views

Why is AVR used in Arduino?

Why is Arduino using AVR? I understand that they are the official processor but there isn't a reason the code couldn't be ported to an ARM or a Freescale architecture other than cost, right? As long ...
42 votes
10 answers
27k views

SPI or I2C: which to use for a longish bus

I'm contemplating a project that would require several AVRs talking to each other over a bus. They'd be separated by as much as 6 feet. It seems like both I2C and SPI can let a series of micros ...
edebill's user avatar
  • 2,519
42 votes
5 answers
5k views

Who receives the value returned by main()?

I know that in computers, value returned by the main() function is received by the operating system. But, what happens in the ...
user18118's user avatar
  • 551
38 votes
1 answer
9k views

Why does my AVR reset when I call wdt_disable() to try to turn the watchdog timer off?

I am having a problem where executing a disable watchdog sequence on an AVR ATtiny84A is actually resetting the chip even though the timer should have plenty of time left on it. This happens ...
bigjosh's user avatar
  • 10.2k
37 votes
2 answers
53k views

What is bit banging

I am new to microcontroller programming. I am using ATmega32-A controller and CodeVisionAVR compiler. I am using the waveform generator(AD9833) to generate a sinewave signal using SPI communication. I ...
verendra's user avatar
  • 1,243
34 votes
5 answers
15k views

How do devices like the Game Boy Advance achieve their frame rate?

I've been designing my own handheld gaming device based around an AVR microcontroller and a small OLED display. I started off with a monochrome display 128x64 pixels and can comfortably draw to it at ...
MalphasWats's user avatar
31 votes
2 answers
9k views

A PCB for a Drone

I'm making a drone, and would love if somebody can review my work on the PCB layout. Image (red is top, blue is bottom, circles indicate holes and side transfers purple is glue): What is supposed to ...
user avatar
28 votes
5 answers
3k views

Due to overcurrent, shouldn't I be extremely cautious when setting an I/O pin as Output?

The question can be applied to any microcontroller with I/O capabilities, but I’m currently working with the popular ATmega328p. Consider the following circuit: A simple SPST Normally Open switch with ...
Julian Zatloukal's user avatar
27 votes
6 answers
48k views

Using the ATMega328 with the internal oscillator?

I have a project that I think would be best suited for an ATMega328P. However, in every simple project I've seen, people always hook up a 16MHz external oscillator. From what I can see, it should have ...
Earlz's user avatar
  • 3,396
26 votes
3 answers
16k views

What are Atmel Fuses?

What are Fuses in Atmel microprocessors and when I should or need to change the default settings?
tuupola's user avatar
  • 1,657
26 votes
3 answers
36k views

AVR - How to program an AVR chip in Linux

I recently got an AVRISP MkII AVR programmer, and I have an ATtiny85 and an ATmega328. I was wondering how I could program these chips with the programmer, but when I try getting Atmel Studio 6 it is ...
user151324's user avatar
26 votes
6 answers
40k views

ATMega8: why do VCC and AVCC have to be connected?

I often read that it is good practice to connect VCC with AVCC. Even in the ATMega8 datasheet it says so: AVCC is the supply voltage pin for the A/D Converter, Port C (3..0), and ADC (7..6). It ...
Peter's user avatar
  • 385
25 votes
6 answers
26k views

Why are Atmel AVRs so popular?

A recent question asked about the advantages/disadvantages of various types of MCU. AVRs seemed not even worth a mention given the answers. Why then does it seem to an outsider that AVRs are ...

15 30 50 per page
1
2 3 4 5
128