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.

Filter by
Sorted by
Tagged with
0
votes
0answers
47 views

ATmega168 TQFP vs. 28DIP - different behavior after programming

I have developed a program for ATmega168 using Atmel Studio 7.0 and Atmel-ICE as debugging interface. The development was done on a 28DIP package, since it's easy to work with it on a breadboard. ...
0
votes
0answers
29 views

ATSAME70Q21 at 1.8V — cannot program flash memory

A recent revision of a board based on the ATSAME70Q21 (a Cortex-M7) is exhibiting problems. The previous revision of the board had been working for quite a while. [EDIT] The exact part number as it ...
2
votes
4answers
2k views

What are some reasons my atmega32u4 loses program when disconnected from power?

I have two different boards running the same code with the same chip (ATMega32u4). Problem Summary THe problem is that the 2nd board seems to lose the program that has been flashed to the chip if it ...
1
vote
1answer
255 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
2answers
39 views

Atmega32u4 Send Keystrokes

Is there a way to send keystrokes from an Atmel atmega32u4 or similar without using the arduino library? I am planning on making a 2 or 4 key macropad with volume, resume keys, etc.
0
votes
1answer
155 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
1answer
73 views

What is the best way to program an Atmel ATtiny9?

I am researching some PIC and ATMEL microcontrollers and came across the ATTINY9. What are some common ways of flashing this chip with a program?
0
votes
1answer
134 views
4
votes
1answer
180 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 ...
0
votes
2answers
582 views

atmega328pb mcu gets bricked after uploading bootloader

i have a strange problem, maybe this post will be long, but i try to give all the details: i’ve designed a pcb with smd components, around the atmega328pb mcu. it uses an external 16mhz clock and has ...
0
votes
1answer
99 views

Ethernet Communication with Microcontroller

I am trying to make Ethernet communication with MCU. To make this happen, I need MCU(in this case AT89C2051), Ethernet Controller ( ENC28J60), and a RJ45. However the microcontroller that I selected ...
1
vote
2answers
896 views

How does Atmel's XMEGA numbering scheme work?

Atmel has several series of XMEGA chips. How does the numbering scheme work?
1
vote
0answers
40 views

Problem SAMD21 : ASF4 USB CDC Echo example cdcdf_acm_write() doesn't allow to send data to usb port

I'm using the USB_CDC Echo Example for Atmel start, for ATSAMD21G18A. the code example runs Ok, but when I try to modify the code in order to send data "Hello World" in the infinity while ...
1
vote
2answers
196 views

Which pins should I use to connect a watch crystal for powering a low frequency crystal oscillator in ATmega328p?

If I want use a watch crystal(32KHz) with the low frequency crystal oscillator of an ATmega328p, which pin should I connect the crystal to? Should I connect the crystal to XTAL1,XTAL2 pins of ...
6
votes
3answers
13k views

Finding the source of a Hard Fault using extended HardFault_Handler

I have been hitting some hard-faults on the firmware I have created with FreeRTOS on a SAMD21 (ARM Cortex-M0) MCU. So I took a further action to find out the cause and eventually bumped into this ...
1
vote
2answers
173 views

Method to find out if Microcontroller IC is counterfeit

To practice my SMD soldering skills and to try out stuff (self taught hobbyist level) I purchased various ATMega uC chips from Aliexpress. I know you never know what you get that way (usually what you ...
3
votes
1answer
842 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?
0
votes
1answer
40 views

External clock input for Atmel SAMD21

Is it possible to use a 32.768kHz square wave, such as the output from the DS3231 RTC, as an input for something like the SAMD21 microcontroller? I would rather not have to add a crystal to my design ...
0
votes
0answers
173 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 ...
1
vote
2answers
111 views

First SMD Design Comments / Input before Manufacture

Just designed my first "real" PCB that I plan to send out for manufacture in the next day or so. I've milled out a few on a 3018 CNC. I wanted to do this one that way as well, but realized ...
1
vote
0answers
65 views

Considering trying Atmel SAM and have some questions

I've been designing boards with STM32 chips for the last couple of years and my curiosity keeps saying that I should try something in the Atmel SAM line of chips. Most of the time, when someone asks ...
1
vote
0answers
72 views

What is this chip? Labeled “Atmel MC3G-04KI78-5”

I am unable to find any detail nor a datasheet about this component... Any idea? Cheers
0
votes
1answer
107 views

ATMEGA328P development board

I'm planning to make an ATMEGA328P development board. I'm new to electronics. Schematic is shown in the image. Please let me know it is correct or not, and please let me know if any changes or ...
1
vote
2answers
607 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
91 views

Programming Arduino AVR MCU with Atmel ICE

I have a question about programming Arduino with Atmel ICE. I am aware that the Arduino UNO has a ISP connection for ISP programming. If i'm not mistaken I should be able to plug in the ICE and ...
0
votes
0answers
12 views

SAMD20/21 development on Ubuntu without IDE

As someone who is trying to break away from high-level APIs for embedded development, I wanted to try out programming Atmel's (or Microchip's) SAMD20 or 21 mcus directly without any IDEs or tools ...
3
votes
1answer
101 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: ...
4
votes
6answers
1k views

