
Low-level programming - Registers - SAMD51 - Arduino Forum
2021年5月25日 · Hello everyone! I'm using a SAMD51 based board and I'm trying to understand how it really works. So far, I've done several tasks with it using the Arduino IDE and many of the libraries made by the community. I come from a background in high-level programming, so I took my time learning a bit more of embedded programming using cpp and c. However, I'm trying to do some stuff that needs to ...
SAMD51 TC PWP mode for measuring frequency - Inputs?
2020年11月23日 · Hello! I would like to try and use a ATSAMD51J to read 4 distinct digital inputs, duty cycle and period. I've been reading around and think the TC instances should be able to do this, but wanted to ask to be sure. I would like to measure 4 frequencies from around 0Hz to 100KHz, and I would like to measure the duty cycle too if possible. I would like to store this info in a 16bit integer ...
Setting up a TC for SAMD51 to count milli-seconds
2020年9月8日 · Hello, After reading datasheet of SAMD51 for TC I have currently setup a TC(Timer/Counter) for the SAMD51 so it overflows every 0.001092 seconds,and then it increments a variable using the INTFLAG.OVF status.And when the variable reaches 999, it resets to 0(see below).It seems to work,but it lags abit, but I was wondering if theres a better way? The reason is bc I would like to include a ...
SAMD51 - DMA for USB - 3rd Party Boards - Arduino Forum
2020年4月19日 · Hi! I am having issues understanding how DMA works in the SAMD51 processor. I am converting a SAMD21 library to run with D51 chips. From my understanding after reading both the data sheets is that the whole DMA register layout changed significantly. The D51 seems to have many individual controllers now instead of a register to set which one you want to use. I am trying to remove the below ...
Using DMA + DAC on SAMD51 - 3rd Party Boards - Arduino Forum
2024年6月11日 · hello currently I wrote this code for a SAMD51 board to produce three pulse waveform at different frequencies, mix/sum them, and output the result using the internal 12 bit DAC. In this example I'm using TCC1 at 120KHz to update the DAC, and TCC0 at about 21.4KHz to produce a 2.14KHz pulse waveform (the timers runs at 10x the desired frequency so that I can get different pulse width settings ...
SAMD51 Interrupt Tutorial sought. - Arduino Forum
2019年8月19日 · Hi, For days and days, I've searched for the SAMD-equivalent of this most excellent article of Arduino Interrupts and how to use them. By studying this tutorial, learning to set up and use interrupts extensively in many of my projects has been fun. Terrific stuff, and the article.. very much appreciated. Dorothy, you're not in Kansas anymore. Enter the SAMD51, my pretty. If such a tutorial (or ...
SAMD51 multiple SERCOM issue - Programming - Arduino Forum
2024年11月30日 · August 23, 2023 Please, I need help with SERCOM configuration of SAMD51 Programming 4 44 December 6, 2024 Which samd21 pins have these alt functions General Guidance 5 569 October 29, 2021 SAMD21G18A GPIO, Uart and SPI General Guidance 6 522 February 7, 2023 Configuring a custom board to use Sercom 3 Programming 1 613 May 5, 2021
RS-485 on Serial1 with SAMD51 - Programming - Arduino Forum
2024年8月23日 · The SAMD51's SERCOM (Serial Communication) peripherals are modules that can be configured for either Serial (USART), SPI or I2C operation. The microcontroller's native USB is a separate module detailed in section 38 of the MCU's datasheet and not associated with SERCOM peripherals in any way.
SAMD51 USB Host and Device - 3rd Party Boards - Arduino Forum
2021年1月14日 · I'm looking to redesign the whole project onto a single PCB and base it off of the Atmel SAMD51 chip. My project uses both USB device and USB host capabilities, but I'm having trouble determining if this chip can support that functionality.
Samd51 pwm capture - 3rd Party Boards - Arduino Forum
2022年3月25日 · Continuing the discussion from SAMD51 TC PWP mode for measuring frequency - Inputs?: Hi MartinL, I tried your Program, I am Geting frequency Output. But PWM capture Part is not Working... I am Using METRO M4 EXPRESS Board from Adafruit. I am pasting the code written by you. Request to help Thanks & Regards, Ravi // Adafruit Feather M4: Setup TC0 to count pulse width and period on analog pin A4 ...