Questions tagged [atmel]

Atmel is the creator of microcontrollers like the AVR line (ATMega and ATtiny) and SAM devices. Arduino microcontrollers use Atmel's AVR line of devices.

56 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
329 views

How to include paths for the C compiler in atmel studio?

I have a folder project and it consists of multiple folder and .c and .h files what is the best way to include them all without including the individual folders?
3
votes
1answer
108 views

Atmega168 USART RX Interrupt does not trigger

I have been trying to get the USART RX interrupt trigger working on my ATmega168A using the tutorial here (updating my registers as per the datasheet): Tutorials I have setup the system to use a ...
2
votes
0answers
66 views

Atmel AVR ADC Inconsistent Sampling Time

I'm running an ATMega1284 at 20MHz. I've set the ADC up in free running mode as such: ...
2
votes
0answers
79 views

Does ATMEL SAMA5 SPI rely on NSS for byte alignment when configured as slave?

I am using the Atmel SAMA5D2 SPI interface configured as slave to communicate with an external device that insists on being master. I'm uncertain of the role of the NSS signal in this case. In a ...
2
votes
0answers
455 views

Atmel Studio: redefine weak function

I want to write my own implementation of SERCOM3_Handler. I put its definition in my main.c, try to compile it and get "multiple definition of SERCOM3_Handler" error. Why is this happening? The ...
2
votes
0answers
483 views

Atmel Studio JTAG Debugger Behaviour

The qeustion: I would like to know what is different about the way JTAG treats the "step over" and "step into" commands. Background: I am trying to set a GPNVM bit on a SAM3N (ARM Cortex M3) chip ...
1
vote
0answers
949 views

Programming the Atmel Mega 328P-AU 32 MLF (QFN) using the Arduino ISP

