AVR is a 8- and 32-bit microcontroller core developed by Atmel. AVR was chosen as microcontroller for the popular Arduino SBCs.

learn more… | top users | synonyms

1
vote
1answer
66 views

Multiplexing AVR (ATMega328) PWM within Interrupts

I'm trying to take 3 common anode RGB LEDs and hook up the cathodes of each to three of the PWM outputs on an ATMega328p and then in an ISR, multiplex between them all. The problem I'm running into ...
1
vote
1answer
59 views

How can I find an AVR chip with built-in RF transceiver?

I'm going to build a couple of small devices that communicate wirelessly. To simplify construction, I've decided to look for a chip (preferrably on a breakout board) that combines a programmable ...
1
vote
1answer
78 views

Sending command using USART

I am new to this kind of communication. I am able to send command from PC to AT90USB1287 microcontroller as well as able to get response using USB communication. Now i have connected another ...
-3
votes
0answers
22 views

ATtiny861 Proteus VSM [closed]

Anybody have ATtiny861 ISIS design for Proteus VSM? I'm new to circuit design. I need to test is for FemtoOS.
0
votes
0answers
42 views

Serial Communication Using ATMega128L

I made a simple communication using atmega128. Is syntax for UART0 between atmega128 and atmega8535 different? Because when i used command "printf" and "putchar" on atmega128, it didn't work, but on ...
2
votes
1answer
41 views

LED remains off on ATmega16

I wrote this simple program: #include <avr/io.h> int main(void) { DDRA = 0xff; PORTA = 0xff; while(1) { } } When I program it to my brand new ...
2
votes
0answers
52 views

Problems programming Atmega328p with SainSmart USB ISP Programmer

I recently bought the SainSmart USB ISP Programmer. I'm trying to use the programmer, with WinAVR, to program an Atmega328P, but I'm getting an error: avrdude: warning: cannot set sck period. ...
3
votes
1answer
59 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
56 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
34 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
52 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
16 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
65 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
92 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
55 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
158 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
86 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
70 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
121 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
139 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
95 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
55 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
85 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
60 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
166 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
37 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
100 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
171 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
120 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
95 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
103 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
114 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
176 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
110 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
145 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
264 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
69 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
72 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
75 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
178 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
57 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
97 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
14 views

Tell if interrupts are enabled

Is there a way of telling if sei()/interrupts() or cli()/...
2
votes
2answers
170 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
295 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
363 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 2 3 4 5 10