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
1
vote
2answers
566 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 ...
3
votes
1answer
923 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
1answer
391 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: ...
0
votes
0answers
25 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
33 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
30 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 ...
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 ...
0
votes
1answer
110 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
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 ...
3
votes
1answer
105 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 ...
1
vote
1answer
41 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
46 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
2answers
121 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 ...
3
votes
1answer
247 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
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 ...
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: ...
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
43 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
10k 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
242 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
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 ...
2
votes
1answer
371 views

Atmel ARM Boot from MicroSD card

I studying the Atmel's ATSAME70Q19 Datasheet and i'm a little confused about boot operation mode from HSMCI. In Page 892, "38.11 HSMCI Boot Operation Mode" there's a reference which says: In boot ...
1
vote
3answers
133 views

How to access GPIO pins on Atmega with memory mapping?

I'm programming the Atmega328P in embedded C. I'm going to use 16 pins for turning on LEDs, and I have to use PORTB, PORTD and PORTC for this. I would like to just iterate a pointer so I can turn them ...
0
votes
1answer
40 views

Flash programming for a custom design with SAME70

How can I add flash programming capabilities to a custom-design board witg the SAME70 or SAMV71? For example, with the UC3-A3 (AVR32), I just expose TDI, TDO, TCK, TMS, RESET, GND/VDD, and voila: I ...
0
votes
2answers
100 views

Power on Atmega

I want to design an alarm circuit using Atmega328 microcontroller. How much voltage supply to the IC will be better? In Arduino I see that 5v power supply used. For Atmega328 which will be better? 5V ...
0
votes
2answers
241 views

UART read consistently missing half of the transmitted bytes

I have setup a simple UART test on my SAML21 and believe I must be misusing the library due to the behavior I'm seeing ...
0
votes
1answer
39 views

AT90USB1286 not detected by Windows Device Manger

I'm working on a controller for a USB-C keyboard. I understand USB is a very complicated protocol, and USB-C even more so, however luckily enough there's a ton of open-source projects that aim to ...
0
votes
1answer
102 views

Measuring output of op-amp current shunt circuit using ADC

This is my first post here, so I hope I have done it correctly. I am rather new to analog circuits, so undoubtedly I've overlooked something. Here is what I want to do: Using a 24-bit LTC2400 ADC, ...
0
votes
1answer
23 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
28 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
119 views

Use microprocessor with arduino / ESP32 WROVER [closed]

I was looking through some of the atmel microprocessors, and I was wondering if you could use a microprocessor (say, the atsam91) as a coprocessor for a microcontroller (say, an esp32 wrover (240Mhz)),...
1
vote
1answer
62 views

power consuption of internal 32kHz RC oscillator

I am looking for the typical power consumption of the OSCULP32K (Ultra Low Power Internal 32kHz RC Oscillator) of ATSAMC20J18A. Found nothing in family datasheet so far, only XOSC32K. Can I expect the ...
0
votes
1answer
35 views

ZigBee end-device could not connect to Coordinator

I'm using Atmel's ATMEGA256RFR2 (link) for Zigbee (802.15.4). I needed to redesign the antenna part because with the previous design it did not produce good range. Here is my other (answered) ...
2
votes
3answers
2k views

How to make a PCB based on ATtiny easily updatable by end users?

I've made a prototype PCB containing an ATTINY 4313: Each time I want to change the program, I upload it with an Arduino used with the "Arduino as ISP" sketch. If one day I sell such a module to ...
0
votes
1answer
58 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, ...
1
vote
3answers
134 views

GND arriving to the wrong pin of this chip on my PCB

I had originally done a PCB for another chip. All pins I'm using (1, 2, 3, 17, 18, 19, 20) are fortunately correct for the ATtiny4313 I'm now using, except GND that arrives on pin #4 of my PCB ... ...
-1
votes
1answer
39 views

External Dupont male connector

I would like to program my board without opening the enclosure. On the PCB I have a standard 2x3 Dupont male connector that I use with the Atmel ICE programmer. I am looking for a similar connector to ...
0
votes
0answers
77 views

What name have this strange logic gate? [duplicate]

Today I have looked over the port diagram presented in the datasheet for the Atmel 7810 controller (Chapter 13.2), in the logic diagram of the I/O ports, I noticed a strange logic gate, which I have ...
0
votes
1answer
282 views

How to make 1uA consumption on Attiny13a?

I'm measuring my standalone Attinty13a (internal 128kHz) current consumption with li-ion accumulator (3.7v, 220mAh). Here is my schema and code: ...
0
votes
2answers
168 views

Read 8 serial ports at the same time with an Attiny

I'm building a MIDI merger, based on a Attiny (either 84 or 85). How to read multiple serial ports at the same time (for example 8 RX inputs)? I can't find the blog article anymore, but I think I ...
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
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 ...
2
votes
1answer
129 views

ATM90E32 total energy reading

I'm developing a simple power meter using the ATM90E32 from Microchip. For now, I can read all values: frequency, power factor, voltages, apparent power, etc. Now the issue is with the energy, I need ...
1
vote
1answer
528 views

Does the Sparkfun SAMD21 Mini/Dev Breakout work with the ATMEL Studio

I'm new to the SAM product line from ATMEL. I purchased the original ATMEL Xplained board, which works nicely with the ATMEL studio for programming & debugging. I know that the Xplained board ...
1
vote
1answer
61 views

SAMG55 - bootloader tools

I'm trying to use the ROM bootloader on the SAMG55 as described in AT09002. The application note describes using a tool 'hex2fw.py'. Where can I get that and the config files it uses? I found this ...
3
votes
1answer
232 views

Why I need capacitors on VCC? [duplicate]

I want to build my own dev board (mostly to understand some concepts), and I started from some schematics that I found on the internet, but I have some questions about this schematic: Why do I need ...
0
votes
1answer
84 views

ASF SAMD21G18 2x timers usage

im trying to use ASF to schedule repeated tasks. using TC4 and TC5: in atmel start both using generic clock generator 0 (48MHz). both are HAL:DRIVER:Timer driver init.c is generated automatically ...
0
votes
1answer
1k views

Receive data via USART on Atmel SAMD20

I'm trying to receive some data via USART on Atmel SAMD20. I use usart_read_wait() and usart_read_buffer_wait() but they return ...

1
2 3 4 5
9