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
1answer
38 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:...
0
votes
0answers
27 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
vote
3answers
122 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
33 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
95 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
1answer
32 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
86 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
17 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
23 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
116 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
55 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
33 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
52 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
130 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
37 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
76 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
2answers
153 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
214 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
0answers
21 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: ...
2
votes
1answer
103 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 ...
0
votes
2answers
184 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 ...
1
vote
1answer
57 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
205 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
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 ...
1
vote
1answer
79 views

Help understanding table in SAM E54 Datasheet

I apologize if this isn't the right place to ask this question, but I'm having trouble interpreting a table in the SAM E54 datasheet. I am trying to configure the size of the SmartEEPROM on an ...
0
votes
0answers
69 views

What scheduling should I choose for my program on a FreeRTOS system?

Not sure if it's the right place to ask but: I have a project (a 2-player game) made in FreeRTOS. The game has 3 tasks (Game Render, Joystick Task and a PC Serial Communication). Shared resources ...
1
vote
1answer
61 views

serial monitor error/crash

After typing C, microcontroller responds with # Next, I type k, microcontroller responds with #INFO: TWI master enabled Next, I type !, microcontroller responds with C after typing in the next ...
0
votes
0answers
28 views

Atmel Studio SAML21J SPI connection issue

I am new in the world of microcontrollers, so maybe I am just missing some basic detail. I am using an Atmel SAML21J board (as master) and for that I am trying to connect a Kionix sensor (as slave) ...
0
votes
0answers
29 views

SD card command reference, command for streaming data to SD

I am currently working on a device with ATSAME70Q21 what measures 144 channels of ADC values on an SD card (MCI interface). Each measurement takes up a 512Byte block data on the SD. I do not use a ...
3
votes
1answer
84 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
60 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
110 views

What QSPI chip is on ItsyBitsy M4 Express?

I'm trying to find out the name of the QSPI chip that is used on ItsyBitsy M4 Express boards. On the image below is very faded:
0
votes
1answer
58 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
1answer
54 views

AVR ISP not working, strange signal level [closed]

I can't read the chip ID of the ATMega16m1 MCU using a AVRISP mkII programmer. The ISP pins are connected directly to the MCU, the reset line has a 10k pullup to Vcc (3.3V). When measuring the ISP ...
0
votes
2answers
246 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
34 views

Atmel debugger: erase bootloader?

I have an ARM-M0+ (SAMD21G18). I have a project that has a bootloader and another with application. When I try to go to debugging I suspect the following: the ROM is erased application flashed ...
0
votes
0answers
152 views

Proteus Atmel EEPROM Simulation

Can somebody confirm me if Labcenter Proteus can simulate the EEPROM registers for the Arduino Atmel megaAVR ATmega328P, for the standard instructions EEPROM.put ...
0
votes
1answer
33 views

Atmel SAM C21 stuck in Reset_Handler

I was trying to implement the watchdog functionality using ASF in an SAMC21 xplained pro and after flashing the code the device started behaving oddly. If I try to run any code it looks like it is not ...
0
votes
2answers
86 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
31 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
98 views

SD card reader using SPI with Atmel SAM G55J

I have a custom board using an Atmel SAM G55J (ATSAMG55J19A-AU) and I'm trying to get the SD card reader to work - which is connected to SPI0. I'm using the SD/MMC ...
3
votes
1answer
85 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
0answers
44 views

I have tried serial communication code.İt is working in arduino ide but it doesn't working in atmel studio

I have found code of serial communication for attiny84.https://electronut.in/serial-communications-with-the-attiny84/ If I compile this code in Arduino Ide then this code is running.I see hello world ...
0
votes
1answer
84 views

Avrisp mkii not recognizing atmega 328p chips

I have three different sets of chips, the attiny85, 328p, 328p-au. Initially, the avrisp mkii, was programming the atmega328p, however now it is not recognizing this chip (i.e. 328p) or the 328p-au. ...
1
vote
1answer
170 views

SAM Timer counter / atmel ASF

I'm trying to implement function call after having timeroverflow or comparison of counter registers. Chip: SAM4E ...
2
votes
1answer
180 views

ATSAMR21 sleep high current draw

I have an ATSAMR21B18-MZ210PA, which is an ATSAMR21E18 packaged with MX25L2006E flash. The SAMR21 is itself a SAMD21 paired with an AT86RF233 wireless module. So that's a SAMD21 + low power wireless + ...
0
votes
1answer
219 views

difference between CMSIS and ASF

im trying to make c++ project using atmel asf. the compiler have: ...

1 2 3 4 5 9