[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] Problems with time and timer!
Kurt Renauer wrote:
>
> Hi to everyone!
>
> I am using RT Linux just a few days and there are some problems that I
> could NOT solve:
> 1. I started the rect_wave sample ... measured the signal with a
> logicanalyzer and found out that the measured period time did not match
> the period time of the rt_task_make_periodic function.
> What I did:
> I modified the program: just one task ... toggling a bit on LPT D0 with a
> period of 100 us -> the measured period was then 85us.
> ????
How did you set the period to be 100usec? Note that there are 1193180
RT_TICKS in a second, and that 100 RT_TICKS is about 84usec. To get a
period of 100usec, set the period to 119 RT_TICKS.
>
> 2. I used the timer related functions:
> I used this timer functions within the program I described before. What I
> did: ... rt_request_timer ... rt_set_timer... I wrote a timer handler that
> toggles a LPT Bit ... etc. ...
> OK! the timer worked, but the periodic tasks did not run?!
> Why not?
I can't answer this without looking at your source code.
Cecil Ogg
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu