Problem with High Resolution Timer

Moderator: nferre

Posts: 2
Joined: Mon Jan 05, 2015 12:21 am

Problem with High Resolution Timer

Mon Jan 05, 2015 10:48 pm

Hello to all,
I have problems using high resolution timer on a SAMA5D3 Xplained compatible board [1].
I'm using kernel 3.10, hrt enabled, with dts configured for 7inch display. I'm cross compiling on a Ubuntu 13 PC.

I made a very simple kernel module [2] that toggle a pin each time is called.
Using a scope I can see that lowering the timer value below 60us, nothing change.
I need a timer every 14us but the scope always show a 60us square wave.

Where am I wrong with my code?
Can someone help me?



[2] ... /mod_hrt.c
Posts: 17
Joined: Sat May 03, 2014 7:34 pm

Re: Problem with High Resolution Timer

Sat Mar 07, 2015 2:41 am

14µs is really short. It is already quite good to be able to attain 60µs. You should probably configure a PWM or the TCB to do what you are trying to achieve.

If you really have to use a GPIO, then you'll probably have to use the FIQ: ... ux-kernel/

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 5 guests