Questions tagged [atsamc21]

11 questions
3
votes
2 answers

ATSAMC21 - CAN configuration - Nominal bit timing vs. data bit timing & time quanta calculation

I'm trying to configure the CAN bit rate of an ATSAMC21 to 125ksps in a CAN2.0B configuration. However, after reading through the datasheet, the ASF documentation and the ATMEL start help I'm confused. I got mainly 3 questions: What is the…
KarlKarlsom
  • 1,792
  • 2
  • 13
  • 26
2
votes
0 answers

Error 4109 No device detected in Atmel Studio

I'm working on a project involving an ATSAMC21. I soldered it onto the board and tested all pins to ensure that; a) they weren't shorted to the adjacent pins, b) they were connected to the nodes that they should be connected to, and c) they weren't…
AMacDonald
  • 69
  • 5
1
vote
0 answers

Raspberry Pi 4 running OpenOCD can't flash ATSAMC21G18A that drives SWD pins

I'm attempting to flash a Duet 3 ToolBoard 1LC that drives some lights on the board using the SWD pins from a Raspberry Pi running OpenOCD 0.11.0. I'm using the following configuration: adapter driver bcm2835gpio bcm2835gpio_peripheral_base…
Wulfsta
  • 11
  • 1
1
vote
1 answer

power consuption of internal 32kHz RC oscillator

I am looking for the typical power consumption of the OSCULP32K (Ultra Low Power Internal 32kHz RC Oscillator) of ATSAMC20J18A. Found nothing in family datasheet so far, only XOSC32K. Can I expect the RC oscillator to draw even less current than…
Xpector
  • 139
  • 4
1
vote
1 answer

SAMC21 - SDADC - VREF B - which pin?

I'm planning to use an ATSAMC21G16 in one of my current projects. But I got a hard time finding the correct pin in the Datasheet for the SDADC. On page 907 the block diagram shows, that VREFB can be selected as a reference for the SDADC. On page…
KarlKarlsom
  • 1,792
  • 2
  • 13
  • 26
0
votes
1 answer

ATSAMD21 doesn't seem to start, device not found/detected

I just finished assembling my PCB with an ATSAMD21G18A and was super thrilled to flash it with my program. Sadly Atmel Studio tells me that it can't find the device. I tried to debug the whole thing, but I still don't have it working. I think I'm…
Felix Kunz
  • 318
  • 2
  • 11
0
votes
0 answers

SPI: Receiving sets of bytes from master

I have SamC21 XPRO board as a SPI slave with program written using ASF and Arduino Uno as a dummy SPI master. I expect 3 bytes long values. The master sets SS to LOW then sends three bytes and then sets SS back to HIGH then waits a while and repeats…
Jirka Picek
  • 111
  • 5
0
votes
1 answer

SAMC21 FAT slow on samc21

I'm working on a samc21 and using the fat libraries provided in ASF. I have a program that takes from serial information and has to write to an SD card. The amount of bytes its around 50KB. I'm using the internal oscillator (48MHz). The problem is…
0
votes
1 answer

Which pins of ATSAMD51 are used for I2C in Adafruit Grand Central?

I am trying to recycle my old Adafruit Grand Central board to use with Atmel Studio.I Adafruit website , I2C pins ( SDA , SCL ) are marked as PB20 and PB21 to be used as SERCOM-3 but in ADSAMD51 datasheet those pins are not available for I2C. I…
Aug
  • 1,561
  • 6
  • 28
  • 63
0
votes
2 answers

ATSAM / ASF4 - how to use HRI driver

While trying to change the analog reference voltage in ATMEL Studio for ATSAMC21 I found no way to configure this in ATMEL start and in the higher level drivers. So I searched around the ASF a bit and found, that this function is only implemented in…
KarlKarlsom
  • 1,792
  • 2
  • 13
  • 26
0
votes
1 answer

ATSAM4E UART1 interrupt not working

I am working on ATSAM4E8C on custom board. The uart0 and its interrupt is working fine but while on uart1 I faced an strange issue. The uart1 is sending the data but interrupt handler is not calling while data reception. I have also confirmed the…