USART ASF callback drivers / DMA / Preferred architecture?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am new to ARM and ASF for that matter.  I have a question on the preferred usage of a USART/ASF on/for the SAMC21 xPlained Pro board.  I am porting an motor control with telemetry upload application from an ATmega2560/STK600 platform written in Codevision AVR to the SAMC21 running on the SAMC21 xPlained Pro board using ASF and I'm used to having RX/TX interrupts and customized versions of putchar/getchar from the compiler to support the interrupts and cyclical buffers.  With the new SamC21/ASF architecture  it appears as though I can used the polled or callback drivers (which don't implement cyclical buffers) or a combination of the USART drivers and DMA drivers.  I'm curious on opinions of which of the 2 low overhead ASF methods the community prefers callback drivers or DMA for the USART?
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have the same problem, I would like to implement a simple handle Interrupt when arrive data at SERCOM/USART and not in main loop.  The great question, how to implement this using ASF? (Because the examples show case to basic read in main loop e interrupt to callbacks ). Or I need to do without ASF?

 

Thank you.

Thiago Silva Nascimento

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0