3
votes
1answer
62 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 ...
1
vote
1answer
146 views

Pointer Size using eeprom.h with ATmega328p in AVR-GCC

I am working on a project that randomly reads and writes large blocks of data from EEPROM, based on user input. I have used the EEPROM before, but I never really thought about this. In the operations ...
-1
votes
1answer
260 views

Programming a Baby Orangutan using Arduino Uno?

I have the following setup: Arduino UNO without the chip: Notice that the Atmel chip is missing. And i have a Baby Orangutan: The orangutan burned with Arduino Uno R3 Bootloader. I connected ...
0
votes
2answers
544 views

How to get data from one micro controller to another using UART

My concept is I have two designed boards, One with AT90USB1287, other with ATmega32A both are working properly. AT90USB1287 is talking to the PC via USB. ATmega32A is talking to the PC via ...
-4
votes
2answers
191 views

problem with reading values in case

I am using ATmega32-A microcontroller and CodeVisionAVR compiler. I am able to read values from an AD7798 external ADC successfully. I am also generating wave from with an AD9833 using SPI ...
1
vote
2answers
295 views

Analog to digital conversion

I am using an Atmega32-A microcontroller and an AD7798 external ADC. I am able to set the ADC registers and read back ADC values. I have written the following code: ...
0
votes
1answer
137 views

Loop is executing infinite times

I am working with an ATmega32-A microcontroller. Using USART communication, I am displaying data on monitor and am using switch case to select different commands. In one of the commands I have written ...
2
votes
1answer
185 views

Problem with while loop

I am trying to read external ADC AD7798 values using ATmega32-A controller. In the datasheet, Status register Bit 7 (SR7) indicates the conversion is finished or ...
8
votes
3answers
964 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 ...
1
vote
1answer
117 views

problem with printing function return value

I am new to programming. I have small doubt, I know this is simple question but I am confused. I have the following function: ...
4
votes
1answer
146 views

Final steps in device manufacturing - AVR programming and board assembly

After I have prototyped my circuit and built AVR code for a device I want to sell, how do I go about getting mass production done? Will a PCB manufacturing and assembly shop be able to take the ...
0
votes
1answer
250 views

Is it possible to use openocd to program an atmega using an AVR ISP (mk2)?

I have an ATMega2560 on a custom board which I want to program with my AVRISP mkii. I have successfully programmed it using the Arduino IDE, and also over the commandline using avrdude. Is there a ...
0
votes
1answer
457 views

How to setup defines in AVR Studio 6.0

Like basic C language I tried making a define as follows ...
0
votes
1answer
312 views

Write an AVR Program

So I saw a post talking about the commercial feasibility of an Arduino (http://electronics.stackexchange.com/questions/11333/commercial-use-of-arduino-is-it-suitable) . From this it said a great idea ...
1
vote
2answers
521 views

Am I able to burn a bootloader and program with an AVR ISP?

I have considered purchasing some ATMega chips as to create simple realizations of projects without sacrificing a dev board (i.e. Arduino) Now I understand the bootloader is required to read from a ...
0
votes
1answer
457 views

Is possible to compile and programme ATtiny10 with AVR CrossPack?

For my next project, I would like to use ATtiny10, but I have computer only with Mac, so I cannot use AVR Studio. Can I use AVR CrossPack for programming this microcontroller? I found this article ...
9
votes
5answers
6k views

ATTiny13 — avr-gcc Hello World uses over 100 bytes?

I'm trying to write a program for the ATTiny13. My problem is that it has huge size constraints. Well, when making my first Hello World program, it took 100 bytes of program space just to make a light ...