I have successfully managed to program both a (DIP)Mega168A-PU and a (DIP)Mega328PU using another (DIP)Mega328P-PU ISP. This is the configuration that works for both DIP formats (168A-PU & 328P-...
1
vote
0answers
195 views

Wrong I²C signal for some bytes on Atmel microcontroller

In theory I want to start I2C communication as a master with a slave. Then I need to read 5 bytes of data. In practice when I use the ASF provided by ATMEL what it does is start the communication as ...
1
vote
0answers
247 views

Cannot use particular pins in SAMD21 as Digital Output

I have moved to Atmel from a run I had with MSP430 series and a tad bit confused at the moment as the pin setup seems quite different. While handling an SPI device I needed a general IO pin to ...
1
vote
1answer
243 views

Atmel ATxmega128A identical boards - one fails to enter programming mode

I have two identical boards both equipped with ATxmega128A. I am using Atmel-ICE for programming using PDI Interface. The first board, I can read the device signature without any issues. On the ...
1
vote
0answers
261 views

Atmel ARM, USB, and an SD Card as a MSD?

I'm currently trying to run the SAM L21 as both a CDC and an MSD over USB. Thankfully there is example code here to get me started. I can move files into the on-board ram just like any other storage ...
1
vote
0answers
392 views

Flashing MCU using JTAG ICE 3 / Avrdude / Beagle Bone Black

I am in need of flashing ATmega1284P using Beagle Bone Black. I have JTAG ICE 3 connected via USB cable to Beagle Bone Black with Debian GNU/Linux 7 (wheezy). I have compiled version of Avrdude 6.1 ...
1
vote
0answers
71 views

AT91SAM7A3 not in kit list in Atmel Studio 6.2

I am trying to use Atmel Studio 6.2 and Atmel ICE to program AT91SAM7A3, but I could not find AT91SAM7A3 in the kit list of Atmel Studio 6.2. What should I do next if I want to load my code in ...
1
vote
0answers
115 views

DAC via I2C: detect error conditions

We are using a MAX517 DAC-device as slave and an ATmega8535 controller as master. Communication errors can be readily detected by comparing (TWSR & 0xF8) with 0x08 for Start, 0x18 for address ...
1
vote
0answers
1k views

Atmega32 can't verify after setting correct fuses for external crystal. HELP

I am having trouble with some Atmega32A's purchased off from eBay. The MCU's does not seem to be fake as they are functioning properly. I am experiencig the following problem: I want to use external ...
1
vote
0answers
522 views

Debug 2-Wire Serial Interface

How can I debug I2C in Atmel Studio (latest)? I have enabled it as shown inside the I/0 View with TWEN and ...
1
vote
0answers
197 views

SDRAM timing requirements

I am interfacing a Micron MT48H16M32LFCM-75 SDRAM with an Atmel AT91SAM9G20 and I need to verify on paper (as far as possible), that the timing specifications between those two devices are compatible. ...
1
vote
0answers
340 views

Issues with AVR atmega32a

I'm following this tutorial: http://pdp11.byethost12.com/AVR/ArduinoAsProgrammer.htm I saw elsewhere, and I simply can't get it to work. I've connected the 10,11,12,13 pins exactly as shown in the ...
1
vote
0answers
726 views

Atmel Software Framework. Confusion with USART example

I'm trying to get the following basic USART example working on a SAM4S: http://asf.atmel.com/docs/3.4.1/sam4s/html/sam_usart_quickstart.html#usart_basic_use_case I am using a custom PCB board with a ...
1
vote
1answer
44 views

ATtiny USB data interrupt

I'm trying to use an ATtiny88 to detect data on a USB line. I have an USB data connection going to a hub and a secondary system and I want to use the ATtiny to detect if any peripheral hardware has ...
1
vote
2answers
568 views

Understanding differential ADCs and reference voltages

The Setup: I am currently prototyping a wheatstone bridge setup to measure small resistance changes. I don't have the sensor I'll be using yet, so I've simulated it using trim pots. I am using a ...
1
vote
1answer
453 views

JTAG, OpenOCD and Atmel SAM3X

I'm trying to set up OpenOCD debugging through a JTAG port on a custom board with an Atmel ATSAM3X8E microcontroller. OpenOCD is running on a Raspberry Pi using the bcm2835 native GPIO. The JTAG ...
0
votes
0answers
26 views

Generating PWM at pin PD5 of ATmega328P

I am beginner to ATmega328P programming for PWM generation. I am trying to generate a PWM wave at PD5 pin the datasheet says PD5(OC0B/T1/PCINT21). When I generate the PWM with help of timer0 overflow ...
0
votes
0answers
18 views

ATMEGA128 & AD7417 Reading first channel using external reference voltage

I'm doing test work in Proteus ISIS. Where in circuit used External ADC, but there is no modeling module in the proteus. And i can't test it. This ADC using TWI(I2C) interface. ADC connection circuit: ...
0
votes
0answers
26 views

Mega2560 in circuit high voltage serial programming

Following my other question on a bricked Mega2560 I discovered that I probably locked-out myself with improper fuses values, and that high voltage programming could be the way to recover a working ...
0
votes
0answers
36 views

Bricked Mega2560 - avrdude gets only zeroes

On a Creality CR-X 3D printer (mainboard based on Atmel Mega2560-16u), an upgrade of the firmware had first failed before end when uploaded by Cura slicer via USB. After the fail, the printer became ...
0
votes
0answers
50 views

Atmel SAM3X / SAM3A, handle interrupts from Parallel Input/Output Controller (Peripherals)

I want to enable the PA8 pin in a processor (Atmel SAM3X / SAM3A). I have set: PIOA_MDER[7]=0 PIOA_MDDR[7]=0 PIO_OER[7]=0 PIO_ODR[7]=1 so that the tri-state ...
0
votes
0answers
11 views

OPENOCD: Flashed code doesn't persist after reset

I have a SAM4E-Xplained-Pro Board. Everything works ok with atmel studio. I'm trying to set a development environment with openOCD. I was able to load and run my code through gdb, but after resetting ...
0
votes
0answers
35 views

ATmega168 versions for low power applications

I am interested in using an ATmega168 for a simple application, which has however very strict power limitations. As a result, the important thing for me is to find the version with the least power ...
0
votes
0answers
30 views

SPI implementation stuck on “while(!spi_is_tx_empty(WINC1500_SPI));”

I'm currently implementing a driver for the WINC1500 to be used with an ATMEGA32 MCU and it's getting stuck on this line of "while(!spi_is_tx_empty(WINC1500_SPI));". The code builds and runs but it ...
0
votes
0answers
26 views

AT91SAM7S512 Oscillator, GPIO, & Reset questions

I just need some clarification of my circuit Oscillator: So for my circuit I want to be able to program it via USB, the datasheet gets a bit confusing to me tho. If I read the datasheet correctly I ...
0
votes
1answer
24 views

Triggering event from timer compare channel on ATXmega when timer is set to single-slope PWM mode

I am writing firmware for an ATXmega. I have a timer configured in single-slope mode to output a PWM signal. I need one of the xmega's event channels to trigger in the middle of that signal. I thought ...
0
votes
0answers
30 views

No ethernet connection with Atmel Start example with custom board

I want to use the Atmel Start ethernet example with my custom board what contains the Atmel chip ATSAME70Q21A-AN and Ethernet Phy KSZ8041TL. To test the ethernet connection on the board I used Atmel ...
0
votes
1answer
60 views

Qtouch with non-Atmel microcontrollers

Simple question really. Can I use Atmels Qtouch library with non-Atmel MCUs (such as an STM32)? It seems like Atmel has a solid line of capacitive touch ICs, ...
0
votes
0answers
24 views

ATM90E32 Energy representation and calibration

Thanks to this forum I just understand how this ATM90E32 represents the energy data as [ CF ] but now I have a more kind of complex issue... Now the energy registered by the ATM90E32 is not similar ...
0
votes
1answer
64 views

Do UART RX interrupts require support from the transmitter?

I'm trying to understand why I am seeing RX interrupts when tying RX to TX of my SAMR34 but not when I connect it to the transmitting device. The transmitting device notes the following restrictions: ...
0
votes
1answer
41 views

Potential causes of Atmel “system” failure after reflash with same binary

I'm working on a small "cartridge"-like subsystem which attaches to the main device via a 20-pin connector. On the cartridge, there is an ATmega16a microcontroller and an AT45DB081D flash. I needed ...
0
votes
1answer
60 views

Does Attiny13 pull a lot more current in sleep mode than Attiny85 or did I do something wrong?

First off here is the code I have tested on both Attiny13A and Attiny85V: ...
0
votes
2answers
124 views

Which pins should i use to connect watch crystal for powering Low Frequency Crystal Oscillator in ATmega328p?

If i want use a watch crystal(32KHz) with Low Frequency Crystal Oscillator of ATmega328p,Which pin should i connect the crystal to? Should i connect the crystal to XTAL1,XTAL2 pins of ATmega328p or ...
0
votes
1answer
33 views

Is 128KHz oscillator in ATmega same as Watch Dog Oscillator?

Where is the 128KHz oscillator located in ATmega328p? I am unable to find it on the ATmel data sheet ,Is it same as watch dog timer Oscillator? I am attaching the clock section from the ATmel ...
0
votes
0answers
112 views

Problem with using Timer Counter interrupt on Atmel ARM

I'm using an ATSAM4E16C microcontroller and i need to get a 1 millisecond tick. I want to implement this using the timer counter module to trigger an interrupt. The clock frequency is 96 MHz, so using ...
0
votes
0answers
34 views

Nucleo F446RE - No SPI response while transmit is working as intended

I'm trying to read some registers of an Atmel AT86RF233 transceiver via SPI with a Nucleo F446RE development board. As stated on the title, whenever I send anything through MOSI, the transceiver doesn'...
0
votes
1answer
79 views

Options for debugging MCU that is freezing/crashing (AVR32)

Im currently trying to figure out why it seems like a MCU is crashing/freezing. I can recreate the crash/freezing almost everytime by doing the same procedure, and i have been looking through the code ...
0
votes
1answer
113 views

ATmega stopped working after changing CKDIV8 fuse

I have ATmega32U4. I connected it via SPI programmer and in Atmel Studio I have read their signature properly. It was working. Then I cleared and programmed CKDIV8 fuse. Clock was set to internal RC. ...
0
votes
2answers
67 views

How to view the output of this microcontroller/FPGA?

I am using a motor controller board from an Asian company. It has an Atmel AT91 and Cyclone II chips on it. While I have basic experience in using some microcontrollers (PIC, Arduino) and know the ...
0
votes
0answers
348 views

Atmel ice Connection Issue with “device signature”

I have recently got a atmel ice and am having trouble programming it. I have been trying to connect it a attiny2313-PU. I am confident that I have wired it up correctly. The problem is when I look for ...
0
votes
0answers
123 views

Data upload LED on SPI MOSI line

I'm attempting to make my own ISP programmer for an Atmega168-20PU. For the sake of learning I want to have an LED flash as bits are being flashed to the chip. If I use an SMD LED 0603 size, in series ...
0
votes
0answers
56 views

Atmel AT90USBKEY2 delay wrong before dropping power

When I program my AT90USBKEY2 with dfu-programmer, the delays are wrong until I restart the board by unplugging it. ...
0
votes
0answers
68 views

QT600 Under Atmel Studio 7

Using the QT600 development kit under Studio 7 in order to develop a touch interface, I can not get the kit to show up when not in programmer mode. I've managed to write the example HEX onto the ...
0
votes
1answer
395 views

ATMEGA328p LED Example not working

I tried to build a test circuit based on the Book "AVR Programming". It is very simple and shown here: The circuit itself is working and the upload of my code as well: ...