Atmel Start : Where is input-capture driver ?

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

Hello,

Thanks for this very useful forum! After finding many solutions to my problems through this forum, I am stuck.

 

Accustomed to the AVR platform, I now have to work with a SAM D20. I tested Atmel Start and ASF 3.33. But I use FreeRTOS and the latest version of the OS is only available on Atmel Start. In addition, Atmel Start is presented as "more efficient", so I would like to be able to use it for my projects.

 

My problem: I can not configure TC0 in input-capture mode with Atmel Start. Where is the driver? If anyone could give me some indications, I would be delighted.

 

Thank you. RC.

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

I've never used "Start" but looking at it, wouldn't the place to configure this be somewhere in here...

 

 

I ticked the "Event Control" then these options for things like "period captured" became available - is that the kind of thing you are looking for?

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

Thanks a lot for your answer.

 

I checked this option, but I can not attach an interrupt routine to this action in Atmel Studio. Like "capture_callback_register" in ASF. I can not find the name of the function to do this.

 

Therefore, my configuration is probably right (configured in the same way as with ASF) but I have not found how to attach a callback to capture. In attachment, my project atzip. It's possible to import it in Atmel Start to view code and configuration.

 

On the other hand, as stated here: ( http://start.atmel.com/static/he... )

A driver is designed to support a use-case (of a peripheral). For example, instead of one timer-counter driver, ASF4 has drivers for PWM, timer, input-capture.

 

I find the driver "Timer" and "PWM" but no driver "Input-Capture". At the moment, I test with the Xplained Pro D20. 

 

Thanks. RC

Attachment(s): 

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

You can check in example folder, 

        TIMER_0_task1.interval = 100;
	TIMER_0_task1.cb       = TIMER_0_task1_cb; //function callback in tick 100
	TIMER_0_task1.mode     = TIMER_TASK_REPEAT;