Skip to main content
ivan1
Associate
September 2, 2008
Question

RTX problem

  • September 2, 2008
  • 7 replies
  • 2368 views
Posted on September 03, 2008 at 01:42

RTX problem

    This topic has been closed for replies.

    7 replies

    ivan1
    ivan1Author
    Associate
    May 17, 2011
    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.

    ivan1
    ivan1Author
    Associate
    May 17, 2011
    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_it
    Associate II
    May 17, 2011
    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.

    mikhail
    Visitor II
    May 17, 2011
    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

    jj_it
    Associate II
    May 17, 2011
    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?

    jj_it
    Associate II
    May 17, 2011
    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 ]

    ivan1
    ivan1Author
    Associate
    May 17, 2011
    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.