cancel
Showing results for 
Search instead for 
Did you mean: 

RTX problem

ivan1
Associate II
Posted on September 03, 2008 at 01:42

RTX problem

7 REPLIES 7
ivan1
Associate II
Posted on May 17, 2011 at 12:43

Hi All,

Now I want to send some data through USART 3 every 10ms.

So I use RTX in my project, and use os_dly_wait method or os_itv_set&os_itv_wait method to make it work.

But It's not working as I thought.

The interval time is not 10ms every time, even not the same value.

What's wrong with that?

How to realize what I want?

Thank you.

jj
Associate II
Posted on May 17, 2011 at 12:43

Hi Ivan,

Can you temporarily shift to USART 1 OR 2? In so doing we will learn if your problem is restricted to USART 3 - or if it is one of set-up or implementation.

ivan1
Associate II
Posted on May 17, 2011 at 12:43

Hi jj.sprague

Do you mean that USART 3 is different from 1\2 in useage and performance?

I cann't to do that test.

Thank you

jj
Associate II
Posted on May 17, 2011 at 12:43

USART3 - depends upon the device - in some cases USART3 requires ''special handling.''

How much does your desired interval time vary from 10mS?

mikhail
Associate II
Posted on May 17, 2011 at 12:43

Ivan1,

can you toggle I/O pin instead out to USART3? What is deviation? And what you expect?

Mikhail

ivan1
Associate II
Posted on May 17, 2011 at 12:43

Quote:

On 02-09-2008 at 16:28, Anonymous wrote:

USART3 - depends upon the device - in some cases USART3 requires ''special handling.''

How much does your desired interval time vary from 10mS?

What's the ''special handling.'' USART3 requires?

I desired exactly 10ms interval time.

jj
Associate II
Posted on May 17, 2011 at 12:43

I like Mikhail's idea - toggle an I/O pin instead of transferring over UART3. This will confirm if your variation is caused by the USART or by your procedures which invoke it.

Please tell us ''how much'' variation you are experiencing...

Depending upon the device and package size USART3 may be an alternate function - which requires special set-up.

[ This message was edited by: jj.sprague on 03-09-2008 05:14 ]