I'm not sure I fully understand what you're doing, but you might want
to look into the select() function if you haven't already.
Jason
salinda tennakoon wrote:
Hi guys,
I've been designing a product based on the ts7260 and one of my tasks is
to implement control system using lot of sensors.I want to couple four
sensors. So i used four UART serial ports by using Serial port extend
card (TS-SER4 ).Those
sensors running on different refresh rate.So for now I'm using
threading for my program.One main thread for output for control system
and another four threats for sensor system..now my main threat running
at 8Hz which is not enough for my application. This is mainly due to
threading. All the interrupt handle by the OS.We cant directly access
to them. Because of that all for sensors threads running loop until
UART buffer fill to some level....which mean wasting resource without
doing nothing.....I think you guys got my point. I have good knowledge
about micro controllers. In those micro controllers we can easily
implement UART interrupt.But those micro controllers have only limited
number of UART. If you have any suggestions for this problem please let
me know. It will be very helpful to me.
Thanks a lot,
Salinda
Building a website is a piece of cake.
Yahoo! Small Business gives you all
the tools to get online.
__._,_.___
SPONSORED LINKS
__,_._,___
|
|