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
3
votes
1 answer

Why do we add an Offset when addressing DDRx ,PORTx in avr?

I recently started programming my Arduino (ATmega328p) using AVR and gained sufficient knowledge on using avr lib,instead of arduino IDE.I started with a blink led example. Then i tried the same eg but this time however i didnot include io.h or any…
darth
  • 169
  • 1
  • 16
3
votes
1 answer

SPI with Atmega32 and At42QT2100

I have a problem to communicate from an Atmega3216PU to a at42qt2100. The datasheets are: Atmega32PU16 and AT42QT2100 This is my code: #include #include #include #define F_CPU 16000000 #define UART_BAUD_RATE …
Bene
  • 636
  • 1
  • 8
  • 24
3
votes
2 answers

Unable to use ISR in xmega while using Atmel Studio C++ Build

Using Atmel Studio 6.2.1563, created an GCC C++ Executable build for ATXMEGA64A3U. Setup timer TCC1 to generate overflow interrupts every 1 millisecond. But compiler seems to ignore the ISR definition. ISR(TCC1_OVF_vect) { Cyclic_Do(); } In…
vijay
  • 56
  • 3
3
votes
2 answers

Recommend Attiny85 compiler/IDE

I need to compile C project for Attiny85 but not sure which compiler to use - free if possible. Is Atmel Studio a good choice?
i486
  • 6,491
  • 4
  • 24
  • 41
3
votes
2 answers

AtmelATAES132 Mac generation

I'm trying to authenticate against an Atmel ATAES132 Crypto Chip from a C++ application. To compute the MAC I want to use the Crypto++ library. The chip uses AES CCM to computes a MAC that is compared against a MAC I must compute in software. MAC…
Lamp
  • 131
  • 11
3
votes
1 answer

placing static library answer in the beginning of flash section

I'm using atmelstudio to compile a firmware image and want to place the functions from static libraries (including the gnu's libc.a & libgcc.a) in the beginning of the .text section followed .text belong to my project source code. Right now what…
Va1iant
  • 203
  • 3
  • 12
3
votes
1 answer

Empty While loop- Arduino

The following code prints some text once and waits for the interrupt to continue printing. The while loop is used to wait till the interrupt occurs. My issue is that the code works fine when a delay is added inside the while loop, but fails when…
mic
  • 1,165
  • 1
  • 9
  • 8
3
votes
2 answers

How to add a static library CppUTests to my project atmel studio

I'm using Atmel Studio 6.1.2 SP2. I'm setting up CppUTest for our embedded system project. I created a static CPP library for the CppUTest Framework which copiled successfuly after a small change. Now I'm including this library to a test project. A…
Snake Sanders
  • 2,641
  • 2
  • 31
  • 42
3
votes
2 answers

Use of memory in c++

I'm not sure how to pose this question, but here it goes: When programming on my Atmel MCU's in c++ I tend to mix the 'program'-variables and the 'user'-variables in the same datamemory. Which in time is a hassle because I want to make a few…
3
votes
3 answers

Why should I calibrate the oscillator in AVR programming

I'm new to AVR programming. I found a sample code on web; for a simple USART communication with PC. I have a little doubt there. The main loop starts like this; void main(){ OSCCAL_calibration(); USARTinit(); //start communicating with…
Anubis
  • 6,995
  • 14
  • 56
  • 87
3
votes
1 answer

Nexus7 USB host FTDI device not detected

I have a simple ATMEL micro-controller with an LED light on a board connected to a Nexus tablet through a FTDI-232 cable and a USB->micro-USB OTG cable. The device is not recognized if: 1)FTDI cable is connected to the board + micro-controller 2)The…
3
votes
1 answer

Beginner: AVR C++ Atmel Studio 6

I'm having an issue working out what libraries I have access to. I understand that I can use the Atmel Studio 6 IDE to program the microcontroler (Atmega328p) in C++; however, I can't work out where it is documented what libraries I have access to.…
Jean-Luc
  • 3,563
  • 8
  • 40
  • 78
2
votes
1 answer

Offset address of Binary files

I am using MPLAB to program ATSAMD20E15A. Now I have boot.bin and program.bin binray files generated. My question is: How do I find the offset address of both these binary images? Thank you and excuse me If the question is very basic since I am new…
SSR
  • 21
  • 3
2
votes
0 answers

how to convert float to string correctly in avr c

I need to convert a float value to a string in my avr project. Therefore I tried it with the following code: char buf[10]; float emg1 = 33.42; sprintf(buf, "%f", emg1); uart_puts(buf); But the output is only a "?". I tried to change the char format…
kaan5353
  • 67
  • 5
2
votes
1 answer

How long does this function take?

I am trying to figure out how long this assembly function takes on an Atmel ATmega162. The original code comments and namings suggest that it should create a delay of 10 µs, but I have my doubts about that. Unfortunately, I am inexperienced with…
Thern
  • 1,017
  • 8
  • 17