Type in the full discussion title or a part of it.
Discussion Title Created date
D20: Read COUNT32 value from TC0/TC1
I know I need to wait for syncing before reading from COUNT32 register. So I need something similar to this:   while (tc_is_syncing(module_inst)) {   /* Wait for sync...
Thursday, 26 April 2018 - 09:27
D20: Create a 64-bits hw timer from 4 TC peripherals
I configured TC0/TC1 and TC2/TC3 as two 32-bits counters. The first couple of TCs counts clock pulses at a frequency rate of 1MHz. The second couple TC2/TC3 counts output...
Thursday, 26 April 2018 - 08:26
ATmega328: PWM as DAC
I'm trying to use Timer/Counter1 to generate an analog output signal. So I configured it as PWM and connected a RC filter. The output is on pin PB1.   On the same port (pin...
Monday, 11 December 2017 - 14:59
Issue a "reset and halt" command on SWD, before programming
I just learned that the Flash programming in Atmel Studio (the "Start Without Debugging" and "Start Debugging" buttons) doesn't initially reset the MCU that runs with current...
Tuesday, 25 July 2017 - 13:49
SAMD20: what is the default clock configuration of WDT?
The datasheet says that after POR the GCLK controller 2 is enabled and sourced by OSCULP32K. GCLK of WDT is enabled and sourced by GCLK Controller 2. What I don't understand is...
Tuesday, 25 July 2017 - 11:19
ATmega328 stops running after many hours from reset
I have a board with ATmega328 TQFP package. The clock is from an external 14MHz crystal. The power supply is 5V. The software uses TWI (I2C communication with two devices), UART (...
Friday, 5 May 2017 - 11:12
Asyncronous event delay
I want to use an asyncronous event in SAMC21 (precisely, I want to link the overflow event output from TC0/TC1 to the event input of TC2/TC3 configured to count, to create a hw 64...
Saturday, 29 April 2017 - 10:36
TC counting events: should GCLK be enabled?
I want to use TC2/TC3 on SAMC21 as 32-bits counter that count events. So I enabled TC2->COUNT32.EVCTRL.bit.TCEI and set TC2->COUNT32.EVCTRL.bit.EVACT = 2 (COUNT action on...
Saturday, 29 April 2017 - 10:32
SAM C21: TCx->COUNT32.CTRLBSET to read counter?
What is the reason behind having to write a command to TCx->COUNT32.CTRLBSET.reg before reading TCx->COUNT32.COUNT register? Moreover adding sync loop before and after...
Thursday, 27 April 2017 - 12:52
Again about register syncronization
We have talked about register syncronization in the past. It's a difficult and new topic for me. What is not clear to me yet, is it necessary when you have a single clock for ARM...
Thursday, 27 April 2017 - 12:44
Breakpoints in RAM doesn't work?
I'm experimenting with code in RAM (to avoid bus stall during NVM write/erase operations) and I noticed breakpoints don't work. I'm able to set a breakpoint, but the execution...
Tuesday, 18 April 2017 - 08:18
Atmel Studio/EDBG/D20: problems debugging functions in RAM
I put some functions in RAM with __attribute__((section(".ramfunc"))) and I'm making some tests on my Xplained Pro board with embedded EDBG debugger. I have many problems...
Friday, 14 April 2017 - 14:22

Pages