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.

CCS/RM48L952: Looking for UART code (similar to controlSUITE) for RM48

Part Number: RM48L952
Other Parts Discussed in Thread: CONTROLSUITE, , HALCOGEN

Tool/software: Code Composer Studio

I am implementing a non-blocking UART interface over SCI2 and would like to use UARTPeek() among other functions.  Is there something like controlSUITE for C2000 except for the RM48L952?  The tutorial examples for RM48 is too simplistic.  If there is no such thing as controlSUITE for Hercules, is there a more full-featured UART example for RM48? 

Thank you!

  • Hello,

    I don't know the UART example in controlSUITE for C2000. I have an example for my use. Is this what you are looking for?

    2570.uartstdio.c

  • Thank you. Unfortunately, this example is similar to what I am using now in that it only implements a blocking read from the UART. I am looking for an RM48 example of a non-blocking read of the UART using interrupts. Your example mentions UARTpeek() in the UARTgets() function header:

    //! In both buffered and unbuffered modes, this function will block until
    //! a termination character is received. If non-blocking operation is required
    //! in buffered mode, a call to UARTPeek() may be made to determine whether
    //! a termination character already exists in the receive buffer prior to
    //! calling UARTgets().

    But UARTpeek() is not included in your example. The only UARTpeek() code I can find is in the C2000 controlSUITE. But those examples pull in a number of header files I would also need to port. The controlSUITE is a much more fully featured example with adjustable buffer spaces as well.

    Are there any other RM48 UART examples that use interrupts and are non-blocking?
  • Hello Shawn,

    I am sorry we don't have this kind of UART code as in C2000 controlSUITE. The SCI driver generated through the HALCoGen has functions: sciSend() and sciReceive(), and those 2 functions support polling mode and interrupt mode.