David,

With 100 us tasks I think I would use an interrupt.  I believe it has less
latency and jitter than the periodic timer.  If you are using an ADC card
then it will probably have the ability to generate a periodic interrupt
which is also synched to the data conversion.  If so I would use this
interrupt to control that task.  

The only thing that can interrupt this task is a higher priority interrupt.
Since you have control of the real time tasks and their interrupt priorities
this should be no problem.

You could use the periodic timer if you don't have an ADC card.  Again, you
control what tasks have priority over others, both periodic and interrupt.


Regards,

Rich


-----Original Message-----
From: David Armstrong [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 8:35 AM
To: '[EMAIL PROTECTED]'
Subject: [rtl] interrupt timer


I want to run two tasks, one of which must run every 100us. 
My worry is that the timer interrupt could stop this high priority task to
run it's own servicing routine.
When the high priority task is running under rtlinux can I be assured that 
this task (which must be kicked off every 100us) will run with 
out any interruptions.
If I can, what is the best way to fire off this task every 100us.
* Should I use the pthread_make_periodic_np setting the period to 100us
Or 
* Is it better to generate a hardware interrupt every 100us.

Thank you for your time and help

--------------
David
Renishaw plc
Research Scotland


------------------------------------------------------------------------
 This email and any attachments are confidential and are for the
 use of the addressee only. If you are not the addressee, you must not
 use or disclose the contents to any other person. Please immediately
 notify the sender and delete the email. Statements and opinions
 expressed here may not represent those of the company.
 Email correspondence is monitored by the company.
 
 The parent company of the Renishaw Group is Renishaw plc, registered
 in England no. 1106260. Registered Office: New Mills, Wotton-under-Edge
 Gloucestershire, GL12 8JR, United Kingdom. Tel +44 (0) 1453 524524
 -----------------------------------------------------------------------


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to