This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Micrium uC/OS III UART module

Other Parts Discussed in Thread: MSP430F5438A

Hello all,

 I am using an MSP430F5438A and an RTOS, Micrium uC/OS III. I want to know how to transmit using the UART module. Online documentation shows that semaphores are supposed to be used. I am not aware of where to use the post() and pend() commands. 

How is UART used in any RTOS at all? How are the semaphores used to transmit and receive?

Thank you in advance!

 

  • Hi,

    Micrium uC/OS is an RTOS developed and maintained by a third party - Micrium (not TI). I would recommend seeking support from micrium for this question - it looks like they have support and training links on their website: http://micrium.com/

    I'm not sure about RTOS's in general, but I know that with TI-RTOS there is a UART driver included with it to help you handle the communication - in that driver, it has different options for how the UART can be set up depending on how you want the communication to work (for example if you want the Uart to be blocking or non-blocking and use a callback instead) - so it's flexible in this regard and can be set up to meet your needs. There's more info on that in the TI-RTOS user's guide: http://www.ti.com/lit/pdf/spruhd4 but I'm unsure if this is how UART works in Micrium's RTOS or not - you'd have to ask them about their specific UART drivers, or check their documentation.

    Regards,

    Katie

  • Semaphores signal that a certain resource is in use.

    In its simplest form, a semaphore is a flag that tells 'don't use this resource, it is already in use'. More complex semaphores may be objects that provide an access function. So you call this function and are put to sleep until the resource is available. Some may combine this with a thread ID, so the same thread can use the resource even if it is already marked as in use (by this thread).

    The exact way a semaphore is to be used depends on its implementation. See the documentation of your OS for details. It is not MSP specific. In fact, it has nothing to do with the MSP, except that you don't need semaphores if you don't have a processor :)

**Attention** This is a public forum