Questions tagged [atmel]

DO NOT USE THIS TAG. Instead use the relevant product tag, such as AVR, SAM etc tags. Besides, Atmel merged into Microchip in 2016, so still referring to your parts as "Atmel" is not very meaningful. Atmel Corporation (Nasdaq: ATML) was a leader in the design and manufacture of microcontrollers, capacitive touch solutions, advanced logic, mixed-signal, nonvolatile memory and radio frequency (RF) components.

DO NOT USE THIS TAG. Instead use the relevant product tag, such as AVR, SAM etc tags. Besides, Atmel merged into Microchip in 2016, so still referring to your parts as "Atmel" is not very meaningful.

Atmel Corporation (Nasdaq: ATML) was a leader in the design and manufacture of microcontrollers, capacitive touch solutions, advanced logic, mixed-signal, nonvolatile memory and radio frequency (RF) components. Atmel was acquired by Microchip Technology Inc. (Nasdaq: MCHP) in 2016.

621 questions
0
votes
1 answer

Programming bootloader section of flash with avrdude is slow

When programming the bootloader section of flash memory in a ATmega 8-bit processor, specifically the ATmega128, AVRdude is rather slow. All I want to write is the bootloader section of memory, which is in the upper addresses of flash memory. …
BMiner
  • 16,669
  • 12
  • 53
  • 53
0
votes
2 answers

Pointers list going wrong

I want to be able to access the arrays and variables with pointers. So I made an array of pointers to those arrays and variables. But it doesnt seem to compile right. Where do I go wrong? (c++, atmel, avrstudio) volatile uint8_t lfo1Clock =…
0
votes
1 answer

Writing bits to a port in C

Using atmel studio to write some beginner C for an atmega64 micro controller. To start off I wanted to read values from PINA, one's complement the values, write them out on PORTC. Started off with #include int main(void) { DDRA = 0x00;…
Sim
  • 570
  • 1
  • 10
  • 22
0
votes
1 answer

Moving average algorithm issue

I want to smooth values in realtime. For a reason this code seems to make the microcontroller(arduino - atmel) crash or not respond at least. This is my code float tilttemp[] = { 1,1,1,1,1,1,1,1 }; float rolltemp[] = { 1,1,1,1,1 }; float pantemp[] =…
Brutus Cruciatus
  • 404
  • 3
  • 18
0
votes
1 answer

request for member 'isr_status' in something not a structure or union

I am trying to use an example Atmel code on ADCs. It is posted here. http://asf.atmel.com/docs/latest/sam.drivers.adc.adc_example.sam4s_ek2/html/sam_adc_quickstart.html However, the code: void ADC_IrqHandler(void) { // Check the ADC conversion…
Jesse RJ
  • 217
  • 4
  • 17
0
votes
1 answer

expected unqualified-id before '{' token Error with templates

I am currently trying to integrate a library (IsoAgLib) into my CPP project. I am not deeply experienced with CPP. The error I am getting is: "expected unqualified-id before '{' token". I believe it has something to do with templates as I have come…
Ryoooon
  • 3
  • 4
0
votes
1 answer

Setting An ADC sample rate. trouble reading datasheet

I am currently working an atmel micro controller, the EVK1104s, which house the UC32 Data Sheet. We have actually planted this chip on a custom PCB and are inthe process of writting more firmware. Currently, I need to tell the ADC on the Micro…
Recurrsion
  • 231
  • 3
  • 13
0
votes
0 answers

Register access in ATMEGA32 & Debugging of Serial Communication Atmel Studio

I am working upon ATMEGA32 and programming it with the help of Atmel Studio 6.0............. In ATMEGA32, there are 32 general purpose registers starting from R00 to R31........but how can i use those registers directly in c language in Atmel Studio…
Karan Shah
  • 1,912
  • 1
  • 29
  • 42
0
votes
1 answer

AVR allocating memory in class constructor

I'm using the Atmel AVR ATmega328p chip, and I'm trying to create multiple ring buffers, with varying lengths, using the FifoBuffer class, in file fifobuffer.h, which I created... class FifoBuffer { private: uint8_t buf_head; // Head…
jwhitney
  • 11
  • 4
0
votes
3 answers

C code to set i/o pins for ATMEL'S AT89C51 microcontroller

Can anyone help me on how to to set the I/O configuration in C programming. This is my code, I am using keil uvision4 as my ide to generate the hex file and isis proteus to model the circuit. When i try to use DDRA=0xFF and PORTA=0. I get the error…
flexxxit
  • 2,440
  • 5
  • 42
  • 69
0
votes
1 answer

Issue with using AVR TWI interface

I'm trying to access HMC5883L module using atmega2560. I've written a class (I2C) containing basic methods essential for I2C communication. First, I'll explain the problem. This is what I've done. int main(){ I2C i2c; //an object with basic…
Anubis
  • 6,995
  • 14
  • 56
  • 87
0
votes
1 answer

Programming an ATtiny84

I am designing a mobile device around an Attiny84 microcontroller and when I have looked up ways of programming it and making it run, I found that I would need a JTAG progammer. Could the Attiny84 be programmed by USB with something else like a 6…
user1922878
  • 2,833
  • 3
  • 13
  • 7
0
votes
3 answers

Error in atmel code?

This is my code in atmel 6 using c : #include #include #include int a[][][] initialize_hueristic(int[]); int main(void) { int goal[3],grid_size[3]; int i, j, k; int…
user1511111
0
votes
1 answer

PHP Socket programming to read data from MCU

Quick question, I am new to socket, so I was wondering is there a way to read data from a MCU (Atmel)? I'm running a Linux and I can connect an Atmel through RS232, or USB to my computer(server). Is there a way that I can directly read the data that…
Bobby
  • 31
  • 10
0
votes
2 answers

AVR Samplecode Explanation please

From http://www.electronicsplanet.ch/mikrocontroller/source-code/ATMega16/ATmega16-ADC-Interrupt.htm I tried the initialisation of the AD of the mega16. It works, but the line ADCSRA |= (1<