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

system delay functions are not producing the correct timings

If anyone can help me with this problem I would be very grateful. Here's what i know. I have a custom PCB based around an atmega328p processor. I am using atmelstudio 7.0.1645 IDE. I have used the ASF wizard to set up my project. I am programming…
2
votes
0 answers

Uart on Atmel Studio SAML21 Xplained with example project?

I want to send a variable given by the function at30tse_read_temperature, on the example project of Atmel Studio called "AT30TSE75X_TEMP_SENSO". I added the usart with some help and ASF wizard, and it's working when I call it with…
user9626210
2
votes
2 answers

FreeRTOS timer Tick too fast in SAM L21 Xplained Pro

When I call vTaskDelay, the delay lasts half of the supposed time. I have traced back the problem and I see that the Tick rate value is the double of what it should be as defined in configTICK_RATE_HZ. I checked this using the tick hook to toggle a…
Alvaro Muro
  • 57
  • 2
  • 11
2
votes
3 answers

Atmel / Arduino: ISR(TIMER0_OVF_vect) won't compile ("first defined" in __vector_16)

I'm currently working on a PWM modulator to "simulate" a car engine ignition commutation. Then, I will use it to drive another microcontroller which handles the conversion from a raw signal (engine's commutator) to a clean output voltage, going…
2
votes
2 answers

Built in function clock() not working in atmel studio 7.0

I am working on a stopwatch project and I need to read the time that has passed while the program is running and build my time base from that. I've included the time.h library and even put the .h file in my project directory but for some reason…
2
votes
4 answers

Displaying ASCII characters from an array on a LCD with ATmega32

I've got an LCD, connected to an Atmega32, working with single characters using this function: void send_char(uint8_t c){ PORTD = c; // set the output pins to the ascii value of the char PORTB |= 0x05; _delay_us(1); PORTB &= 0xfa; …
fasseg
  • 17,504
  • 8
  • 62
  • 73
2
votes
1 answer

How to correctly configure interrupt for INT line of Atmel MXT641T touch chip in Android 5 kernel device tree?

I am having troubles getting a touch screen powered by an Atmel MXT641T on an Android 5 platform to work. The setup I have is as follows: Hardware: Inforce 6309 SBC with Qualcomm Snapdragon 410 msm8916 ARM64 processor. Custom touch screen with…
Martijn de Milliano
  • 3,908
  • 3
  • 36
  • 45
2
votes
4 answers

How to compile and upload to an Arduino from C# application

Is there a way to compile and upload an C program generated from a C# program into an arduino board. Basically i've builded a little C# application which generate an C code depending somes parameters selected into the window. For now you have to…
user2305302
  • 31
  • 1
  • 3
2
votes
3 answers

Does anyone have any sample code or suggestions to help me to interface my 100 pin uc3a1512to a device via RS-485?

I am attempting to connect and control a device which only accepts RS-485 input. I wish to communicate to this device via my existing UC3A1512. Does anyone have any existing source code or examples that may help me to create this interface? I need…
Michael Eakins
  • 4,149
  • 3
  • 35
  • 54
2
votes
3 answers

No optimization (-O0) causes a crash on embedded MCU

I have a code that works really fine with an -O1 optimization, but that crashes if I don't optimize the code. The last lines that are executing are the following : OSCCTRL_CRITICAL_SECTION_ENTER(); ((Oscctrl *)hw)->DFLLCTRL.reg = data; If I…
YohjiNakamoto
  • 373
  • 2
  • 12
2
votes
1 answer

Cortex M0+ returns to wrong position in thread mode after interrupting sleep

I'm not sure if I'm missing something obvious here but has anyone else experienced any issues with the Cortex M0+ (or any of the Cortex M range) returning from an ISR to a somewhat random position in thread mode after being woken up from sleep mode…
2
votes
1 answer

impossible constraint in asm while compilation

In my Atmel ASF project, I am trying to build following inline asm code. However I am getting impossible constraint while compilation. Compiler points to this line __asm__ __volatile__, am I missing anything? #define OUTPORT PORTD #define OUTBIT 3…
Artec
  • 23
  • 4
2
votes
1 answer

Pin Muxing in linux kernel

I want to do following pin muxing. i.e USART Tx -> to GPIO -> Back to USART Tx pin inside Linux kernel for some purpose. I tried to make the PIN as GPIO using gpio_request and gpio_direction_output, so i am able to make that pin as GPIO . But as i…
2
votes
1 answer

Atmel SAM4S8B: Unable to enter Programming mode

So I was programming on my board with a ATSAM4S8Bu using an Atmel-ICE debugger happily when suddenly I was assaulted by this error message any time I tried to debug or deploy to my board: Failed to launch program Error: unexpected chip identifier…
wootank
  • 477
  • 1
  • 5
  • 18
2
votes
2 answers

Array of macros in c -- is it possible

I was wondering if it is possible to create something like an array of macros. I've implemented the following code which works: struct led_cmds_ { ioport_pin_t *commands[LED_COUNT] ; }; struct led_cmds_ the_led_cmd_ ; void populate() { …
swamp_law
  • 23
  • 1
  • 1
  • 3