ATSAMR34-XPRO Delay Function?

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

In XC8 AVR Compiler (MPLAB X IDE) I can use _delay_ms() function in #include <util/delay.h> for the ATtiny202.

I have started to work with 32bit MCU and I am trying to modify the sample program for ATSAMR34-XPRO in Atmel Studio 7. Is there a simmilar function which I can use for small delay e.g. 250ms or do I need to use internal timers of the ATSAMR34J18 MCU?

By the way how to display code row numbers in the Atmel Studio?

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

There is nothing in the c library as there are for var. Check out ASF, Start or Harmony for delay functions.
.
What do you mean by row numbers? Line numbers? Go to Tools/options and search for line numbers.

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

Thank you, the line numbers are on, your advice helped.

.

#include <delay.h> and delay_ms(500);

.

wink