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.

Multitasking

Part Number: EK-TM4C1294XL

Tool/software: Code Composer Studio

Hello,
I created a program using SSI0 - SS2 & UART0. But I want to separate SSI0 and SS2 data using tasks.I need to do some mathematical processing. I don't want two different data lines and processing sequences to affect each other.
Are there any documents and examples that you can suggest about this subject?
Package: TivaWare_C_Series-2.1.4.178(examples/boards/ek-tm4c1294xl/project0)
Board: EK-TM4C1294XL

Best Regards,

  • Hi,

      You can handle this in either using interrupts or using RTOS. If you use interrupt then the CPU can process the data only for the module that receives or needs to transmit the data. For example, the UART0 receives a character and the reception causes an interrupt to generate. The CPU responds to the UART0 interrupt and process the received character. Same can be done for for all modules (i.e. SSI0-SSI2). Refer to the TivaWare interrupt example under <TivaWare_Installation>/examples/boards/ek-tm4c1294xl/interrupts to see how the interrupts are handled and you can adapt the same to your SSI and UART modules.

      Do you have in mind to use a RTOS? With RTOS, you can setup each each module (SSI0, SSI2, and UART) as separate task. If you have very complex application that requires scheduling of different tasks, then the RTOS is the way to go. Otherwise, I will suggest you stay with the interrupt method for your school project. 

  • Hello,

    Thank you for your support. I will organize my project according to RTOS. I can ask you again for help.

    Regards,