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.
192
questions
12
votes
5
answers
6k
views
"Overclocking" an AVR
In AVR datasheets under the Electrical Characteristics section you will typically find a graph like this (this one is from the ATMega328):
I've seen designs that seem to "work" but operate outside ...
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 ...
23
votes
4
answers
17k
views
Crystals and load capacitance
If a crystal has a rated load capacitance of 6 pF, is the right thing to do to put a 6 pF capacitor to GND on either leg of the crystal? I'm using it as the clock source (TOSC) for an XMEGA and it's ...
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)...
4
votes
3
answers
3k
views
12 hours delay with ATmega16A
I am trying to turn on a LED for 5sec every 12 hours.
I tried:
...
1
vote
1
answer
2k
views
How to control 4 relays with a not chip (7404)
I have a atmega8 that is working with 3.6V dc, I need to control some 12V relays with a not chip (7404), what is the simplest way to do this? I have connected a 12V dc to the relays, so when I connect ...
11
votes
10
answers
10k
views
Linux / Mac AVR Programming Suite?
I have been coding and using Arduinos for quite some time now. However I am ready to move up to using straight AVR chips without the arduino bootloader. My question is what are resources to do this? ...
1
vote
1
answer
4k
views
How can I control a servo motor with the PWM output of a microcontroller?
I wanted to control the direction of servo motor with a switch. I am using an Atmega32. Outputs are PIND4 and PIND5 and the input is PINA3, but the two servo motors turn only in 1 direction.
...
15
votes
2
answers
41k
views
Protecting AVR flash from reading through ISP?
I'm trying to protect whole flash from reading through ISP. It has bootloader, able to self program application section.
Setting lock byte to:
LB1/LB2 will not ...
10
votes
3
answers
3k
views
Data retention on a microcontroller
Just reading the datasheet of the attiny13 it says that it can hold its data for 20 years at 85 degrees Celsius and 100 years at 25 degrees Celsius.
Is this irrespective of the read and writes on ...
6
votes
2
answers
11k
views
Driving a relay directly with a microcontroller?
Are there any microcontollers on the market that would be able to drive this relay directly?
If not, what is the most cost effective way to have a microcontroller control 5 relays?
2
votes
3
answers
5k
views
Playing sounds on an AVR MCU [closed]
I never had to deal with sound and I am pretty sure some of you guys have some experience in that kind of application.
My question is more about getting some tips on the different ways to implement ...
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 ...
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 ...
23
votes
8
answers
8k
views
Suggestions for small and handy connector for in-circuit programming?
I have many PCBs that use an AVR in SMD packaging, and since I frequently change the firmware in prototype boards, I'm trying to come with the best solution to program the AVR quickly and easily.
The ...