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

How do AVR I/O macro definitions work to allow access to registers?

I was looking at the header of ATmega2560 registers mapping (iom2560.h) where there are all the definitions of the registers. For example: #define PINA _SFR_IO8(0X00) //Macro definition: #define _SFR_IO8(io_addr) ((io_addr) + 0X20) So PINA is a…
AleCrb
  • 37
  • 3
2
votes
0 answers

Atmel SAMD21 DMAC writeback failure?

I'm using multiple DMA channels in an Atmel SAMD21G18A (in an Arduino MKR1000), and I'm seeing some obviously incorrect behaviour. DMA channels 2 & 3 are servicing a SERCOM SPI channel, using single block transfers with a completion interrupt. DMA…
Jeremy
  • 5,055
  • 1
  • 28
  • 44
2
votes
3 answers

Is Bonding required for BLE <-> Android, iOS device communication?

We have a BLE device and android/ios app for communication with the device. The requirement is to have an android/ios app connect to the device without any pairing request. No security is required on the device. Hereafter a few questions around…
2
votes
1 answer

ATMEGA16L Pull-up isn't active

i wan't to get Inputs to my Atmega16L from a Button. Ideally i can use the internal Pull-up's, so i don't have to attach them externally. I've boiled down the code to the minimum: void main(void) { // SFIOR &= ~(1<
Felix Kunz
  • 354
  • 2
  • 15
2
votes
1 answer

How to setup Atmel-ICE to program an ATmega328 on PlatformIO with VSCode on Windows 10

I am trying to use my atmel ICE with platformIO and VS Code instead of Atmel Studio, as this software is a pain when I want to use Arduino.h with libraries. However I cannot upload with my programmer. I tried with a 32 pin ATmega328. I first used…
JCSB
  • 345
  • 2
  • 16
2
votes
1 answer

How do I initialize LwIP to use MQTT library

I've looked and followed documentation from LwIP 2.0.2. My project contains the MQTT library supplied in the LwIP 2.0.2. I also found some help at https://dzone.com/articles/mqtt-with-lwip-and-the-nxp-frdm-k64f. I'm unable to get a connection, I've…
Müller
  • 313
  • 5
  • 18
2
votes
2 answers

ASF4 Microchip API timer driver reset function

I'm using ASF4 API hal_timer for a ARM Cortex M4. I'm using the timer driver to timing a data sequence. Why does no reset function exist? I'm using the timer on a TIMER_TASK_ONE_SHOT mode and want to reset it when ever I need to. I thought a…
Müller
  • 313
  • 5
  • 18
2
votes
2 answers

Deference between sim800 and sim900

I have developed a card with sim900 and ATmel, and it works very well, but when I changed sim900 for sim800 it did not recognize the sim card. Difference in hardware design? SIM800,SIM800C modem operates from 3.4V to 4.4V supply range (Reduced…
2
votes
3 answers

Trouble programming AVR to interpret input from Arduino rotary encoder module

I've been trying to program my ATtiny817-XPRO to interpret input data from a rotary encoder (the Arduino module), however I'm having some trouble and can't seem to figure out what the problem is. What I'm trying to do is essentially program a…
Jacob M
  • 147
  • 3
  • 10
2
votes
1 answer

change Start address .hex in atmel studio7

I'm doing a bootloader for AVR in ATMELStudio7, when generating the .hex it is created from the address 0x00 but the bootloader has to go from the address 0x1e000, if anyone knows how to change this in the compiled options I would appreciate it.
2
votes
4 answers

How does a person reverse the order of the lower 8 bits of an "int" value and leave the upper 8 bits the same?

My application requires that I store the value in a 16 bit counter but due to pcb issues it requires that the lower 8 bits of the counter be reversed (01001110 to 01110010). The code is being written in C (GCC) and the counter register is "int" type…
2
votes
1 answer

Strange delay behavior in Atmega328P

So, I have implemented a custom delay function using the standard one found at utils/delay.h. inline void delay_us(uint16_t time) { while (time > 0) { _delay_us(1); time--; } } It's called inside a loop in the main…
Hugo Sartori
  • 560
  • 6
  • 21
2
votes
2 answers

Processor Architecture Registers vs. MCU Registers

I am currently learning about microcontrollers and processors, and I have a couple questions about some distinctions between the two. As I understand, the MCU contains a processor that implements a processor architecture. For example, I am using a…
pidizzle
  • 720
  • 6
  • 12
2
votes
0 answers

Best practice to implement dual I2C busses on Atmel processors

Summary: I am trying to use both I2C buses on the Atmel 328PB chip, but have not found a Atmel library that supports both busses. I see several routes forward, but wanted to get feedback from more knowledgeable people first. Findings to date: 1)…
2
votes
1 answer

Atmel studio cant send char array as String

This is a problem I am not able to solve for over 3 months. I tried various things but couldn't understand why my code is not working properly. I am trying to send values over UART. When I send the values like this (Atmel Studio 7.0 ,…
Enes Kuz
  • 168
  • 7