AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the popular Arduino SBCs.
3
votes
1answer
45 views
what is an avr programmer for arduino?
I'm a beginner with Arduino . I'm reading a book called practical avr microcontrollers. Games gadgets in home automation with the microcontroller used in the arduino
From the beginning the book ...
1
vote
1answer
46 views
AVR-GCC: Ports Undeclared when compiling
My Setup
I'm running Ubuntu 12.10, and I want to be able to use gcc and avrdude to compile and program my ATmega328.
I followed this Ladyada tutorial: Ladyada AVR Tutorial
Everything installed ...
0
votes
0answers
26 views
arduino mega end eclipse communication error
I have arduino mega and a working project on eclipse.I can not communicate with avrdude.I get error at the read of the mcu signature.
I have used all programmers (arduino,stk500v1 and v2) at 57600 and ...
1
vote
1answer
44 views
Using the Arduino SDK with any AVR?
If I grab any Atmel AVR-based microcontroller off the shelf, will I be able to write code for it using the Arduino SDK?
0
votes
0answers
15 views
Compatibility of Atmel AVR32 AT32UC3C & AT32UC3A
I am looking at the AT32UC3C MCU for an application which requires CAN. I would like to plan on prototyping my application using the AT32UC3A via the EVK1100 evaluation kit.
Would my solution be ...
1
vote
1answer
42 views
AH276 hall effect sensor with microcontroller (sensor already in circuit - brushless fan)
I'm currently trying to read an AH276 hall effect sensor using an AVR microcontroller. The sensor is built-in in a brushless fan I'm using and it's operating as the fan's controller. The sensor has ...
3
votes
1answer
80 views
PIR sensor triggered by itself when using timer, works without timer
TL;DR
A PIR sensor is triggered by itself when using a timer to wait 2 seconds after the sensor is triggered.
Without using the timer to wait the sensor works as expected.
Background and setup
I ...
-4
votes
1answer
49 views
AVR Timer1 - OCR1A [closed]
Hy.
I want to make a programm who must realize the next task : flash PORTD leds on every 2 second (2 second stay ON, 2 second stay OFF), using the OCR1A.
The frequency = 16MHz, prescaler = 256;
How ...
2
votes
2answers
144 views
Most efficient way to read analog signals in c++
I am new to AVR programming, and I am trying to learn the basic I/O with C++.
I am trying to find the simplest, most efficient way to read analog signals using the same function for different ...
1
vote
2answers
62 views
Minimum files for Atmega1284p AVR-GCC?
does someone have the minimum setup (ie. a 1284p Makefile and an example blink.c) for an ATMega1284p and AVR-GCC? I seem to be ...
3
votes
0answers
55 views
Programming an ATmega1284p with Arduino IDE and internal RC Oscillator?
I'd like to program an ATmega1284p with my AVR Dragon and the Arduino IDE. So far I have installed mighty1284p (http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/), after writing my ...
3
votes
2answers
102 views
Use PWM and ISR at same time on AVR
Is it possible to use AVR PWM outputs and ISR interrupts at the same time?
I've got a project I'm trying to do on an ATMega328P and I need 3 PWM outputs but ALSO need to be able to use ISR interrupts ...
0
votes
3answers
129 views
Passing Parameter on ATMEGA128?
I don't understand on passing parameter on ATMEGA128 and AVR Studio 6,
I tested this function and working find
...
3
votes
3answers
86 views
Variable Frequency on AVR Chip?
I am looking at programming an AVR chip as a possible avenue due to some problems I'm having with 555 circuitry, but I need to be able to adjust the frequency on the fly with a pot. Is it possible to ...
1
vote
0answers
52 views
Program to simulate seven segment display in atmel studio
I am using Atmel studio for the programming of atmega64 microcontrollers with a Cerebot board II.
Firstly, is there a program that can simulate a seven segment display device as if I was looking at ...
0
votes
1answer
61 views
Error While trying the program my ATMega16a with extreme burner
Whenever, i want to burn the hex file on my chip, always an error message appearrs,
Power On Failed
Cannot communicate with target chip
The programmer i am using is AVR USB programmer, ...
0
votes
0answers
50 views
Servo controlled by potentiometer using atmega328
I'm trying to control a servo using a potentiometer. I'm using an atmega328p with internal 1Mhz. The servo is on OCR1A and the potentiometer is on ADC0. I'm getting a 50Hz PWM on OCR1A but it ...
4
votes
1answer
155 views
Atmel AVR assembly language multiplying by 2
I'm trying to multiply a 32-bit unsigned number by 2 across registers r18, 19, 20 and ...
3
votes
1answer
63 views
Storing info bytes in ATmega169PA that remain after reprogramming
Does anyone know if there is a way that I can store 2 bytes of data into an ATmega169PA that will survive re-programming of the device? I would like to store a unique ID into an ATmega169PA that will ...
0
votes
0answers
29 views
avrdude - stk500_cmd(): programmer is out of sync [duplicate]
I am trying to upload a hex file using the ISP sketch on my Arduino to use it as a programmer to program my ATtiny85, but I keep getting error messages from avrdude. After some researching I figured ...
0
votes
0answers
33 views
Which programmer can be used with Matrix flowcode programming package?
I am trying to progam AVR chips using Matrix Flowcode package. Does anyone know which programmer can directly be interfaced with it?
1
vote
0answers
73 views
avrdude error - stk500_paged_write() protocol error
I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
1
vote
2answers
116 views
avrdude error - stk500_getsync(): not in sync: resp=0xff
I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
2
votes
2answers
109 views
Simplest AVR programmer
I recently fried my AVRISP MKII programmer, so I am looking for a new programmer. What is the best AVR programmer according to the following criteria:
Out of the box use
Works well with Ubuntu
Easy ...
2
votes
2answers
81 views
Why does my AVRISP MKII Programmer not work?
I am using Ubuntu and I am trying to upload a hex file (called src.hex) to my ATtiny85 with my AVRISP MKII programmer with avrdude. But I get a strange error. I run ...
1
vote
0answers
35 views
avrdude - Set programmer's path [duplicate]
I am trying to upload a hex file to my ATtiny85 with my AVR ISP MKII programmer. But avrdude says it cannot find my programmer. How can I find where my (USB) ...
3
votes
1answer
94 views
Error while uploading hex file to AVR uC
I am trying to upload a hex file to an ATtiny85 from Ubuntu by running these commands:
...
2
votes
1answer
105 views
ADC of ATmega32
I want to use an ATmega32 ADC in its 4 channel single-ended mode to convert four analog signals into digital (one at a time). I have written the C code but what I cannot figure out is what I should do ...
4
votes
3answers
166 views
Difference between reading PORT and PIN
What is the difference between reading PORTA and PINA?
What is the relation between a port and its pins?I'm really confused!!!
sample of reading PORT:(reading pin is not useful here)
Assembly
f=1MHZ
...
-3
votes
1answer
104 views
Is there a non-gas assembler for AVR for Linux? [closed]
I need to do an entire project in mostly-time critical code. Using assembly seems like a good idea. I've seen quite a few example assembly files and such which have an "Intel" feel to them. I know ...
2
votes
2answers
140 views
Understanding volatile class fields in AVR C++ programs
I'm having some confusion about what members to declare volatile in a program I'm writing in C++ for an AVR microcontroller, with interrupts. When it's plain C it makes sense - the compiler doesn't ...
6
votes
3answers
258 views
Switching from PIC to AVR [closed]
I have worked with PIC16 and PIC18s for over three years now and would like to get to know AVR as well. I have no specific project in mind, but would like to try around with the different ...
1
vote
1answer
68 views
How to power a 12v outdoor project with microprocessor?
Forgive me if this is a really basic question, but I'm still at the "consideration" stage of a basic LED project, thinking about lighting up one of those flexible LED strips from a microcontroller ...
2
votes
1answer
68 views
Fuse settings in ATmega128 Micro controller
I am working with ATmega128 board. The datasheet states
ATmega128 is by default shipped in ATmega103 compatibility mode
In ATmega103 mode, the MCU both serial communications cannot be used and ...
0
votes
1answer
69 views
Why Atmel TWI doesnt support I2C START BYTE on TWI?
I would like to know why Atmel TWI doesnt support I2C start byte.
I am reading the AT32UC3C2512C datasheet on the TWI part, and I can see it doesnt support the START BYTE from I2C (it's on page 698), ...
5
votes
1answer
163 views
AVR Pin Dual Use: Input and Output at (seemingly) the same time
I have been working on a few different versions of a bicycle light control circuit which reads in various buttons and sets various outputs accordingly such as headlight, taillight, blinkers, etc.
My ...
2
votes
1answer
54 views
Wiring optical incremental encoder
I'm trying to connect an optical encoder (Bourns EN series) to AVR microcontroller, and a few things are not clear for me from the datasheet.
At first, datasheet says that the maximum supply current ...
0
votes
1answer
83 views
Understanding a circuit label in ICSP programmer for atmega
I am completely new in electronics. I wanted to make a programmer (or burner) to burn my program in my Atmel16a microcontroller. I found a circuit on the internet:
(source)
Everything is clear, ...
3
votes
1answer
11 views
2
votes
2answers
160 views
Compare AVR programming tools
I am dealing with PICs for some time and now I want to learn how to use an AVR. I have 2 MCUs in here, the AT32UC3C2512C-A2UT and the ATXMEGA32A4U-AU but I still dont have any programming tools.
In ...
8
votes
2answers
287 views
AVR - How to program an AVR chip in Linux
I recently got an AVRISmkII AVR programmer, and I have an ATtiny85 and ATmega328. I was wondering how I could program these chips (with the programmer) but when I try getting Atmel Studio 6 it is only ...
-2
votes
1answer
49 views
Choosing a good 4+ pin connector/cable for connecting AVRs [closed]
I'm working on a project where I2C and power is passed between multiple devices and am trying to select a good choice of connector/cable to use between devices which will be daisy chained.
The key ...
5
votes
5answers
356 views
Microcontrollers - Beginner questions
How do you determine how many sensors a microcontroller can use?
My understanding is you can't use C# directly on any microcontroller but you can use C# and communicate over the USB and look for a ...
1
vote
1answer
151 views
Unable to upload arduino sketch to Uno using AVR ISP MKII and Ubuntu 12.04
About a week ago, I tried to use my Arduino Uno to program a a standalone atmega328p with optiboot. Not only was I unsuccessful, but now I can't upload sketches to the original atmega chip. The "L" ...
4
votes
2answers
16 views
How can I control things without using delay?
I have always hated that you couldn't do other things unless you used the delay(); function. However, I want to blink a LED or do whatever while using serial, but ...
2
votes
2answers
123 views
Arduino w/ Atmega328: can't clear the watchdog
I'm using the onboard software watchdog facility of an Atmega328 like documented here.
My purpose is to limit to 2 seconds the execution of a portion of code that could lead to endless computation.
...
0
votes
1answer
69 views
Converting AVR assembly to machine code - addressing registers?
In AVR Assembly - I want to work out the machine code representation of the following:
ANDI r18,$10
I know the opcode for ANDI is
...
0
votes
1answer
63 views
AVR programming and corresponding machine code
This is a question on a hand out, it asks:
What is the machine code that corresponds to the AVR Assembly Language Instruction inc r22? Enter your answer as a 16 ...
-2
votes
1answer
58 views
Software for AVR Prototype [closed]
I am having a project using ATmega8 to control alarm using SMS.
How can I make a software to change some code that have been programmed into microcontroller before ? Or maybe how to control the ...
1
vote
1answer
37 views
How to flash error if a macro is not defined in program
I want my program to flash compile time error like "LCD_PORT not defined" if it is not defined in program itself. For that I modified the header file like this
...