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.

TMS570LS0714: TMS570LS0714 - SCI2 RX interrupt handling

Part Number: TMS570LS0714

Hey all

I am working currently with the TMS570LS 0714 A PZ QQ1 and I try to set up the SCI communication using the SCI2 (since the normal SCI is not supported for the PZ Package) by using the IRQ interrupt.
I would like to enable an interrupt with "sciNotification(sciBASE_t *sci, uint32 flags)" function based on the RX INT of the SCI2.

In CCS I have the following code for the initialisation:

/* USER CODE BEGIN (1) */
#include <stdio.h>
#include "sci.h"
#include "spi.h"
#include "can.h"
#include "esm.h"
#include "gio.h"
#include "sys_core.h"
/* USER CODE END */

/* USER CODE BEGIN (3) */

    _enable_interrupt_();
     sciInit();
     sciReceive(sciREG, 1, &sci_cmd);

In the HAL Code Configurator I enabled the RX INT of SCI2 and enabled Channel 64 of SCI Level 0 interrupt.

In the past, I was able to do the described task with the TMS570LS 1224 CPG EQQ1 Eval board using the normal SCI ports.

Unfortunatley, I dont know the reason why it is not working with this uC. Hope someone has an idea.

Thank you

  • Hello,

    TMS570LS0714PZ package has 1 SCI/LIN module. This module supports LIN protocol as well. 

    The VIM channels for SCI/LIN interrupt are channel 13 (LIN High) and channel 27 (LIN Low). 

  • Hi Wang,

    thanks for the answer. I dont like to use LIN but SCI2 using Pin N2HET1[6]. By doing this, I try to use VIM Channel 64 (SCI level 0 interrupt) on IRQ. I also tried to use the PINMUX of pin 26 with SCIRX. But this did not help...

  • Hi Simon,

    As I mentioned, TMS570LS0714 PZ package has only one SCI module: LIN/SCI2 module (Pin 94, and Pin 95). Pin 94 and Pin 95 are dedicated for LIN/SCI2, so no pinmux configuration is needed. Unlike PGE package, the 2nd SCI module doesn't exist on PZ package.

  • Hi Wang, thanks for the explanation! For me it is confusion, since PIN 26 (N2HET1[6]) has per definition (PZ package) in the datasheet in Sec. 4.2.2.1 a signal name of N2HET1[6] / SCIRX / EPWM5A. For this reason I thought it is possible to use this PIN as an SCI listener (RX) . Do you know why the signal name contains the "SCIRX"?

  • Hello Simon,

    It is a typo. I am apologize for the confusion. The pin 26 of PZ package is for N2HET1[06] and EPWM5A. 

  • Dear Wang and TI Team

    I am still struggeling with the SCI Notification interrupt using the SCI2 RX signal.
    The RX signal of my sensor is now connected to PIN 94 (LIN RX).
    Until now, the sciNotification(sciBASE_t *sci, uint32 flags) function is not triggered by the RX interrupt (which is my intension)
    Could you please have a look on my CCS code and Hal Gen settings?
    (The settings in HAL GEN -> SCI2 -> SCI/LIN Global: was tested with RX int connected with High Level and tested with RX int NOT connected with High Level (as shown by you)) without success.

    Do you have an idea why sciNotification is not triggered?


    /* USER CODE BEGIN (1) */

    #include "sci.h"
    #include "het.h"
    #include "gio.h"

    #include "system.h"

    #include <stdio.h>

    /* USER CODE END */

    /* USER CODE BEGIN (2) */


    uint8 sci_cmd;

    /* USER CODE END */

    int main(void)
    {
    /* USER CODE BEGIN (3) */

        /* Initialize HET driver */
        hetInit();

        /* Initialize GIO driver */
        gioInit();
        gioSetBit(hetPORT1, 0, 1);        

        /* Initialize SCI and enable ISR */
        sciInit();
        sciReceive(scilinREG, 1, &sci_cmd);//sciReceive(sciREG, 1, &sci_cmd);

        /* Enable Interrupt Processing */
        //_enable_interrupt_();
        _enable_IRQ ();


       while(1)
       {
       }

    /* USER CODE END */

        return 0;
    }


    /* USER CODE BEGIN (4) */
    void sciNotification(sciBASE_t *sci, uint32 flags)
    {
        printf("Test\r");
    }
     /* USER CODE END */

  • Hello Simon,

    There is no problem for me to get SCI RX interrupt on my LS12x launchpad. I don't have HW board to test TMS570LS0714 PZ package at this moment.