[ECOS] how to get minimum resolution

Andrew Lunn andrew@lunn.ch
Sat Aug 11 08:06:00 GMT 2007


On Sat, Aug 11, 2007 at 09:32:33AM +0530, sandip wrote:
> dear friend ,
>  
> here i send my code, using alarm i am going to drive seven segment display.
> cyg_alarm_initialize(test_alarmH, cyg_current_time()+1, 1);
> using this i provide minimum delay and function call in short time.but i
> didn't get small delay.

Try this version. You should see output like:

ticks:  1000, alarms:  1000, alarms/second: 100
ticks:  2000, alarms:  2000, alarms/second: 100
ticks:  3000, alarms:  3000, alarms/second: 100
ticks:  4000, alarms:  4000, alarms/second: 100
ticks:  5000, alarms:  5000, alarms/second: 100
ticks:  6000, alarms:  6000, alarms/second: 100
ticks:  7000, alarms:  7000, alarms/second: 100
ticks:  8000, alarms:  8000, alarms/second: 100

I've not tried it on the sam7x, but i expect it to pretty similar.

     Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ticks.c
Type: text/x-csrc
Size: 1377 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20070811/ca9d03a1/attachment.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list