Type in the full discussion title or a part of it.
Discussion Title Created date
Reset when saving block to EEPROM with undocumented bit flag
On a xmega128A1U I'm trying to save a block of data into the EEPROM:   typedef struct { int8_t currFocus; int8_t currText; bool isEditing; bool isVisible; bool...
Sunday, 5 May 2019 - 06:35
Definitive way to acquire 8 ADC input with DMA
I read this very old thread, and I'm reading the A4U datasheet, the AVR1300 and AVR1304 app notes. Still I'm not sure how to do a very simple thing: reading all PORTA 8 ADC inputs...
Monday, 5 November 2018 - 15:51
Debug reset cause... without a debugger
I'm working on a project with an xmega64A3U that runs in an inaccessible place. I have a serial line and I can program the MCU with the bootloader. The board ran fine for months....
Sunday, 8 July 2018 - 07:32
Improve SPI speed
I'm using an xmega32A4U to control an AD5592 DAC. My goal is to write all 8 outputs with a frequency of 20 kHz. To update a single output I need two bytes. The MCU is running at...
Friday, 8 June 2018 - 13:33
Prepend some bytes to an array (i2c)
Hi guys, I need to improve a bit some functions I'm using to reduce the amount of RAM. I'm working on xmega (yes, I know I can switch to a bigger one, but I want to learn how to...
Tuesday, 29 May 2018 - 05:54
DDS: first steps
In a recent post I received a suggestion about the use of DDS: https://www.avrfreaks.net/commen... It's the first time I'm approaching this technique so I read something in...
Wednesday, 9 May 2018 - 18:16
How to generate a sine wave that smoothly changes frequency
With the DAC of an xmega I have to generate a veeerrrryyyy slloooowwww sine wave (down to 0.01 Hz). If the frequency were fix it would be very easy: due to the long period I can...
Wednesday, 9 May 2018 - 12:01
Pointers issues... reset when assigning a value
Well, perhaps I'm tired but I cannot see my mistake in the following code:   uint32_t input[2] = { 0, 0 }; uint32_t output[2] = { 0, 0 }; uint8_t res = Engine_ReadAll(&...
Sunday, 6 May 2018 - 17:29
Plenty of serials
I'm facing a new project that requires a lot of serials: at least 12, better if 14. All of them are asynchronous, end they'll end up in RS232 or RS485. I wrote my own library...
Sunday, 15 April 2018 - 13:47
ATtiny44A PORTA configuration
It's been quite a long time I don't use tiny AVRs, so I'm likely missing something obvious. I have a board with ATTiny44A, right now it's populated only with the MCU, ISP...
Monday, 9 April 2018 - 06:49
Difference between #define and Define symbols (-D)
In an Atmel Studio project we can define symbols inside the project's properties dialog window. It actually adds them to the command line passing as -D arguments. Another way is...
Wednesday, 7 March 2018 - 19:16
4-ch frequency capture
I'm reading the datasheet of xmega au to understand how to use the frequency capture to measure 4 signals. They might go down to 0 Hz, but I'm fine to measure them only when the...
Wednesday, 31 January 2018 - 14:40

Pages