Can an EEPROM be one-time-programmable?

I'm confused, and I hope you can help me figuring out, what I misunderstood. I am not an electronics engineer, so bear with me :) I have a chip, from the engine control unit of a Toyota Yaris Verso ...
0
votes
2answers
70 views

Potentiometer or momentary switch, how to better recognise what was connected?

I have a working circuit and I'm looking for cues on how to improve it. I'm building a device with a user controlled small stepper motor. Speed of the motor can be controlled by a pedal connected via ...
0
votes
0answers
41 views

EEPROM chip always toggling bit when reading

I have a parallel EEPROM, the AT29C020 (doc: http://pdf.datasheetcatalog.com/datasheet/atmel/DOC0291.PDF) In order to read it I'm using an ATMega8535 as it has enough pins. At first I thought reading ...
2
votes
3answers
4k views

How to configure Atmel SAM D20 for internal 48MHz clock source?

I try to run a Atmel SAM D20 MCU at 48MHz using the internal oscillator (OCM8M) and the digital frequency locked loop (DFLL48M). All I achieve is a deadlock of the processor, even I use a simple "...
0
votes
0answers
31 views

Atmega16U4 (Hardware USB) does not show up as DFU device on device manager

I am trying to get the Atmega16U4 to show up in windows device manager. Right now, when I connect the atmega16U4 through USB to the computer it does not do anything (does not even play the USB ...
0
votes
0answers
35 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
19 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: ...
1
vote
1answer
45 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 ...
3
votes
1answer
1k views

How to write a bootloader and drivers for ATtiny167

I am using an ATtiny167 Atmel chip on a custom PCB board I’ve designed. I prototyped the board with the sensors and a Digispark (Getting started, Upload Bootloader) as the ADC and serial connection. ...
0
votes
0answers
31 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
42 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 ...
1
vote
1answer
48 views

How to deal with “Brown on” slowly increasing voltage/current from solar panel to power mcu

With a solar panel powering an Atsamd21, I have the problem that the mcu will not boot correctly and gets stuck at some point. How can I deal with this? I thought of adding a large enough capacitor ...
0
votes
0answers
56 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
22 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 ...
1
vote
1answer
151 views

How to achieve an interrupt frequency of 100 kHz on SAM E70?

Setup: ATMEL Studio 7, ASF3.47.0, SAME70 XPlained eval board. In the minimum working example shown below, I use the onboard LED for visualizing if the timer and interrupt enabling have executed. <...
0
votes
1answer
73 views

Change the USB pins on SAMD21

I would like to use the pin mux in the SAMD21 mcu, to set different pins for the USB peripheral. The datasheet makes it sound like it is possible, but is very confusing. datasheet : https://cdn....
0
votes
0answers
39 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 ...
5
votes
1answer
3k views

Atmel Xmega PWM problem

I am trying to get the pwm working on the Atmel Xmega256A3BU. I am not getting the desired PWM on the port pin. Here's my initialization for the PWM generation in the code. ...
0
votes
1answer
79 views

ICSP + FTDI for ATMega328P

I want to have this "debug" header with 10 pins (I could probably get away with 9) and I am wondering if the DTR pin is ok to be filtered by a capacitor for ICSP. This is how I am sourcing these pins:...
2
votes
4answers
11k views

Output 2 PWM waveforms with 90 degree phase shift

So far, I was able to get two outputs at the correct resolution (35 kHz-75 kHz at a resolution no worse than 0.7 kHz) using the code below. I'm wondering, now, how I can get a phase ...
0
votes
1answer
260 views

1-wire in ATMEGA1281 problem

Could someone help me with something like this? I wanted to add DS18N20 thermal sensor (http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf) via 1-wire interface and when I'm trying to connect it ...
0
votes
0answers
34 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 ...

1
2 3 4 5
10