Page 1 of 1

Problem with High Resolution Timer

Posted: Mon Jan 05, 2015 10:48 pm
by cledic
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

Re: Problem with High Resolution Timer

Posted: Sat Mar 07, 2015 2:41 am
by abelloni
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/