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

atmel studio start new project page is empty

I just installed atmel studio 7 and I can't make a new project, i even tried to use an example project, but the it gives the error project creation failed Here's what I get whenever I try to make a new project I dunno if that is relevant or not,…
Omar Awamry
  • 1,462
  • 3
  • 15
  • 29
2
votes
1 answer

AVR USB detect OS

I am programming a USB mass storage device using the Atmel AVR set of libraries making use of host HID drivers only. I would like to have some specific behavior based on if the device is plugged into a Windows machine vs a Linux (let's just say…
KDEx
  • 3,505
  • 4
  • 31
  • 39
2
votes
2 answers

Creation and addressing arrays in AVR Assembly (Using the ATMega8535)

I am having trouble with the creation and addressing of an array created purely in assembly using the instruction set for the Atmel ATMega8535. What I understand so far is as follows: The array contains contiguous data that is equal in length. The…
Daniel Dunn
  • 23
  • 1
  • 1
  • 5
2
votes
1 answer

The SoftwareSerial Library of Arduino, why it needs PCINT (pin change inturrupt feature.)?

The SoftwareSerial Library of Arduino don't work with clones made of ATMEGA32 as this do not have PCINT feature. How serial communication is linked with PCINT? can the INT pins of ATMEGA32/16 be someway used by the modification of SoftwareSerial.cpp…
user45603
  • 25
  • 6
2
votes
1 answer

Toolchain differences with alignment (why this even worked)

There is an ATMEL library that doesn't work with my toolchain (GNU tools for ARM) and I know why, but I don't know why it works for an old YAGARTO and I guess that also for KEIL and IAR I'm working in an ARMV5 processor (AT91SAM9) that doesn't…
LuisF
  • 33
  • 5
2
votes
0 answers

MFRC 522 with ATmega8. Mifare Classic 1K won't authenticate

I have a problem with an ATmega8 and Mifare RC-522 based NFC/RFID controller. I'm using this library and I've managed to read the UID of a card. However, I'd like to also read and write other parts of the card but whenever I try to use the…
PartyPete
  • 93
  • 1
  • 8
2
votes
1 answer

Atmel C Pin Manipulation Macros

So I have been programming in Atmel C for a while and I have gotten used to all the C bit manipulation, so now I want to hide it. I want to hide the bit manipulation not only to make my code more readable but also make it easier to maintain and…
Rob R.
  • 3,629
  • 2
  • 14
  • 12
2
votes
1 answer

How to get FATfs working on Xmega A4? Not sure what I should add or what file to edit

First of all, I have already been through http://elm-chan.org, and while it has helped me, it is a bit vague (in my opinion). I am attempting to read an SD Card with an Xmega128a4u using ASF (because the non-ASF way is too underground for me...).…
2
votes
2 answers

AT91SAM7X512's SPI peripheral gets disabled on write to SPI_TDR

My AT91SAM7X512's SPI peripheral gets disabled on the X time (X varies) that I write to SPI_TDR. As a result, the processor hangs on the while loop that checks the TDRE flag in SPI_SR. This while loop is located in the function SPI_Write() that…
Dor
  • 7,344
  • 4
  • 32
  • 45
2
votes
2 answers

Install ssh server on embedded device

I'm trying to connect to an embedded device through ssh. However, when trying to connect, I always get a connection refused message even when I try changing the port number. I've tried everything to resolve this issue, from changing the file in…
Adam
  • 2,384
  • 7
  • 29
  • 66
2
votes
3 answers

c function that returns different values on each call

I am working on the atmel programming and I am trying to make a program that has a function that returns a Boolean that is once true and the second time is false that depends on whether is it called before or not like it returns true the first time…
user3407319
  • 227
  • 2
  • 10
2
votes
2 answers

Atmel Studio executes instructions outside my source files

I'm trying to write and debug a C program for an ATMega8 device using the Atmel Studio Simulator. For example, let's say I'm trying to debug this piece of code: int main(void) { while(1) { SPI_transaction(0xFF); } } uint8_t…
Aldridge1991
  • 1,326
  • 6
  • 24
  • 51
2
votes
2 answers

Setting high speed PWM on ATtiny85

I am having trouble setting up high speed PWM on my ATtiny85. I need to use the PCK, at a speed of 400 kHz. I believe that I have followed the data sheet correctly, but for some reason, the timer interrupt flags are not working. If I program the…
zmink1
  • 55
  • 1
  • 8
2
votes
3 answers

Timers in Arduino Due

I am new to arduino (as a matter of fact to programming). I am thinking to use arduino due for my academic projects. While going through it's datasheet(SAM3X8E datasheet from Atmel) I came across timers, and it is said that all are 32bit counters.…
Janakiram
  • 119
  • 2
  • 6
2
votes
2 answers

How to control a motor with atmega 32 pwm

I have been for some time on how to control a motor (control its speed) with fast pwm mode with my atmega32. I need to use the 8-bit Timer0, because i have other uses for the other counters. I think I know how to inialise the timer for this…
user2149122
  • 171
  • 1
  • 3
  • 14